* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

header h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.target-color {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.game-controls {
  margin: 10px 0;
}

.mode-btn, #newColors {
  background: #fff;
  border: none;
  color: #4a00e0;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.mode-btn.active {
  background: #8e2de2;
  color: white;
}

.mode-btn:hover, #newColors:hover {
  transform: scale(1.05);
}

.scoreboard {
  display: flex;
  justify-content: space-around;
  margin: 10px 0 20px;
  font-size: 1.1rem;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.tile {
  width: 100%;
  padding-bottom: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tile:hover {
  transform: scale(1.08);
}

.message {
  min-height: 24px;
  font-weight: bold;
  margin: 10px 0;
}

footer {
  margin-top: 20px;
}

#playAgain {
  background-color: #8e2de2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

#playAgain:hover {
  background-color: #4a00e0;
}
