/* General Styling */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #222;
  margin: 0;
  font-family: "Arial", sans-serif;
  text-align: center;
  color: #fff;
}

/* Game Title */
h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Instructions */
p {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Start Button */
#start {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-bottom: 20px;
}

#start:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

#start:active {
  transform: scale(0.95);
}

#start:disabled {
  opacity: 0.5;
}

/* Score Display */
.score-container {
  font-size: 1.5rem;
  margin-top: 10px;
  font-weight: bold;
}

/* Centering the Remy Grid */
.remy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Remy Grid */
.remy-grid {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  grid-template-rows: repeat(2, 150px);
  gap: 10px;
  background-color: black;
  padding: 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Remy Buttons */
.remy-button {
  width: 150px;
  height: 150px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.red {
  background-color: #d32f2f;
}
.blue {
  background-color: #1976d2;
}
.green {
  background-color: #388e3c;
}
.yellow {
  background-color: #fbc02d;
}

.remy-button:focus {
  outline: none;
}

/* Flash effect */
.flash {
  filter: brightness(1.5);
  transform: scale(1.1);
}

.game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
}
