/* styles.css */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #fafafa;
  font-family: "Roboto", Arial, sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-top: 25px;
  font-size: 2rem;
  color: #222;
}

/* Contenedor principal */
#root {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Contenedor canvas responsive */
.canvas-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  position: relative;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

canvas {
  display: block;
  border-radius: 10px;
}

/* Botones y retroalimentación */
.choices {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.choice-btn {
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.choice-btn:hover {
  background: #eee;
  transform: translateY(-1px);
}

.choice-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.feedback {
  font-size: 1rem;
  margin-top: 10px;
  min-height: 24px;
}

.new-question-btn,
.menu-btn,
.help-btn {
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 16px;
  background-color: #4285f4;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.new-question-btn:hover,
.menu-btn:hover,
.help-btn:hover {
  background-color: #3373e2;
  transform: translateY(-1px);
}

/* Puntuación */
.scoreboard {
  margin-top: 15px;
  font-size: 1rem;
}

/* Modo actual */
.current-mode {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #444;
}

/* Pop-up (modal) */
.modal-overlay {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal {
  background: #fff;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: left;
  position: relative;
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #222;
}

.modal label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0;
}

.modal .close-btn {
  position: absolute;
  top: 10px; 
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal select {
  margin-bottom: 10px;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  outline: none;
  cursor: pointer;
  display: block;
}

.modal button {
  margin-top: 10px;
}
/* Estilo general para los inputs de hora y minutos */
.manual-input label {
  font-size: 1.5rem; /* Tamaño del texto */
  margin-right: 10px;
}

.manual-input input {
  font-size: 1.5rem; /* Texto más grande */
  width: 100px; /* Ancho inicial */
  height: 60px; /* Altura inicial */
  padding: 10px; /* Espaciado interno */
  text-align: center; /* Texto centrado */
  border: 2px solid #ccc; /* Borde definido */
  border-radius: 10px; /* Esquinas redondeadas */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  transition: border-color 0.3s ease;
}

.manual-input input:focus {
  border-color: #4285f4; /* Cambio de color al seleccionar */
  outline: none; /* Quita el borde azul por defecto */
}

.manual-input {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Espaciado entre los inputs */
  flex-wrap: wrap; /* Acomoda los elementos si no caben en una línea */
}

.manual-input label {
  margin-bottom: 10px; /* Margen adicional para pantallas pequeñas */
}

.manual-input .check-btn {
  font-size: 1.5rem; /* Tamaño del texto del botón */
  padding: 10px 20px; /* Espaciado interno */
  background-color: #4285f4; /* Azul del botón */
  color: #fff; /* Texto blanco */
  border: none; /* Sin borde */
  border-radius: 10px; /* Esquinas redondeadas */
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.manual-input .check-btn:hover {
  background-color: #3367d6; /* Color más oscuro al pasar el ratón */
  transform: translateY(-2px); /* Efecto de elevar */
}

/* Responsividad */
@media (max-width: 768px) {
  .manual-input {
    flex-direction: column; /* Cambia a diseño vertical en pantallas pequeñas */
    gap: 10px; /* Reduce el espacio entre elementos */
  }

  .manual-input input {
    width: 80%; /* Ancho relativo para ajustarse al contenedor */
    height: 50px; /* Reduce un poco la altura */
    font-size: 1.3rem; /* Ajusta el tamaño del texto */
  }

  .manual-input label {
    font-size: 1.2rem; /* Reduce el tamaño del texto */
  }

  .manual-input .check-btn {
    width: 80%; /* Botón del mismo ancho que los inputs */
    font-size: 1.3rem; /* Ajusta el tamaño del texto */
    padding: 8px 16px; /* Reduce un poco el espaciado interno */
  }
}

@media (max-width: 480px) {
  .manual-input input {
    width: 100%; /* Los inputs ocupan el 100% del contenedor */
    font-size: 1.2rem; /* Reduce ligeramente el tamaño del texto */
  }

  .manual-input .check-btn {
    width: 100%; /* Botón del mismo ancho que los inputs */
    font-size: 1.2rem; /* Reduce ligeramente el tamaño del texto */
  }
}


.feedback {
  font-size: 1rem;
  margin-top: 10px;
  min-height: 24px;
  /* Transición suave */
  transition: color 0.2s ease, background-color 0.2s ease;
}

.feedback.error {
  color: #e74c3c; /* Rojo */
}

.feedback.success {
  color: #2ecc71; /* Verde */
}
