body {
  font-family: sans-serif;
  text-align: center;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  padding-bottom: 70px; /* Espacio para el footer fijo */
}

#game-mode-container, #practice-mode-container {
  background-color: #222;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
}

.hidden {
  display: none;
}

h2 {
  color: #fff;
}

#controls {
  margin-bottom: 2rem;
}

#status {
  font-size: 1.2rem;
  font-weight: bold;
  color: #bbb;
  min-height: 2em;
}

#results {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bfff;
  min-height: 4em;
  max-height: 200px;
  overflow-y: auto;
}

#practice-results-list {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bfff;
  max-height: 200px;
  overflow-y: auto;
}

footer {
  width: 100%;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #1a1a1a;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
  z-index: 10;
}

.footer-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #001f3f; /* Azul más oscuro */
  color: white;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #001122;
}

.radio-group {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.radio-label {
  padding: 0.5rem 1rem;
  border: 1px solid #555;
  border-radius: 4px;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ddd;
  background-color: #333;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .radio-label {
  background-color: #001f3f;
  color: white;
  border-color: #001f3f;
}

input[type="text"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: 80%;
  max-width: 300px;
  background-color: #333;
  color: #fff;
}

.ya-message {
  font-size: 2rem;
  font-weight: bold;
  animation: pulse 1s infinite;
}

.ya-start {
  color: green;
}

.ya-stop {
  color: red;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}