body {
  background-color: #000;
  color: #0ff;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
}

canvas {
  border: 2px solid #0ff;
  background-color: #111;
  display: block;
  margin: 20px auto;
}
.start-btn {
  width: 220px;
  height: 70px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  border: 2px solid #333;
  border-radius: 20px; /* bordes más suaves */
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
  box-shadow: 0 0 12px #FFD700, 0 0 24px #FF8C00;
  transition: all 0.3s ease-in-out;
  animation: blink 2.5s infinite; /* parpadeo más lento */
}

.start-btn:hover {
  background: linear-gradient(135deg, #FF8C00, #FFD700);
  color: white;
  box-shadow: 0 0 20px #FF8C00, 0 0 40px #FFD700;
  transform: scale(1.05);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; } /* transición más suave */
}

/* === Contenedor del quiz === */
#quiz-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.85);
  border: 3px solid #FFD700;
  border-radius: 10px;
  padding: 20px;
  color: #FFD700;
  font-family: "Courier New", monospace;
  text-align: center;
  display: none; /* oculto al inicio */
  animation: fadeIn 0.8s ease forwards;
  z-index: 10; /* encima del canvas */
}

/* Animación de aparición */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* === Progreso === */
#progreso {
  font-size: 18px;
  margin-bottom: 10px;
  color: #00FF00;
}

/* === Pregunta === */
#pregunta {
  font-size: 20px;
  margin: 15px 0;
  font-weight: bold;
  color: #FFD700;
}

/* === Opciones === */
#opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#opciones button.opcion {
  background: #222;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#opciones button.opcion:hover:not(:disabled) {
  background: #FFD700;
  color: #000;
}

/* Correcta / Incorrecta */
button.correcta {
  background: #00FF00 !important;
  color: #000 !important;
}

button.incorrecta {
  background: #FF0000 !important;
  color: #fff !important;
}

/* === Resultado === */
#resultado {
  margin-top: 15px;
  font-size: 18px;
  white-space: pre-line; /* respeta saltos de línea */
}

/* Resultado aprobado */
#resultado.aprobado {
  color: #00FF00;
  font-weight: bold;
}

/* Resultado suspenso */
#resultado.suspenso {
  color: #FF4444;
  font-weight: bold;
}

/* === Botón Reiniciar Snake === */
#btn-reiniciar {
  margin-top: 20px;
  background: #FFD700;
  color: #000;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  font-size: 18px;
  font-family: "Courier New", monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

#btn-reiniciar,
#btn-otro {
  margin-top: 20px;
  background: #FFD700;
  color: #000;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  font-size: 18px;
  font-family: "Courier New", monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

#btn-reiniciar:hover:not(:disabled),
#btn-otro:hover {
  background: #000;
  color: #FFD700;
}

#btn-reiniciar:disabled {
  background: #555;
  color: #999;
  border: 2px solid #999;
  cursor: not-allowed;
  opacity: 0.6;
}
#btn-otro:disabled {
  background: #555;
  color: #999;
  border: 2px solid #999;
  cursor: not-allowed;
  opacity: 0.6;
}

