body {
    --bg: #1d1d1d;
    --bg-l1: #2a2a2a;
    --text: #fff;
    --fade: linear-gradient(0deg, rgb(29, 29, 29) 25%, rgba(29, 29, 29, 0) 100%);
    --fade2: linear-gradient(180deg, rgb(29, 29, 29) 25%, rgba(29, 29, 29, 0) 100%);
    --fade3: radial-gradient(circle closest-side,rgb(29, 29, 29) 25%, rgba(29, 29, 29, 0) 100%);

    padding: 0;
    margin: 0;
    background-color: var(--bg);
    font-family: area-normal, sans-serif;
    color: var(--text);
}

body.light {
    --bg: #f2f2f2;
    --bg-l1: #e6e6e6;
    --text: #000;
    background-color: var(--bg);
    --fade: linear-gradient(0deg, rgb(242, 242, 242) 25%, rgba(242, 242, 242, 0) 100%);
    --fade2: linear-gradient(180deg, rgb(242, 242, 242) 25%, rgba(242, 242, 242, 0) 100%);
    --fade3: radial-gradient(circle closest-side, rgb(242, 242, 242) 25%, rgba(242, 242, 242, 0) 100%);
}

header {
    padding: 1rem;
    text-align: center;
    height: 8rem;
    width: calc(100vw - 2em);
    position: sticky;
    top: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    z-index: 1000;
    background-image: var(--fade2);
}

main {
    padding: 1rem;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

footer {
    padding: 1rem;
    text-align: center;
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 2rem);
    align-items: end;
    justify-content: end;
    z-index: 900;
    background-image: var(--fade);
}

footer img {
    height: 8rem;
    width: 8rem;
}

#title-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#title-container img {
    height: 100%;
}

#egg-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8rem;
    z-index: 1000;
}

#egg-container img {
    height: 100%;
}

#egg-container img.special {
    height: 110% !important
}

#hint {
    font-family: lores-12, sans-serif;
    font-size: 1em;
    padding: 0.5rem;
    margin-top: -0.7rem;
    border-radius: 0.5rem;
}

#counter {
    z-index: 900;
    font-family: lores-12, sans-serif;
    font-size: 4em;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
  }

.emphasis {
    font-weight: 600;
    text-wrap: nowrap;
}

.highlight {
    font-weight: 600;
}

.hidden {
    display: none;
}

.passover-copy {
    position: fixed;
    z-index: 3000;
    opacity: 15%;
  }

#water {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: -1;
    background: #f17a85;
    animation: pixelWave 1.2s steps(4) infinite alternate;
    transition: transform 0.5s ease;
    transform: translate(0, 160px);
    overflow: hidden;
  }

#water.raisedLevel {
    transform: translate(0, 0);
}

#warning {
    position: absolute;
    height: 3rem;
    display: none;
    transform: translate(-50%, -75%);
    pointer-events: none;
    z-index: 900;
  }

#full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5000;
    font-family: lores-12, sans-serif;
    background-image: var(--fade3);
    font-size: 4em;
    align-items: center;
    justify-content: center;
    display: none;
    transition: opacity 0.3s ease;
}

#full-page .revealed{
    display: none !important;
}

.wiggle {
    animation: wiggle 0.25s ease-in-out infinite alternate;
}
@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

  /* Pixel-style blocky wave steps */
  @keyframes pixelWave {
    0% {
        clip-path: polygon(
          0 11%,  5% 12%, 10% 11%, 15% 13%, 20% 12%,
          25% 10%, 30% 12%, 35% 11%, 40% 13%, 45% 11%,
          50% 12%, 55% 11%, 60% 10%, 65% 12%, 70% 11%,
          75% 13%, 80% 12%, 85% 11%, 90% 12%, 95% 10%,
          100% 11%, 100% 100%, 0 100%
        );
      }
      50% {
        clip-path: polygon(
          0 12%,  5% 11%, 10% 13%, 15% 12%, 20% 11%,
          25% 12%, 30% 10%, 35% 13%, 40% 12%, 45% 11%,
          50% 11%, 55% 13%, 60% 11%, 65% 10%, 70% 12%,
          75% 11%, 80% 13%, 85% 11%, 90% 13%, 95% 12%,
          100% 12%, 100% 100%, 0 100%
        );
      }
      100% {
        clip-path: polygon(
          0 11%,  5% 13%, 10% 12%, 15% 11%, 20% 13%,
          25% 12%, 30% 11%, 35% 12%, 40% 10%, 45% 12%,
          50% 13%, 55% 10%, 60% 12%, 65% 11%, 70% 13%,
          75% 12%, 80% 11%, 85% 12%, 90% 10%, 95% 11%,
          100% 12%, 100% 100%, 0 100%
        );
      }
  }

  .banner {
    overflow: hidden;
    width: calc(100vw - 1rem);
    position: relative;
    left: -1rem;
    white-space: nowrap;
    font-size: 1.2rem;
    font-family: sans-serif;
    height: 80px;
    display: flex;
    align-items: center;
  }
  
  .banner-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 20s linear infinite;
  }
  
  .banner-item {
    display: inline-block;
    height: 80px;
  }
  
  /* Keyframes for scrolling */
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }