@layer components {
  .cmp-main-btn--pages {
    background-color: #ffffff;
    color: var(--clr-lighter-black);
    transition: transform 0.2s ease-out, background-color 0.3s ease,
      color 0.3s ease;

    @media (hover: hover) and (pointer: fine) {
      &:hover {
        background-color: var(--clr-green-250);
        color: var(--clr-lighter-white);
      }
    }
  }

  .side-svg-decor-box {
    user-select: none;
    pointer-events: none;
  }

  .cmp-side-wave-svg {
    position: fixed;
    width: auto;
    min-height: 100vh;
    aspect-ratio: 140 / 680;
    left: -4.25rem;
    fill: #434316;
    top: 0;
    z-index: 100;
    filter: drop-shadow(4px 3px 4px rgba(0, 0, 0, 0.25))
      drop-shadow(8px 4px 10px rgba(0, 0, 0, 0.15));

    @media (width > 92rem) {
      left: 0rem;
    }
  }

  .cmp-side-wave-svg-right {
    left: unset;
    right: -4.25rem;
    filter: drop-shadow(-4px -3px 4px rgba(0, 0, 0, 0.25))
      drop-shadow(-12px -6px 10px rgba(0, 0, 0, 0.15));

    @media (width > 92rem) {
      right: 0rem;
    }
  }

  .cmp-creeper-side-image {
    position: fixed;
    right: -8.5rem;
    top: 0.5rem;
    rotate: 7deg;
    z-index: 110;
    filter: drop-shadow(-2px -1px 4px rgba(0, 0, 0, 0.25))
      drop-shadow(-6px -3px 10px rgba(0, 0, 0, 0.15));

    @media (width > 92rem) {
      right: -5.5rem;
      rotate: 9deg;
    }
  }

  .cmp-creeper-side-image-2 {
    left: -8.5rem;
    rotate: -7deg;
    filter: drop-shadow(2px 1px 4px rgba(0, 0, 0, 0.25))
      drop-shadow(6px 3px 10px rgba(0, 0, 0, 0.15));

    @media (width > 92rem) {
      left: -5.5rem;
      rotate: -10deg;
    }
  }

  .cmp-bird-image,
  .cmp-bird-image-2 {
    position: fixed;
    user-select: none;
    z-index: 115;
    max-width: 7%;

    @media (width > 62.5rem) {
      max-width: 3.5%;
    }
  }

  .cmp-bird-image {
    top: 12rem;
    left: -0.5rem;
    rotate: 18deg;

    @media (width > 62.5rem) {
      top: 6rem;
      left: 0;
    }
  }

  .cmp-bird-image-2 {
    right: -0.5rem;
    top: 23rem;
    rotate: -8deg;

    @media (width > 62.5rem) {
      top: 26rem;
      right: 0;
    }
  }

  .cmp-leaf-svg {
    position: absolute;
    fill: #000;
    opacity: 0.22;
    width: 18rem;
    right: 4rem;
    top: 16rem;
    z-index: -999;

    @media (width > 62.5rem) {
      width: 27rem;
      right: 7rem;
      top: 7rem;
      rotate: 10deg;
    }

    @media (width > 81.5rem) {
      right: 4rem;
    }
  }

  .cmp-leaf-svg-second {
    width: 16rem;
    left: 0;
    top: 42rem;
    rotate: -45deg;

    @media (width > 55rem) {
      left: 2rem;
      top: 24rem;
    }

    @media (width > 62.5rem) {
      width: 25rem;
      left: 2rem;
      top: 18rem;
      rotate: -75deg;
    }

    @media (width > 81.5rem) {
      left: 3rem;
      top: 18.5rem;
    }
  }
}

@layer base {
  body.secondary-pages {
    background: conic-gradient(
      from -110deg at 65% -1%,
      #05450f 0deg,
      #000000 180deg,
      #59c06d 300deg,
      #05450f 360deg
    );

    @media (width > 62.5rem) {
      background: conic-gradient(
        from -70deg at 90% -1%,
        #000000 0deg,
        #184a25 180deg,
        #59c06d 300deg,
        #000801 360deg
      );
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 2 / SECTION-ONE / ABOUT ***       \\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  #about-section {
    padding-block: 0;
    text-align: center;

    @media (width > 62.5rem) {
      text-align: left;
    }
  }

  .about-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding-block: var(--padd-page-48);

    .about-flex__text-block {
      max-width: 80%;
      margin-inline: auto;
      backdrop-filter: blur(0.25rem);
      -webkit-backdrop-filter: blur(0.25rem);

      @media (width > 62.5rem) {
        max-width: 55%;
        margin-inline: unset;
        margin-left: 1rem;
      }
    }

    .about-flex__image-block {
      position: relative;
    }

    @media (width > 62.5rem) {
      flex-direction: row;
      gap: 3rem;
    }
  }

  .cmp-info-text--pg2 {
    position: absolute;
    color: var(--clr-green-100);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    right: 3.5rem;
    top: 0.25rem;
    text-decoration: dotted underline;
    text-decoration-thickness: 0.15rem;
    text-underline-offset: 0.25em;
    rotate: 6deg;

    .cmp-info-text--pg2__swipe {
      display: inline;
      color: var(--clr-green-250)
    }

    .cmp-info-text--pg2__scroll {
      display: none;
      color: var(--clr-green-250)
    }

    @media (width > 62.5rem) {
      right: 16rem;
      top: 2rem;
      rotate: -10deg;

      .cmp-info-text--pg2__swipe {
        display: none;
      }

      .cmp-info-text--pg2__scroll {
        display: inline;
      }
    }
  }

  .about-flex__carousel {
    position: relative;
    max-height: clamp(8rem, 53vw, 24rem);
    margin-top: 5rem;
    margin-inline: 2rem;
    border-radius: 20%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      display: none;
    }

    .about-image-track {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      user-select: none;
      cursor: auto;

      @media (width > 62.5rem) {
        padding-block: 2em;
      }
    }

    img {
      max-width: 100%;
      max-height: 400px;
      border-radius: 10rem;
      box-shadow: 2px 4px 2px rgba(0, 0, 0, 0.397);
      cursor: pointer;
      user-select: none;
      /* pointer-events: none; */
    }

    @media (width > 62.5rem) {
      margin: 8rem 1rem 0;
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 3 / SECTION-ONE / MENU ***       \\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  #menu-section {
    text-align: center;
  }

  .cmp-heading--sub-pg3 {
    font-size: clamp(2.25rem, 7vw, 3rem);
    font-family: var(--ff-body-sans);
    margin: 0;
    margin-bottom: 1rem;
    line-height: 1em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  }

  .menu-grid-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;

    @media (width > 62.5rem) {
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-top: 4rem;
    }
  }

  .food-button,
  .drinks-button {
    gap: 2rem;
    max-width: fit-content;
    margin-inline: auto;
  }

  .food-button {
    display: grid;
    grid-template-columns: 1fr;

    @media (width > 62.5rem) {
      grid-template-columns: 1fr 1fr;
    }
  }

  .drinks-button {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;

    @media (width > 62.5rem) {
      flex-direction: row;
      margin-bottom: 0;
    }
  }

  .drinks-buttons {
    margin-bottom: 5.5rem;
  }

  .menu-turtle-svg {
    --turtle-delay: 5s;

    position: absolute;
    width: 4.25rem;
    z-index: -1;
    top: 3rem;
    filter: drop-shadow(4px 2px 4px rgba(0, 0, 0, 0.25))
      drop-shadow(6px 2px 6px rgba(0, 0, 0, 0.15));
    transform: translate(50px, -120px);
    animation: turtlePath-S 160s infinite var(--turtle-delay) linear,
      wiggle 1s ease-in-out infinite var(--turtle-delay);

    @media (width > 62.5rem) {
      width: 6.5rem;
      transform: translate(-250px, 100px);
      animation: turtlePath-L 170s linear infinite var(--turtle-delay),
        wiggle 0.5s ease-in-out infinite var(--turtle-delay);
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 4 / SECTION-ONE / GALLERY ***       \\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  #gallery-section {
    text-align: center;
    scrollbar-gutter: stable;
  }

  .gallery-book-svg-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    left: 0;
    gap: 4rem;
    margin-top: 2.5rem;
    padding-inline: 1.5rem;
    padding-bottom: 1rem;
    z-index: 5;

    @media (width > 62.5rem) {
      flex-direction: row;
      justify-content: center;
      gap: clamp(25rem, 38vw, 32rem);
      padding-bottom: 0.5rem;
      margin-top: 6rem;
    }
  }

  .gallery-book-svg-box.absolute-position {
    position: absolute;
    margin-top: 1rem;

    @media (width > 62.5rem) {
      margin-top: 4rem;
    }
  }

  .gallery-book-svg-box__wrapper {
    position: relative;
    width: clamp(200px, 40vw, 350px);
    margin-top: clamp(5rem, 20vw, 10rem);
    overflow: visible;
    isolation: isolate;

    @media (width > 62.5rem) {
      margin-top: 0;
    }
  }

  .cmp-info-text--pg4,
  .beer-image-box > span {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-family: Open-Sans;
    pointer-events: none;

    @media (width > 62.5rem) {
      font-size: clamp(1.5rem, 2.75vw, 2rem);
    }
  }

  .cmp-info-text--pg4 {
    top: -30%;
    left: 50%;
    color: var(--clr-lighter-white);
    letter-spacing: 0.15em;
    transform: translate(-50%, -50%);
    filter: drop-shadow(4px 2px 2px rgba(0, 0, 0, 0.25));

    @media (width > 62.5rem) and (width < 87.5rem) {
      top: -4rem;
    }

    @media (width > 87.5rem) {
      top: -8rem;
      left: -1rem;
      rotate: -8deg;
      opacity: 0;
      transform: none;
      animation: jello-diagonal 1.5s ease-in-out 0.5s forwards;
    }
  }

  .cmp-info-text--pg4--black {
    @media (width > 87.5rem) {
      left: unset;
      right: -1rem;
      rotate: 9deg;
      animation: jello-diagonal 1.5s ease-in-out 1.25s forwards;
    }
  }

  .gallery-svg-image {
    position: absolute;
    max-width: 70%;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: none;
    user-select: none;
    z-index: 999;
  }

  .gallery-svg-image--black {
    max-width: 68%;
  }

  .gallery-book-svg {
    max-width: 100%;
    cursor: pointer;
    fill: #1c1c1c;
    filter: drop-shadow(8px 6px 4px rgba(0, 0, 0, 0.25))
      drop-shadow(12px 8px 10px rgba(0, 0, 0, 0.15));
  }

  .gallery-book-svg--one {
    fill: #eeeded !important;
  }

  .gallery-book-svg-box__wrapper--beer-fest {
    position: relative;

    @media (width > 62.5rem) {
      position: absolute;
      margin-top: 6rem;
      max-width: clamp(12rem, 20vw, 18rem);
    }
  }

  .beer-image-box {
    position: relative;
    max-width: 100%;
    margin-inline: auto;
    cursor: pointer;
    filter: drop-shadow(6px 4px 2px rgba(0, 0, 0, 0.25))
      drop-shadow(10px 6px 8px rgba(0, 0, 0, 0.15));

    span {
      display: inline-block;
      color: var(--clr-lighter-white);
      top: -30%;
      left: 50%;
      letter-spacing: 0.15em;
      line-height: 2em;
      transform: translate(-50%, -50%);

      @media (width > 87.5rem) {
        top: -40%;
        opacity: 0;
        animation: swirl-in 1.5s ease-in-out 2s forwards;
      }
    }

    @media (width > 62.5rem) {
      margin-bottom: unset;
      max-width: 70%;
    }
  }

  .album-wrapper {
    display: block;
    position: relative;
    z-index: 10;
  }

  .album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    place-items: center;
    margin-top: 6rem;
    margin-bottom: 3rem;
    margin-inline: auto;

    a {
      max-height: 300px;
    }

    img {
      max-width: 80%;
      height: 100%;
      max-height: 300px;
      aspect-ratio: 1/2;
      object-fit: cover;
      border-radius: 20px;
      opacity: 0;
      box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.533);
      cursor: pointer !important;

      &:hover {
        animation: vibrate 3s linear infinite;
        box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.703);
      }

      @media (width > 35rem) {
        max-width: 100%;
      }
    }
  }

  .album-grid__btn {
    position: fixed;
    font-size: var(--fs-btn-text);
    font-weight: 600;
    top: -4.5rem;
    right: 0;
    padding: 0.75em 1.25em;
    border-radius: 1.5em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    box-shadow: 3px 2px 4px var(--clr-lighter-black);
    z-index: 20;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out;

    &:hover {
      transform: scale(1.05);
    }

    &:active {
      transform: scale(0.9);
      box-shadow: none;
    }
  }

  .scrollToTopButton {
    display: none;
    position: fixed;
    bottom: 5rem;
    right: 0.75rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: white;
    color: black;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.7s ease, transform 0.7s ease;

    &:hover {
      transform: scale(1.2);
    }

    @media (width > 62.5rem) {
      top: 4rem;
      right: 3.75rem;
      bottom: unset;
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 5 / SECTION-ONE / CONTACT ***       \\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  #contact-section {
    padding-bottom: 3rem;

    @media (width > 62.5rem) {
      padding-bottom: 0;
    }
  }

  .contact-block-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 80%;
    margin-inline: auto;
    text-align: center;
    backdrop-filter: blur(0.25rem);
    -webkit-backdrop-filter: blur(0.25rem);

    @media (width > 46.875rem) {
      max-width: unset;
    }

    @media (width > 62.5rem) {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
      max-width: unset;
      margin-left: 1rem;
    }
  }

  .cmp-heading--pg5 {
    text-align: center;

    @media (width > 62.5rem) {
      text-align: left;
    }
  }

  .cmp-text--pg5 {
    margin-bottom: 1.5rem;
    max-width: 55ch;

    .phone-span {
      display: inline-block;
      color: var(--clr-lighter-white);
      text-shadow: 2px 2px 6px var(--clr-lighter-black);
      margin-left: 0;
      animation: shake 15s infinite;
    }

    &:first-of-type {
      font-size: clamp(2rem, 6vw, 2.5rem);
      font-weight: 600;
      line-height: 1.35em;
    }

    &:last-of-type {
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 0.26em;
    }
  }

  .maps-container {
    position: relative;

    span {
      position: absolute;
      font-size: clamp(1.6rem, 4vw, 2rem);
      top: -3rem;
      left: -2rem;
      rotate: -12deg;
      z-index: 999;
      animation: heartbeat 8s cubic-bezier(0.645, 0.045, 0.355, 1) 4s infinite;

      @media (width > 62.5rem) {
        top: -7rem;
        left: -5rem;
      }
    }

    @media (width > 62.5rem) {
      max-width: 42%;
    }
  }

  .maps-container__map {
    position: relative;
    display: block;
    max-width: 95%;
    width: 800px;
    height: 450px;
    margin-inline: auto;

    @media (width > 62.5rem) {
      max-width: 100%;
      bottom: 4rem;
      margin-inline: unset;
    }
  }
}

@layer utilities {
  .wrapper {
    max-width: calc(81.25rem + 2rem);
    padding-inline: clamp(1rem, 3.5vw, 2rem);
    margin-inline: auto;
  }

  .wrapper--wide {
    max-width: calc(90rem + 2rem);
  }

  .wrapper--header {
    max-width: calc(85rem + 2rem);
    min-height: clamp(4.75rem, 6vw, 5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .wrapper--mobile-L {
    @media (width < 62.5rem) {
      max-width: calc(39rem + 2rem);
    }
  }

  .wrapper--mobile-S {
    @media (width < 62.5rem) {
      max-width: calc(32rem + 2rem);
    }
  }

  .wrapper--mobile-XS {
    @media (width < 47.5rem) {
      max-width: calc(30rem + 2rem);
    }
  }

  .hidden {
    display: none;
  }

  .visually-hidden {
    position: absolute;
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .skip-to-content:not(:focus) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    transform: translateY(-5rem);
  }

  .skip-to-content {
    position: absolute;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    left: 1rem;
    top: 7rem;
    transition: transform 0.5s ease-out;
  }

  .no-animation {
    animation: none !important;
  }
}

@layer animations {
  @keyframes vibrate {
    0% {
      transform: translate(0);
    }
    20% {
      transform: translate(-4px, 4px);
    }
    40% {
      transform: translate(-4px, -4px);
    }
    60% {
      transform: translate(4px, 4px);
    }
    80% {
      transform: translate(4px, -4px);
    }
    100% {
      transform: translate(0);
    }
  }

  @keyframes jello-diagonal {
    0% {
      transform: skew(0deg 0deg);
      opacity: 0;
    }
    30% {
      transform: skew(-25deg -25deg);
    }
    40% {
      transform: skew(15deg, 15deg);
    }
    50% {
      transform: skew(-15deg, -15deg);
    }
    65% {
      transform: skew(5deg, 5deg);
    }
    75% {
      transform: skew(-5deg, -5deg);
    }
    100% {
      transform: skew(0deg 0deg);
      opacity: 1;
    }
  }

  @keyframes swirl-in {
    0% {
      transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
      opacity: 0;
    }
    100% {
      transform: translate(-50%, -50%) rotate(-360deg) scale(1);
      opacity: 1;
    }
  }

  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }
    10% {
      transform: translateX(0);
    }
    30%,
    50% {
      transform: translateX(0);
    }
    70% {
      transform: translateX(-10px);
    }
    20%,
    40% {
      transform: translateX(0);
    }
    60% {
      transform: translateX(10px);
    }
    80% {
      transform: translateX(8px);
    }
    90% {
      transform: translateX(-8px);
    }
  }

  @keyframes heartbeat {
    from {
      transform: scale(1);
      transform-origin: center center;
      animation-timing-function: ease-out;
    }
    10% {
      transform: scale(0.91);
      animation-timing-function: ease-in;
    }
    17% {
      transform: scale(0.98);
      animation-timing-function: ease-out;
    }
    33% {
      transform: scale(0.87);
      animation-timing-function: ease-in;
    }
    45% {
      transform: scale(1);
      animation-timing-function: ease-out;
    }
  }

  @keyframes turtlePath-L {
    0% {
      transform: translate(-200px, 100px) rotate(90deg);
    }
    40% {
      transform: translate(1400px, 100px) rotate(90deg);
    }
    50% {
      transform: translate(1400px, 100px) rotate(270deg);
    }
    90% {
      transform: translate(-200px, 100px) rotate(270deg);
    }
    100% {
      transform: translate(-200px, 100px) rotate(90deg);
    }
  }

  @keyframes turtlePath-S {
    0% {
      transform: translate(50px, -120px) rotate(180deg);
    }
    40% {
      transform: translate(50px, 880px) rotate(180deg);
    }
    50% {
      transform: translate(50px, 880px) rotate(0deg);
    }
    90% {
      transform: translate(50px, 0) rotate(0deg);
    }
    100% {
      transform: translate(50px, -120px) rotate(180deg);
    }
  }

  @keyframes wiggle {
    0% {
      rotate: 0deg;
    }
    25% {
      rotate: 0.25deg;
    }
    50% {
      rotate: 0.5deg;
    }
    75% {
      rotate: 0.25deg;
    }
    100% {
      rotate: 0deg;
    }
  }
}
