/* =================================================================
   Estilos globales y de contenedor
   ================================================================= */
body {
  margin: 0;
  padding: 0;
  background-color: #1a1a1a; /* Fondo gris oscuro */
  color: #e0e0e0; /* Texto gris claro */
  font-family: 'Courier New', monospace;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app-container {
  text-align: center;
  width: 90%;
  max-width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mode-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.inner-container {
  flex-grow: 1; /* Permite que este contenedor ocupe el espacio restante */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto; /* Habilita el desplazamiento vertical cuando el contenido sea largo */
  -webkit-overflow-scrolling: touch; /* Desplazamiento suave en iOS */
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#status, #practice-instructions {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  min-height: 3rem; /* Para evitar saltos de diseño */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

#results {
  font-size: 2rem;
  margin-top: 1rem;
  line-height: 1.2;
}

/* =================================================================
   Estilos de botones
   ================================================================= */
.button-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #1a1a1a; /* Fondo gris oscuro */
  flex-wrap: wrap;
  flex-shrink: 0; /* Evita que el contenedor de botones se encoja */
}

button {
  background-color: #ffc107; /* Amarillo oscuro */
  color: #333; /* Texto oscuro */
  border: 2px solid #ff9800; /* Naranja oscuro */
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra oscura */
  font-family: 'Courier New', monospace;
}

button:hover {
  background-color: #ff9800; /* Naranja oscuro */
  color: #fff; /* Texto blanco */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

/* =================================================================
   Estilos específicos del modo práctica
   ================================================================= */
.practice-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1rem; /* Reducido para mejor legibilidad */
  padding: 0.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.radio-label:has(input:checked) {
  border-color: #ff9800; /* Resalta el seleccionado */
}

input[type="text"] {
  background-color: #333; /* Fondo oscuro */
  border: 2px solid #ffc107;
  color: #e0e0e0; /* Texto claro */
  padding: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  border-radius: 8px;
  width: 80%;
  max-width: 300px;
}

input[type="text"]:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.7);
}

/* =================================================================
   Estilos de los elementos de temporizador
   ================================================================= */
.ya-message {
  font-size: 4rem;
  font-weight: bold;
  animation: pulse 1s infinite alternate;
  flex-shrink: 0;
}

.ya-start {
  color: #32CD32; /* Verde fluorescente */
  text-shadow: 0 0 10px #32CD32;
}

.ya-stop {
  color: #ffc107; /* Amarillo */
  text-shadow: 0 0 10px #ffc107;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* Estilos para la lista de resultados de la práctica */
#practice-results-list {
  font-size: 1.5rem; /* Tamaño de fuente más pequeño para los nombres */
  margin-top: 1rem;
  line-height: 1.2;
}
