@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;400;500;600;700;800&display=swap");

      body {
        font-family: "Poppins", sans-serif;
        background: url("images/fondo3.jpg"); /* Fondo fijo de color azul */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;

        color: #ffffff;
        margin: 0;
        text-align: center;
      }
      .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(1, 1, 1, 0.7);
        padding: 0px 10%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
      }
      .logo {
        font-size: 25px;
        text-transform: uppercase;
        color: #ffffff;
        font-weight: 700;
      }
      .navigation ul {
        list-style: none;
      }
      .header .navigation ul li {
        float: left;
        position: relative;
      }
      .header .navigation ul li a {
        font-size: 18px;
        color: #ffffff;
        text-decoration: none;
        padding: 20px;
        display: block;
        transition: all 0.2s ease;
      }
      .header .navigation ul li a:hover {
        background-color: #fe615c;
      }
      .header .navigation ul li ul {
        position: absolute;
        right: 0;
        width: 300px;
        background-color: rgba(1, 1, 1, 0.7);
        display: none;
      }

      .header .navigation ul li ul li a {
        font-size: 15px;
        text-transform: capitalize;
      }
      .header .navigation ul li ul li ul {
        position: absolute;
        top: 0;
        right: 300px;
      }
      .header .navigation ul li ul li {
        width: 100%;
      }
      .header .navigation ul li:hover > ul {
        display: initial;
      }
      #toggle,
      .header label {
        display: none;
        cursor: pointer;
      }
      .menu {
        width: 45px;
        height: 35px;
      }
      @media (max-width: 950px) {
        .header label {
          display: initial;
        }
        .header {
          padding: 20px 10%;
        }
        .header .navigation {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background-color: rgba(1, 1, 1, 0.7);
          display: none;
        }
        .header .navigation ul li {
          width: 100%;
        }
        .header .navigation ul li a {
          padding: 8px 30px 8px 10%;
        }
        .header .navigation ul li ul {
          position: relative;
          width: 100%;
          left: 0;
        }
        .header .navigation ul li ul li {
          background-color: rgba(197, 193, 193, 0.7);
        }
        .header .navigation ul li ul li ul {
          position: relative;
          width: 100%;
          left: 0;
        }
        #toggle:checked ~ .navigation {
          display: block;
        }
      }

      .intro-container,
      .game-container,
      .completion-message {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
        max-width: 600px;
        width: 100%;
        margin-bottom: 20px;
        animation: fadeIn 1s ease-in-out;
      }

      @keyframes fadeIn {
        0% {
          opacity: 0;
          transform: translateY(20px);
        }
        100% {
          opacity: 1;
          transform: translateY(0);
        }
      }

      h1 {
        color: #ec5b4e;
        font-size: 30px;
        margin-bottom: 15px;
      }

      p {
        font-size: 18px;
      }

      button {
        background-color: #ec5b4e;
        color: white;
        border: none;
        padding: 14px 22px;
        margin: 15px 5px;
        font-size: 18px;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
      }

      button:hover {
        background-color: #f02116;
        transform: scale(1.1);
      }

      button:active {
        transform: scale(1.05);
      }

      #result {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
      }

      /* Estilo de la felicitación */
      .completion-message {
        font-size: 28px;
        font-weight: bold;
        color: #4a90e2;
        padding: 40px;
        background-color: #fffaf1;
        color: #ff6f61;
        border-radius: 20px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        width: 80%;
        max-width: 600px;
        margin: 30px auto;
        text-align: center;
        transition: all 0.3s ease-in-out;
      }

      .completion-message p {
        font-size: 32px;
        margin-bottom: 25px;
        font-weight: normal;
      }

      .completion-message button {
        background-color: #28a745;
        color: white;
        font-size: 20px;
        padding: 15px 30px;
        border-radius: 12px;
        transition: background-color 0.3s ease-in-out;
      }

      .completion-message button:hover {
        background-color: #218838;
      }

      /* Animación para el resultado */
      @keyframes resultAnimation {
        0% {
          transform: scale(1);
          opacity: 0;
        }
        50% {
          transform: scale(1.3);
          opacity: 1;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      #result {
        font-size: 22px;
        font-weight: bold;
        margin-top: 20px;
        text-align: center;
      }

      /* Estilos para el cronómetro */
      .timer-container {
        background-color: #797575;
        padding: 15px;
        border-radius: 10px;
        margin: 20px auto; /* Centrado y con margen superior */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
        max-width: 250px;
        width: 100%;
        text-align: center; /* Centrar el texto */
        position: relative; /* Para posicionar correctamente */
        z-index: 999; /* Asegurar que esté por encima de otros elementos */
      }
      .timer-container.visible {
        display: block; /* Mostrar el cronómetro */
      }
      #timer {
        font-size: 24px;
        font-weight: bold;
        color: #ffffff;
        margin: 10px 0;
      }

      #warning {
        color: red;
        font-weight: bold;
        display: none;
      }

      /* Estilos para el contador de puntuación */
      #score-display {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 15px;
        color: #4a90e2;
      }

      /* Estilos para la tabla de resultados finales */
      .results-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        margin-bottom: 20px;
      }

      .results-table th,
      .results-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
      }

      .results-table th {
        background-color: #f5f5f5;
      }

      .correct {
        color: green;
      }

      .incorrect {
        color: red;
      }

      .final-score {
        font-size: 24px;
        font-weight: bold;
        margin: 20px 0;
        color: #4a90e2;
      }