*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  margin: 0 auto;
  padding: 0;
  line-height: 1.6;
  max-width: 1024px;
  background-color: rgb(242, 237, 229);
}

/* Navbar */
.topnav {
  display: flex;
  justify-content: center;
  background-color: rgb(190, 0, 13);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}

.topnav a {
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease;
}

.topnav a:hover {
  background-color: rgb(160, 0, 10);
}

/* #home {
  display: none;
} */

#easter {
  display: none;
}

#christmas {
  display: none;
}

/* Page Header */
header {
  text-align: center;
  margin: 28px 16px 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgb(40, 10, 10);
  letter-spacing: 0.02em;
}

header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: rgb(190, 0, 13);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Main Content */
.main {
  min-height: 100vh;
}

/* Category Sections */
.category,
.category-snacks {
  margin-bottom: 18px;
  border: 1px solid rgba(190, 0, 13, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
}

.category h4,
.category-snacks h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background-color: rgb(190, 0, 13);
  padding: 7px 14px;
}

/* Menu Rows */
.category div,
.category-snacks div {
  display: grid;
  align-items: center;
  padding: 7px 14px;
  border-top: 1px solid rgba(190, 0, 13, 0.08);
  font-size: 1rem;
  transition: background-color 0.15s;
}

.category div #extra {
  padding-left: 30px;
}

.category div span:first-child .sub,
.category-snacks div span:first-child .sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgb(136, 136, 136);
}

.category div:hover,
.category-snacks div:hover {
  background-color: rgba(190, 0, 13, 0.04);
}

/* Drinks */
.category div {
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

/* Snacks */
.category-snacks div {
  grid-template-columns: 1fr auto;
  gap: 12px;
}

/* Item name */
.category div span:first-child,
.category-snacks div span:first-child {
  color: rgb(40, 10, 10);
}

/* Volume badge */
#price,
span[id="price"] {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgb(190, 0, 13);
  background-color: rgba(190, 0, 13, 0.08);
  border: 1px solid rgba(190, 0, 13, 0.25);
  border-radius: 3px;
  padding: 1px 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Price */
.category div span:last-child,
.category-snacks div span:last-child {
  font-weight: 700;
  font-size: 1rem;
  color: rgb(40, 10, 10);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  min-width: 4.5ch;
}

/* Bottom */
.bottom,
.bottom-easter,
.bottom-christmas {
  margin-top: 24px;
  text-align: center;
}

.bottom img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.25;
  border-radius: 8px;
}

.bottom-easter img,
.bottom-christmas img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.bottom p,
.bottom-easter p,
.bottom-christmas p {
  font-size: 0.7rem;
  line-height: 1.8;
  color: rgb(136, 136, 136);
  margin: 10px;
}

.bottom p span,
.bottom-easter p span,
.bottom-christmas p span {
  font-weight: 700;
  color: rgb(102, 102, 102);
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 12px 16px;
  background-color: rgb(190, 0, 13);
  border-radius: 8px 8px 0 0;
}

.footer a,
.footer span {
  color: white;
  text-decoration: none;
  font-size: 10px;
}

.wrapper-christmas::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background-image: url(img/santa.svg);
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.2;
  z-index: -1;
}

.wrapper-christmas::before {
  opacity: 0.8;
}

/* Snowflakes */
.snowflake {
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px #000;
  position: fixed;
  top: -10%;
  z-index: 9999;
  /* user-select: none; */
  cursor: default;
  animation-name: snowflakes-shake;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

.snowflake .inner {
  animation-duration: 10s;
  animation-name: snowflakes-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

@keyframes snowflakes-fall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(110vh);
  }
}
@keyframes snowflakes-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(80px);
  }
}

.snowflake:nth-of-type(0) {
  left: 1%;
  animation-delay: 0s;
}
.snowflake:nth-of-type(0) .inner {
  animation-delay: 0s;
}
.snowflake:first-of-type {
  left: 10%;
  animation-delay: 1s;
}
.snowflake:first-of-type .inner,
.snowflake:nth-of-type(8) .inner {
  animation-delay: 1s;
}
.snowflake:nth-of-type(2) {
  left: 20%;
  animation-delay: 0.5s;
}
.snowflake:nth-of-type(2) .inner,
.snowflake:nth-of-type(6) .inner {
  animation-delay: 6s;
}
.snowflake:nth-of-type(3) {
  left: 30%;
  animation-delay: 2s;
}
.snowflake:nth-of-type(3) .inner,
.snowflake:nth-of-type(11) .inner {
  animation-delay: 4s;
}
.snowflake:nth-of-type(4) {
  left: 40%;
  animation-delay: 2s;
}
.snowflake:nth-of-type(4) .inner,
.snowflake:nth-of-type(10) .inner {
  animation-delay: 2s;
}
.snowflake:nth-of-type(5) {
  left: 50%;
  animation-delay: 3s;
}
.snowflake:nth-of-type(5) .inner {
  animation-delay: 8s;
}
.snowflake:nth-of-type(6) {
  left: 60%;
  animation-delay: 2s;
}
.snowflake:nth-of-type(7) {
  left: 70%;
  animation-delay: 1s;
}
.snowflake:nth-of-type(7) .inner {
  animation-delay: 2.5s;
}
.snowflake:nth-of-type(8) {
  left: 80%;
  animation-delay: 0s;
}
.snowflake:nth-of-type(9) {
  left: 90%;
  animation-delay: 1.5s;
}
.snowflake:nth-of-type(9) .inner {
  animation-delay: 3s;
}
.snowflake:nth-of-type(10) {
  left: 25%;
  animation-delay: 0s;
}
.snowflake:nth-of-type(11) {
  left: 65%;
  animation-delay: 2.5s;
}

/* Responsive */
@media (max-width: 520px) {
  .topimg {
    padding: 8px 12px;
  }
  .topimg img {
    height: 50px;
  }

  .topnav a {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  header {
    font-size: 1.15rem;
  }

  body {
    line-height: 1.2;
  }

  .category div span:first-child,
  .category-snacks div span:first-child {
    br {
      display: inline-block;
    }
  }
}
@media (min-width: 521px) {
  .category div span:first-child,
  .category-snacks div span:first-child {
    br {
      display: none;
    }
  }
}
