:root {
  --font-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia,
    "Times New Roman", Times, serif;
}

html,
body {
  font-family: var(--font-serif);
  line-height: 1.2;
  background: var(--background);
  color: var(--text);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: auto;
}

strong {
  font-weight: bold;
}

hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2rem 0;
}

small {
  font-size: 0.9rem;
}

em {
  font-style: italic;
}

b {
  font-weight: bold;
}

code {
  font-family: "Courier New", Courier, monospace;
}

.main {
  max-width: 1024px;
  margin: 1rem auto 0;
  padding: 0.5rem;
  font-size: 1.1rem;
}
footer {
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

footer a,
footer a:visited {
  color: var(--link-color-alt);
}

.other-sites__header {
  margin: 2rem 0 0.5rem;
  font-weight: bold;
}

form.button_to {
  display: inline;
  margin: 0;
  padding: 0;
}

.search__input {
  width: 100%;
  max-width: 300px;
}

.sign-out-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--link-color-alt);
}

.sign-out-link:hover {
  background: none;
  text-decoration: underline;
}

.article-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.coffee-header {
  width: 100%;
  height: 40px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ddcfcc;
  border-radius: 5px;
}
.coffee-header__buttons {
  width: 12.5px;
  height: 12.5px;
  position: absolute;
  top: 12.5px;
  background-color: #282323;
  border-radius: 50%;
}
.coffee-header__buttons::after {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  bottom: -4px;
  left: calc(50% - 2px);
  background-color: #615e5e;
}
.coffee-header__button-one {
  left: 7.5px;
}
.coffee-header__button-two {
  left: 25px;
}
.coffee-header__display {
  width: 25px;
  height: 25px;
  position: absolute;
  top: calc(50% - 12.5px);
  left: calc(50% - 12.5px);
  border-radius: 50%;
  background-color: #9acfc5;
  border: 2.5px solid #43beae;
  box-sizing: border-box;
}
.coffee-header__details {
  width: 4px;
  height: 10px;
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #9b9091;
  box-shadow: -6px 0 0 #9b9091, -12px 0 0 #9b9091;
}
.coffee-medium {
  width: 90%;
  height: 80px;
  position: absolute;
  top: 40px;
  left: calc(50% - 45%);
  background-color: #bcb0af;
}
.coffee-medium:before {
  content: "";
  width: 90%;
  height: 50px;
  background-color: #776f6e;
  position: absolute;
  bottom: 0;
  left: calc(50% - 45%);
  border-radius: 10px 10px 0 0;
}
.coffe-medium__exit {
  width: 30px;
  height: 10px;
  position: absolute;
  top: 0;
  left: calc(50% - 15px);
  background-color: #231f20;
}
.coffe-medium__exit::before {
  content: "";
  width: 25px;
  height: 10px;
  border-radius: 0 0 50% 50%;
  position: absolute;
  bottom: -10px;
  left: calc(50% - 12.5px);
  background-color: #231f20;
}
.coffe-medium__exit::after {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  bottom: -15px;
  left: calc(50% - 2.5px);
  background-color: #231f20;
}
.coffee-medium__arm {
  width: 35px;
  height: 10px;
  position: absolute;
  top: 7.5px;
  right: 12.5px;
  background-color: #231f20;
}
.coffee-medium__arm::before {
  content: "";
  width: 7.5px;
  height: 2.5px;
  position: absolute;
  top: 3.5px;
  left: -7.5px;
  background-color: #9e9495;
}
.coffee-medium__cup {
  width: 40px;
  height: 23.5px;
  position: absolute;
  bottom: 0;
  left: calc(50% - 20px);
  background-color: #fff;
  border-radius: 0 0 35px 35px / 0 0 55px 55px;
}
.coffee-medium__cup::after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: 3px;
  right: -6.5px;
  border: 2.5px solid #fff;
  border-radius: 50%;
}
@keyframes liquid {
  0% {
    height: 0px;
    opacity: 1;
  }
  5% {
    height: 0px;
    opacity: 1;
  }
  20% {
    height: 31px;
    opacity: 1;
  }
  95% {
    height: 31px;
    opacity: 1;
  }
  100% {
    height: 31px;
    opacity: 0;
  }
}
.coffee-medium__liquid {
  width: 3px;
  height: 31.5px;
  opacity: 0;
  position: absolute;
  top: 25px;
  left: calc(50% - 1.5px);
  background-color: #74372b;
  animation: liquid 5s 0s linear infinite;
}
.coffee-medium__smoke {
  width: 4px;
  height: 10px;
  position: absolute;
  border-radius: 2.5px;
  background-color: #b3aeae;
}
@keyframes smokeOne {
  0% {
    bottom: 10px;
    opacity: 0;
  }
  40% {
    bottom: 25px;
    opacity: 0.5;
  }
  80% {
    bottom: 40px;
    opacity: 0.3;
  }
  100% {
    bottom: 40px;
    opacity: 0;
  }
}
@keyframes smokeTwo {
  0% {
    bottom: 20px;
    opacity: 0;
  }
  40% {
    bottom: 35px;
    opacity: 0.5;
  }
  80% {
    bottom: 40px;
    opacity: 0.3;
  }
  100% {
    bottom: 40px;
    opacity: 0;
  }
}
.coffee-medium__smoke-one {
  opacity: 0;
  bottom: 25px;
  left: 51px;
  animation: smokeOne 3s 4s linear infinite;
}
.coffee-medium__smoke-two {
  opacity: 0;
  bottom: 35px;
  left: 59px;
  animation: smokeTwo 3s 5s linear infinite;
}
.coffee-medium__smoke-three {
  opacity: 0;
  bottom: 32.5px;
  right: 59px;
  animation: smokeTwo 3s 6s linear infinite;
}
.coffee-medium__smoke-for {
  opacity: 0;
  bottom: 25px;
  right: 51px;
  animation: smokeOne 3s 5s linear infinite;
}
.coffee-footer {
  width: 95%;
  height: 7.5px;
  position: absolute;
  bottom: 12.5px;
  left: calc(50% - 47.5%);
  background-color: #41bdad;
  border-radius: 5px;
}
.coffee-footer::after {
  content: "";
  width: 106%;
  height: 13px;
  position: absolute;
  bottom: -12.5px;
  left: -4px;
  background-color: #000;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate-float-up {
  animation: floatUp 0.5s ease-out;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
