h1 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 2.5em;
    font-weight: 400;
}

h3 {
    font-size: 2em;
    font-weight: 500;
    text-align: center;
}

h4 {
    font-size: 1.5em;
    font-weight: 500;
    margin: 5px 0;
    text-align: center;
}

h1,
h3 {
    margin: 10px 0;
}

.instructions p {
    font-size: 1.4em;
    line-height: 1.4em;
    margin: 10px;
}

.vocabble-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    margin-top: 20px;
}

.vocabble-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.tile {
    display: inline-block;
    width: 1.7ch;
    height: 1.4em;
    line-height: 1.4em;
    text-align: center;
    background-color: #ddd;
    color: #111;
    border-radius: 5px;
    animation: rotateTile 1s infinite alternate;
}

.tile:nth-child(1) {
    animation-delay: 0s;
}

.tile:nth-child(2) {
    animation-delay: 0.1s;
}

.tile:nth-child(3) {
    animation-delay: 0.2s;
}

.tile:nth-child(4) {
    animation-delay: 0.3s;
}

.tile:nth-child(5) {
    animation-delay: 0.4s;
}

.tile:nth-child(6) {
    animation-delay: 0.5s;
}

.tile:nth-child(7) {
    animation-delay: 0.6s;
}

.tile:nth-child(8) {
    animation-delay: 0.7s;
}

@keyframes rotateTile {
    0% {
        transform: rotateY(90deg);
        background-color: #ddd;
    }

    50% {
        background-color: var(--thoxt-lemon);
    }

    100% {
        transform: rotateY(0deg);
        background-color: #ddd;
    }
}

.top-scores {
    transition: display 0.5s ease-in-out, opacity 0.5s ease-in-out;
    animation-name: smoothFadeUp;
    animation-duration: 1s;
}

.top-scores li {
    list-style-type: none;
    display: flex;
    gap: 10px;
    line-height: 3ch;
}

.pp {
    margin: 0 10px;
}

.high-score {
    font-size: 1.2em;
    line-height: 1.3em;
}

.high-score:nth-child(1) {
    font-size: 1.5em;
}

.high-score:nth-child(2) {
    font-size: 1.3em;
}


/* Updated button styles */
.play-now, .instructions-btn {
    width: fit-content;
    min-width: 170px;
    height: fit-content;
    min-height: 40px;
    margin: 10px;
    border-radius: 10px;
    border: none;
    font-size: 1.4em;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-now a {
    text-decoration: none;
    color: #333;
}

.play-now {
    background-color: var(--thoxt-lemon);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.play-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s;
}

.play-now:hover::before {
    left: 100%;
}

.play-now:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.instructions-btn {
    background-color: #ddd;
}

.instructions-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.instructions-outer {
    display: none;
    flex-direction: row;
    opacity: 0;
    gap: 10px;
    transition: opacity 0.5s ease-in-out, display 0.5s ease-in-out;
    animation-name: smoothFadeUp;
    animation-duration: 1s;
}

@keyframes smoothFadeUp {
    from {
        opacity: 0;
        transform: scale(.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.instructions-outer,
.instructions-outer p,
.instructions-outer li {
    font-size: .95em;
}

.guess-instructions {
    padding-inline-start: 10px;
}

.green,
.yellow,
.grey {
    list-style-type: none;
    color: #111;
}

.green {
    background-color: rgb(185, 236, 185);
}

.yellow {
    background-color: #f8df93;
}

.grey {
    background-color: #ccc;
}

.snowfall-container {
    display: block; /* Make this block in winter */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
  }

  .snowman {
    position: fixed;
    bottom: 10px;
    right: 10%;
    z-index: 3;
  }

  .snowflake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
    animation-name: fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
  }

  @keyframes fall {
    0% {
      transform: translateY(0) translateX(0) rotate(0deg);
      opacity: 0.7;
    }
    100% {
      transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
      opacity: 1;
    }
  }

  .snow-ground {
    position: fixed;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    z-index: 1;
    overflow: visible;
  }

  .snow-ground::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 45%;
    width: 60%;
    height: 100px;
    border-radius: 40%;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(-2deg);
  }

  .snow-ground::after {
    content: "";
    position: absolute;
    top: -20px;
    right: 40%;
    width: 70%;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(2deg);
  }
  
  .tree-container {
    display: none; /* Hidden by default - Make it flex on Christmas */ 
    position: relative;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
  }

  .tree-top {
    z-index: 1;
  }
  
  .logo-star {
    width: 30px;
    height: 30px;
    animation: shimmer-star 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center;
  }
  
  .logo-star svg {
    width: 100%;
    height: 100%;
  }

  .christmas-tree {
    position: absolute;
    width: 250px;
    height: auto;
    top: -20px;
    z-index: 0;
  }
  
  /* Shimmer animation for the logo */
  @keyframes shimmer-star {
    0%   { opacity: 1;    transform: scale(1); }
    25%  { opacity: 0.6;  transform: scale(1.04); }
    50%  { opacity: 0.85; transform: scale(1.02); }
    75%  { opacity: 0.7;  transform: scale(1.035); }
    100% { opacity: 1;    transform: scale(1); }
  }
  
  .lights-container {
    width: 100%;
    height: 50px;
    overflow: hidden;
    position: relative;
  }

  .string {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: none;
    border-top: 3px solid #777;
    border-radius: 50%;
    animation: sway 6s ease-in-out infinite;
  }

  @keyframes sway {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
  }

  .bulb {
    position: absolute;
    top: 10px;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ffa000);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 215, 0, 0.5);
    animation: shimmer-lights 3s infinite ease-in-out;
  }

  /* Make a bulb string at its top */
  .bulb::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 42%;
    width: 4px;
    height: 16px;
    background: #555;
    opacity: 0.5;
    border-radius: 2px;
  }

  @keyframes shimmer-lights {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(255, 225, 220, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 1px 2px 2px rgba(248, 78, 29, 0.5); }
  }
  

@media only screen and (max-width: 1200px) {

    .instructions-outer {
        flex-direction: column;
    }
    
}

@media only screen and (max-width: 767px) {
    h3 {
        font-size: 1.6em;
    }

    .vocabble-title {
        gap: 5px;
    }

    .tile {
        display: inline-block;
        width: 1.3ch;
        height: 1.2em;
        line-height: 1.2em;
    }

    .play-now, .instructions-btn {
        min-width: 120px;
        min-height: 30px;
        margin: 10px;
        border-radius: 10px;
        font-size: 1.2em;
    }
}