@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

body {
  background: #0d1117;
  color: #c9d1d9;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  user-select: none;
  text-align: center;
}

h1 {
  margin-bottom: 10px;
  color: #00bfff;
}

#scoreboard {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #00bfff;
}

#message {
  font-size: 1.2rem;
  min-height: 30px;
  margin-bottom: 20px;
  color: #ff6b6b;
}

#game {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  grid-template-rows: repeat(2, 150px);
  gap: 20px;
  margin-bottom: 20px;
}

.btn {
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 0 10px #000;
  transition: filter 0.2s ease;
}
.btn:active {
  filter: brightness(1.3);
}

/* Cores dos botões */
#green {
  background: #28a745;
  box-shadow: 0 0 20px #28a745;
}
#red {
  background: #dc3545;
  box-shadow: 0 0 20px #dc3545;
}
#yellow {
  background: #ffc107;
  box-shadow: 0 0 20px #ffc107;
}
#blue {
  background: #0d6efd;
  box-shadow: 0 0 20px #0d6efd;
}

.light-on {
  filter: brightness(1.8);
  box-shadow: 0 0 40px 10px rgba(255,255,255,0.7);
}

#start-btn {
  background: #00bfff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  color: #0d1117;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px #00bfff;
  transition: background 0.3s ease;
}
#start-btn:hover {
  background: #0096dc;
}

/* Tela de Game Over */
#game-over-screen {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.5s ease;
}

.game-over-box {
  background: #161b22;
  border: 2px solid #ff6b6b;
  padding: 30px 50px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px #ff6b6b;
  animation: scaleIn 0.4s ease;
}

.game-over-box h2 {
  color: #ff6b6b;
  font-size: 2rem;
  margin-bottom: 10px;
}

.game-over-box p {
  font-size: 1.4rem;
  color: #c9d1d9;
  margin-bottom: 20px;
}

#retry-btn {
  background: #00bfff;
  color: #0d1117;
  border: none;
  padding: 10px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 10px #00bfff;
  transition: background 0.3s ease;
}
#retry-btn:hover {
  background: #0096dc;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* Ajustes básicos para telas pequenas */
@media (max-width: 480px) {
  body {
    height: auto; /* para não cortar em telas pequenas */
    padding: 20px 10px;
  }

  #game {
    grid-template-columns: repeat(2, 120px);
    grid-template-rows: repeat(2, 120px);
    gap: 15px;
    margin-bottom: 15px;
  }

  .btn {
    border-radius: 16px;
    box-shadow: 0 0 8px #000;
  }

  #start-btn, #retry-btn {
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 25px;
    box-shadow: 0 0 8px #00bfff;
  }

  h1 {
    font-size: 1.8rem;
  }

  #scoreboard {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  #message {
    font-size: 1rem;
    min-height: 25px;
    margin-bottom: 15px;
  }

  .game-over-box {
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px #ff6b6b;
  }

  .game-over-box h2 {
    font-size: 1.6rem;
  }

  .game-over-box p {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
}
