/* 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;
}
