html, body {
      overflow: hidden; /* Disable scrolling */
    }

    #buttonContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#buttons {
  display: flex;
  justify-content: center;
  gap: 5px; /* space between Guess and Next buttons */
}


    body {
      background-color: #111;
      color: #fff;
      font-family: Arial, sans-serif;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100vh;
      margin: 0;
    }

    h1 {
      margin-bottom: 10px;
    }

    #gameCanvas {
      border: 3px solid #555;
      border-radius: 12px;
      background: #000;
      margin-bottom: 5px;
    }

    input, button {
      padding: 5px;
      font-size: 16px;
      border-radius: 8px;
      border: none;
      margin: 5px;
    }

    input {
      width: 250px;
    }

    button {
      background-color: #1db954;
      color: white;
      cursor: pointer;
    }

    button:hover {

      transition: .1s;
      background-color: #096e2e;
    }

    #status {
      margin-top: 2px;
      margin-bottom: 2px;
      font-size: 30px;
    }

    #scoreboard {
      margin-top: 0px;
      margin-bottom: 0px;
      font-size: 12px;
      color: #1db954;
    }

    #scoreboard span {
      color: #fff;
    }

    #hints {
  margin-top: 10px;
  color: #bbb;
  font-size: 16px;
  text-align: center;
  min-height: 60px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows them to wrap on smaller screens */
  gap: 12px; /* space between each hint */
}

#hints p {
  margin: 0;
   background: rgba(255, 255, 255, 0.0); 
   padding: 6px 0px; 
  border-radius: 6px;
}



    /* Info Icon */
    #info-icon {
      position: absolute;
      top: 10px;
      left: 15px;
      font-size: 24px;
      cursor: pointer;
      user-select: none;
      opacity: 0.8;
    }

    #info-icon:hover {
      opacity: 1;
    }

    /* Info Box */
    #info-box {
      position: absolute;
      top: 50%;
      left: 15%;
      transform: translate(-50%, -50%);
      background: rgba(0, 0, 0, 0.9);
      border: 2px solid #1db954;
      border-radius: 10px;
      padding: 20px;
      color: #fff;
      width: 300px;
      text-align: center;
      display: none;
      z-index: 10;
      transition: 0.5s;
    }

    #info-box button {
      margin-top: 10px;
      background-color: #1db954;
      color: white;
      border: none;
      padding: 8px 12px;
      border-radius: 6px;
      cursor: pointer;
    }

    #info-box button:hover {
      background-color: #17a44a;
    }

    /* Flash animation for inactivity */
    @keyframes flash {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 1; }
    }

    #info-icon.flash {
      animation: flash 1s ;
    }

    /* === Guess Tracker === */
#guess-tracker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}




.guess-square {
  width: 20px;
  height: 20px;
  background-color: #222;
  border: 2px solid #555;
  border-radius: 6px;
  transition: background-color 0.3s, border-color 0.3s;
}

.guess-square.used {
  background-color: #1db954;
  border-color: #1db954;
}



.guess-square.correct {
  background-color: #1db954;
  border-color: #1db954;
  box-shadow: 0 0 10px #1db954;
  transform: scale(1.1);
}

.guess-square.wrong {
  background-color: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 0 5px #b91c1c;
  transform: scale(1.1);
}

#end-message {
  text-align: center;
  font-size: 20px;
  color: #ddd;
  margin-top: 10px;
}
