body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #02375e;
}

#tablero_de_juego {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  text-align: center;
}

/* Estilo base del temporizador */
#timer {
  font-size: 2rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-block;
  margin: 10px auto;
  transition: all 0.3s ease;
}

/* Estado normal */
.timer-normal {
  color: #2e7d32; /* Verde */
  background-color: #e8f5e9;
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
  animation: none;
}

/* Advertencia (30s o menos) */
.timer-warning {
  color: #f57c00;
  background-color: #fff3e0;
  box-shadow: 0 0 10px rgba(245, 124, 0, 0.4);
  animation: pulse 1s infinite ease-in-out;
}

/* Peligro (10s o menos) */
.timer-danger {
  color: #c62828;
  background-color: #ffebee;
  box-shadow: 0 0 15px rgba(198, 40, 40, 0.6);
  animation: pulseRed 0.8s infinite ease-in-out;
}

/* Animaciones */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes pulseRed {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}



#pregunta {
  display: block;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #0d47a1;
  margin: 10px 0;
  padding: 15px;
  background-color: #e3f2fd;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(13, 71, 161, 0.1);
}

.flex-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
  justify-content: center;
}

.indice {
  margin: 0 10px 0 0;
  font-size: 22px;
  color: #073477;
}

.opcion {
  background-color: #f1f8e9;
  border: 2px solid #688a42;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  min-width: 250px;
  text-align: center;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
}

.opcion:hover {
  background-color: #95b66f;
  transform: scale(1.02);
}

.btn {
  background-color: #05487e;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  color: white;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #864305;
}

.foot {
  margin-top: 30px;
}

#timer-container {
  text-align: center;
  margin: 15px auto;
}

.timer-label {
  font-size: 1.2rem;
  margin-right: 8px;
  font-weight: 500;
  color: #333;
}

a{
    padding: 10px 20px;
    background-color: #176fb8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}