@import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&family=League+Spartan:wght@100..900&family=Mynerve&family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  --green: #58953e;
  --green-hover: #4c7e36;
}

html {
  background: radial-gradient(circle at top left, #383838 0%, #0d0d0d 100%);
  scroll-behavior: smooth;
}

body {
  color: #f5f5f5;
  font-family: "Alegreya Sans", sans-serif;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;

  .logo-bubble {
    width: clamp(50px, 7vw, 80px);
    height: clamp(50px, 7vw, 80px);
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
    pointer-events: none;
    font-weight: 700;
  }

  .back-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .back-to-top:hover {
    filter: brightness(0.95);
  }

  h1 {
    font-size: clamp(1rem, 3vw, 4rem);
    font-family: "Zalando Sans Expanded", sans-serif;
    margin-bottom: 1rem;
  }

  .paragraph-text {
    font-size: clamp(0.5rem, 2.5vw, 1.5rem);
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
    text-align: justify;
  }

  .order-circle-text {
    font-family: "League Spartan", sans-serif;
  }

  .secret-icon {
    background-color: black;
    opacity: 0.4;
    padding: clamp(0.1rem, 2vw, 1rem);
    border-radius: 50%;

    img {
      width: clamp(0.8rem, 7vw, 4rem);
    }
  }

  .secret-text {
    font-family: "Mynerve", cursive;
    font-size: clamp(0.8rem, 2.9vw, 2rem);
    align-self: center;
  }

  .menu {
    margin-top: 3rem;
    font-size: clamp(0.5rem, 2.5vw, 1.25rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 4vw;
    align-items: center;

    .menu-category {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 1rem;

      .category {
        font-weight: 800;
      }

      .item {
        display: flex;
        gap: 1rem;
        justify-content: space-between;
        text-wrap-mode: nowrap;
      }
    }
  }

  .order-categories {
    columns: 3;
    column-gap: 1.5rem;
  }

  .order-categories > div {
    break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  /* Small screen */
  @media (max-width: 767px) {
    .paragraph-text {
      letter-spacing: 0.1rem;
    }
    .order-categories {
      columns: 1;
    }
    .menu-category {
      flex-direction: column;
    }
  }

  /* Medium screen */
  @media (min-width: 768px) and (max-width: 1024px) {
    .paragraph-text {
      letter-spacing: 0.2rem;
    }
    .order-categories {
      columns: 2;
    }
  }

  /* Force 2 columns at and above 1300px for start page menu */
  @media (min-width: 1300px) {
    .menu {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
}

/* Rotate on scroll */
.rotate-on-scroll {
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.2s linear;
  backface-visibility: hidden;
}

/* Snackbar animation */
#snackbar {
  transition: opacity 0.5s ease-out;
}

#snackbar.fade-in {
  opacity: 1;
}

#snackbar.fade-out {
  opacity: 0;
}

/* Tap animation */
.clickable {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;

  transform: scale(1);
  transition:
    transform 120ms ease,
    filter 120ms ease;

  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  will-change: transform;
}

.clickable.is-pressed {
  transform: scale(0.8);
}

@media (hover: hover) {
  .clickable:hover {
    filter: brightness(0.85);
  }
}
