body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #98df8e;
    color: #f0f0f0;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
}


.rosco {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto 25px;
    margin-top: 20px;
}

.letra {
    position: absolute;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: blue;
    color: white;
    font-weight: bold;
    border: 3px solid blue;
    transition: 0.3s;
    font-size: 18px;
}

.verde { background-color: #4caf50; border-color: #4caf50; }
.rojo { background-color: #f44336; border-color: #f44336; }

.actual {
    box-shadow: 0 0 12px 4px yellow;
    transform: scale(1.15);
    z-index: 10;
}

#pregunta-actual {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    border: 2px solid #00bcd4;
    border-radius: 12px;
    background-color: #1e1e1e;
    max-width: 600px;
    margin: 0 auto 25px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    min-height: 2.5em;
}

.barra {
    padding-top: 10px;
    margin-bottom: 15px;
}

.barra input {
    width: 300px;
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 25px;
    border: none;
    outline: none;
    background: #2c2c2c;
    color: #fff;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.barra input:focus {
    box-shadow: 0 0 8px #00bcd4;
}

.botones button {
    padding: 12px 30px;
    margin: 8px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.botones button:first-child {
    background-color: #4caf50;
}

.botones button:first-child:hover {
    background-color: #43a047;
}
.botones button:nth-child(2) {
    background-color: #fbc02d; /* amarillo oscuro */
    color: black;
}

.botones button:nth-child(2):hover {
    background-color: #f9a825; /* tono más oscuro al pasar el cursor */
}
.botones button:last-child {
    background-color: #f44336;
}

.botones button:last-child:hover {
    background-color: #e53935;
}

header {
  background-color: #2e7d32;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  user-select: none;

  display: flex;            /* flex para centrar contenido */
  justify-content: center;  /* centrar horizontal */
  align-items: center;      /* centrar vertical */
  padding: 10px 20px;       /* espacio interno */
  white-space: nowrap;      /* evitar saltos en header */
}

header h1 {
  font-family: 'Bebas Neue', cursive, sans-serif;
  font-size: 32px;
  margin: 0;
  white-space: nowrap;      /* evitar saltos */
}

header h1 a {
  text-decoration: none;
  color: inherit;
  white-space: nowrap;      /* evitar saltos */
  display: inline-block;
}

.porteria {
  position: relative;
  padding: 6px 14px;
  border: 3px solid white;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: white;
  display: inline-flex;     /* aquí sí flex para icono y texto */
  align-items: center;
  gap: 4px;
}

.red {
  font-size: 28px;
  animation: bounce 2s infinite;
  user-select: none;
}

.resto {
  color: white;
  font-weight: 700;
}

/* Animación pelota */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}



#contenedor-juego {
    background: #121212;
    border: 4px solid #2e7d32; /* mismo color que el header */
    border-radius: 16px;
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
  text-align: center;

}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: black;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.popup button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.bot_rend {
  background-color: red;
  color: white;
}

.popup button:last-child {
  background-color: #a3a3a3;
}


footer {
  background-color: #2e7d32;
  color: white;
  padding: 30px 20px;
  text-align: center;
  
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-text p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px; /* Espacio entre texto y enlaces */
}

.footer-links a {
  color: white;
  margin: 0 15px;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}


#racha-dias {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #f0c808;
  margin-bottom: 15px;
}
@media (max-width: 900px) {
  #contenedor-juego {
    width: 90%;
    padding: 20px 15px;
  }

  .rosco {
    width: 320px;
    height: 320px;
  }

  .letra {
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 14px;
  }

  #pregunta-actual {
    font-size: 16px;
    padding: 10px 15px;
  }

  .barra input {
    width: 90%;
    font-size: 16px;
  }

  .botones button {
    padding: 10px 20px;
    font-size: 16px;
  }
}

@media (max-width: 450px) {
  .rosco {
    width: 300px;
    height: 300px;
    margin-left: 40px;
  }

  .letra {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
  }

  #contenedor-juego {
    padding: 30px 20px;
    width: 85%;
  }
}
@media (max-width: 400px) {
  .rosco {
    width: 270px;
    height: 270px;
    margin-left: 40px;
  }

  .letra {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
  }

  #contenedor-juego {
    padding: 20px 20px;
    width: 85%;
  }
}

@media (max-width: 350px) {
  .rosco {
    width: 250px;
    height: 250px;
    margin-left: 30px;

  }

  .letra {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 10px;
  }

  #contenedor-juego {
    padding: 20px 20px;
    width: 85%;
  }
}

#modal-instructions > div {
  max-width: 400px;
  width: 90%; /* ancho base para pantallas grandes */
}

/* Cuando pantalla es menor de 500px */
@media (max-width: 500px) {
  #modal-instructions > div {
    max-width: 280px; /* más pequeño */
    width: 90%;
    padding: 15px 20px; /* menos padding para que no ocupe tanto */
  }

  #modal-instructions h2 {
    font-size: 1.4rem;
  }

  #modal-instructions p {
    font-size: 14px;
  }

  #modal-instructions button {
    padding: 10px 22px;
    font-size: 14px;
  }
}