/* Fuente gamer desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #00ffcc;
}

.titulo-principal {
  text-align: center;
  font-size: 3rem;
  margin-top: 1rem;
  text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc;
}

.menu-navegacion {
  display: flex;
  justify-content: center;
  background-color: #1f1f1f;
  padding: 10px;
  gap: 1rem;
  border-bottom: 2px solid #00ffcc;
}

.menu-navegacion button {
  background-color: #00ffcc;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 0 10px #00ffcc;
  transition: all 0.3s;
}

.menu-navegacion button:hover {
  background-color: #00bfa6;
  transform: scale(1.05);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  max-width: 800px;
}

.sorteo-config {
  background-color: #121212;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ffcc66;
  width: 100%;
  margin-bottom: 2rem;
}

.sorteo-config label {
  display: block;
  margin: 10px 0 5px;
}

.sorteo-config input {
  width: 100%;
  padding: 10px;
  background-color: #1a1a1a;
  color: #00ffcc;
  border: 2px solid #00ffcc44;
  border-radius: 8px;
  margin-bottom: 10px;
}

.sorteo-config button {
  width: 100%;
  padding: 10px;
  background-color: #00ffcc;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffcc88;
}

.sorteo-config button:hover {
  background-color: #00bfa6;
}

.participantes {
  background-color: #121212;
  padding: 1rem;
  border-radius: 15px;
  width: 100%;
  box-shadow: 0 0 15px #00ffcc66;
}

.participantes h2 {
  margin-top: 0;
}

#listaParticipantes {
  list-style: none;
  padding-left: 0;
}

#listaParticipantes li {
  padding: 5px 0;
  border-bottom: 1px solid #00ffcc33;
}

.start-button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: #ff0066;
  color: white;
  border: none;
  border-radius: 15px;
  margin: 2rem 0;
  cursor: pointer;
  box-shadow: 0 0 15px #ff0066aa;
  transition: 0.3s ease;
}

.start-button:hover {
  background-color: #e6005c;
  transform: scale(1.05);
}

/* Fondo del modal que cubre toda la pantalla */
.resultado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px; /* en caso de pantallas pequeñas */
}

/* Contenido centrado del modal */
.resultado-contenido {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px #0ff;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* Botón de cerrar */
.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Texto del ganador con parpadeo */
.ganador {
  margin-top: 20px;
  font-size: 1.8em;
  color: gold;
  font-weight: bold;
  animation: blink-glow 1s infinite;
}

@keyframes blink-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px gold, 0 0 20px orange; }
  50% { opacity: 0.5; text-shadow: 0 0 5px gold, 0 0 10px orange; }
}

/* Carrusel centrado */
#carrusel {
  font-size: 1.5em;
  color: #fff;
  margin-top: 10px;
}

/* Confetti canvas encima */
#confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* GIF del perro */
.gif-perro {
  width: 120px;
  margin-top: 15px;
  border-radius: 10px;
}


footer.pie-pagina {
  margin-top: 4rem;
  padding: 1rem;
  background-color: #111;
  text-align: center;
  color: #777;
  border-top: 1px solid #00ffcc33;
}


/* Ventana modal */
.resultado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenido modal centrado y ajustado */
.resultado-contenido {
  position: relative;
  background: #1a1a1a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 30px #0ff;
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: translate(0, 0); /* Asegura que no se desplace */
}

/* Nombre del ganador con animación de parpadeo */
.ganador {
  margin-top: 20px;
  font-size: 1.8em;
  color: gold;
  font-weight: bold;
  animation: blink-glow 1s infinite;
}

/* Animación de parpadeo */
@keyframes blink-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px gold, 0 0 20px orange; }
  50% { opacity: 0.5; text-shadow: 0 0 5px gold, 0 0 10px orange; }
}

/* GIF del perro */
.gif-perro {
  width: 120px;
  margin-top: 15px;
  border-radius: 10px;
}


/* Botón cerrar */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 10px;
}

/* Animación del texto */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}
