body {
  font-family: 'Arial', sans-serif;
  background-color: #003319;
  color: white;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 600px;
}

.song-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.song-btn {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #444;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.song-btn:hover {
  background-color: #666;
}

.song-btn.correct {
  background-color: #2ecc71;
  pointer-events: none;
}

.song-btn.incorrect {
  background-color: #e74c3c;
  color: white;
}

.solution-text {
  margin-top: 4px;
  font-size: 11px;
  color: #ccc;
  text-align: center;
}

#score {
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

#controls {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

#toggle-solutions {
  display: none;
}

#toggle-solutions, #reset, #play-again {
  padding: 10px 14px;
  font-size: 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#toggle-solutions:hover, #reset:hover, #play-again:hover {
  background-color: #555;
}

#victory-banner {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #27ae60;
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
}

#answer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#answer-box {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

#answer-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
}

#suggestions {
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
  background: #333;
  border-radius: 5px;
  margin-bottom: 10px;
}

.suggestion-item {
  padding: 6px 10px;
  cursor: pointer;
  color: white;
}

.suggestion-item:hover {
  background-color: #555;
}

#submit-answer {
  background: #2ecc71;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#cancel-answer {
  background: #2ecc71;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

@media (max-width: 500px) {
  .song-btn {
    aspect-ratio: 1 / 1;
    font-size: 10px;
  }

  #grid {
    gap: 8px;
  }

  .solution-text {
    font-size: 10px;
  }

  #controls {
    flex-direction: column;
    align-items: stretch;
  }
}
