/* Header Styles */
/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(1, 1, 1, 0.9);
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.header:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .navigation ul li {
  float: left;
  position: relative;
}

.header .navigation ul li a {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 22px 20px;
  display: block;
  transition: all 0.3s ease;
}

.header .navigation ul li a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  color: var(--black);
}

#toggle,
.header label {
  display: none;
  cursor: pointer;
}

.menu {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

/* Media Queries para responsive */
@media (max-width: 950px) {
  .header label {
    display: initial;
  }

  .header {
    padding: 15px 10%;
  }

  .header .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .header .navigation ul li {
    width: 100%;
  }

  .header .navigation ul li a {
    padding: 12px 20px;
    font-size: 18px;
  }

  #toggle:checked ~ .navigation {
    display: block;
    animation: slideDown 0.4s ease-out;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 22px;
  }

  .header {
    padding: 12px 5%;
  }
}

/* Variables necesarias */
:root {
  --primary-color: rgba(1, 1, 1, 0.9);
  --secondary-color: #ff8c42;
  --white: #ffffff;
  --black: #000000;
}

/* Reset básico */
* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Animación para el menú desplegable */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ajuste para el body debido al header fijo */
body {
  padding-top: 80px;
}

/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    padding-top: 70px;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Instrucciones */
.instructions {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.instructions h1 {
    color: #333;
    margin-top: 0;
}

.rules {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.rules ul {
    margin: 10px 0;
    padding-left: 20px;
}

.rules li {
    margin-bottom: 5px;
}

/* Área del juego */
.game-area {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.score-board {
    display: flex;
    justify-content: space-between;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.score, .progress {
    font-weight: bold;
}

/* Tarjeta de pregunta */
.question-card {
    margin-bottom: 20px;
}

#question-type {
    color: #ff8c42;
    margin-bottom: 10px;
}

.sentence {
    font-size: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.answer-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    background-color: #fffacd;
    border-radius: 8px;
}

.comma, .question-mark {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

#user-answer {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
}

#user-answer:focus {
    border-color: #4a90e2;
}

/* Feedback */
.feedback {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    background-color: #e8f4fd;
    border-left: 4px solid #4a90e2;
}

.feedback.correct {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.feedback.incorrect {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

/* Botones */
.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.check-btn {
    background-color: #28a745;
    color: white;
}

.check-btn:hover {
    background-color: #218838;
}

.next-btn {
    background-color: #007bff;
    color: white;
}

.next-btn:hover {
    background-color: #0069d9;
}

.hint-btn {
    background-color: #ffc107;
    color: #333;
}

.hint-btn:hover {
    background-color: #e0a800;
}

.restart-btn {
    background-color: #6c757d;
    color: white;
}

.restart-btn:hover {
    background-color: #5a6268;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Ejemplos */
.examples {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.example {
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #4a90e2;
}

.answer {
    background-color: #fffacd;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #333;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .header {
        padding: 10px 5%;
    }
    
    .main-container {
        padding: 10px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .answer-area {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comma, .question-mark {
        display: none;
    }
}