@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300&display=swap");

* {
  font-family: "Source Code Pro", monospace;
}

html {
  background: url(/media/fondo-web-formulario-juego.png) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  overflow-x: hidden;
}

.content button {
  cursor: pointer;
  font-size: 1rem;
}

.content .botones {
  display: flex;
  height: 160px;
  justify-content: center;
  align-items: center;
}

.content .botones .boton_a,
.content .botones .boton_b {
  width: 300px;
  height: 60px;
  margin: 5px;
  background: linear-gradient(25deg, white 0%, #888888 100%);
  border-radius: 10px;
  border: none;
  color: #bc0017;
  font-weight: bold;
  padding: 10px 15px;
}

.content .botones .boton_a:focus,
.content .botones .boton_b:focus {
  border: none;
}

@media only screen and (max-width: 600px) {
  .botones {
    flex-direction: column;
  }
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* para que el preloader esté en la capa superior */
  animation: fadeOut 4s forwards 3s; /* desaparece después de 3 segundos */
}

.progress-bar {
  width: 80%;
  height: 20px;
  background-color: #333;
  border-radius: 5px;
  margin-top: 20px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 100%;
  background-color: #bc0017;
  transform: scaleX(0);
  transform-origin: left center;
  animation: loadProgress 3s forwards; /* 3 segundos para llegar al 100% */
}

@keyframes loadProgress {
  to {
    transform: scaleX(1);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.all_father {
  text-align: center;
}

.all_father .titulo {
  color: #fff;
  margin: 20px 0;
}

.all_father .instruction {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.all_father .countdown {
  color: #fff;
  font-size: 1.2rem;
}

.all_father .countdown p {
  margin: 0;
  font-weight: bold;
}

.all_father .content {
  width: 100%;
  margin: 0 auto;
}

.all_father .caja_preguntas {
  background-color: #000;
  font-size: 0.7rem;
  text-align: left;
  width: 60%;
  height: 280px;
  margin: 0.9rem auto 0 auto;
  border: 1px solid #fff;
  position: relative; /* Agregamos posición relativa para el efecto de líneas */
  overflow: hidden; /* Oculta el desbordamiento de las líneas */
}

.all_father .caja_preguntas::before {
  content: ''; /* Agrega un elemento pseudo antes de la caja de consola */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(transparent 0%, transparent 10%, rgba(255, 255, 255, 0.5) 10%, rgba(255, 255, 255, 0.5) 20%);
  background-size: 100% 20px;
  background-repeat: repeat-y;
  animation: moveLines 2s linear infinite;
}

@keyframes moveLines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 20px;
  }
}

.all_father .caja_preguntas .pregunta {
  color: #fff;
  padding: 0.2rem 1rem;
  width: 50%;
}

.all_father .caja_preguntas .pregunta-gracias {
  color: #fff;
  padding: 0.2rem 1rem;
  width: 90%;
}

.all_father .caja_preguntas .pre-pregunta {
  background-color: #fff;
  color: #000;
  font-size: 20px;
}

.all_father .caja_preguntas .pre-pregunta p {
  padding: 0;
  margin: 0;
}

@media only screen and (max-width: 1200px) {
  .all_father .caja_preguntas {
    width: 100%;
    font-size: 0.7rem;
    margin: 0 auto;
    height: 40vh;
  }

  .all_father .caja_preguntas .pregunta {
    width: 100%;
  }

  .all_father .caja_preguntas .pre-pregunta {
    font-size: 15px;
  }
}

@media only screen and (max-width: 480px) {
  .all_father .titulo {
    margin: 10px 0;
  }

  .all_father .countdown {
    color: #fff;
    font-size: 1rem;
  }

  .all_father .caja_preguntas {
    width: 100%;
    font-size: 0.5rem;
    margin: 0 auto;
    height: 40vh;
  }

  .all_father .caja_preguntas .pregunta {
    width: 100%;
  }

  .all_father .caja_preguntas .pre-pregunta {
    font-size: 15px;
  }
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 0;
  width: 99%;
}

.logo #logo-rocket {
  width: 15%;
}

.logo a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin: 0;
  padding: 0;
}

.logo a:hover {
  color: #bc0017;
}

@media only screen and (max-width: 480px) {
  .all_father .logo #logo-rocket {
    width: 50%;
  }
}

.caja-iconos {
  font-size: 5rem;
  height: 30px;
  margin-top: 200px;
}

.caja-iconos .icono-play {
  cursor: pointer;
  transition: all 0.5s;
  color: #000;
}

.caja-iconos .icono-play:hover {
  color: #888;
}

.rrss a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 10px;
  margin: 0 7px;
  transition: all 1s;
}

.rrss a:hover {
  background-color: #000;
  transform: rotate(360deg);
}

.rrss i {
  padding-top: 5px;
  color: #fff;
  font-size: 1.2rem;
}

.contacto {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto label {
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
}

.contacto input[type="text"],
.contacto input[type="email"] {
  background-color: #fff;
  height: 30px;
  border: none;
  border-radius: 5px;
  color: #bc0017;
  width: 200px;
  margin: 5px 0;
  padding: 0 10px;
}

.contacto input[type="submit"] {
  margin-top: 10px;
  color: #fff;
  font-weight: bold;
  background-color: #000;
  border: none;
  border-radius: 5px;
  padding: 10px 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contacto input[type="submit"]:hover {
  background-color: #333;
}

.countdown {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.countdown #hours,
.countdown #minutes,
.countdown #seconds,
.countdown #days {
  font-family: "digital-clock";
  font-size: 2rem;
  padding: 0 15px;
}

.countdown #days {
  padding: 0 30px;
}

.countdown .counter {
  margin: 10px 0;
}

.countdown .description-countdown {
  font-size: 0.9rem;
}

.countdown .description-countdown span {
  padding: 0 15px;
}

@media only screen and (max-width: 480px) {
  .countdown {
    margin-top: 0px;
  }

  .countdown #hours,
  .countdown #minutes,
  .countdown #seconds,
  .countdown #days {
    font-family: "digital-clock";
    font-size: 2rem;
    padding: 0 15px;
  }

  .countdown .description-countdown {
    font-size: 0.6rem;
  }
}

@font-face {
  font-family: "digital-clock";
  src: url(/font/DS-DIGI.TTF);
}

* {
  font-family: "Source Code Pro", monospace;
}

html {
  overflow-x: hidden;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#mensajeEspecial {
    font-weight: bold;
    color: yellow;
    animation: blink 1s infinite;
}
/* Estilo para la imagen de La Gran G en dispositivos grandes (por defecto) */
.all_father .caja_preguntas .imagenLaGranG {
    max-width: 100%;
    display: block;
    margin: auto;
    position: absolute;
    top: calc(50% + 15px);
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Estilo para la imagen de La Gran G en dispositivos medianos (tabletas) */
@media only screen and (max-width: 768px) {
    .all_father .caja_preguntas .imagenLaGranG {
        top: calc(50% + 10px);
    }
}

/* Estilo para la imagen de La Gran G en dispositivos pequeños (móviles) */
@media only screen and (max-width: 480px) {
    .all_father .caja_preguntas .imagenLaGranG {
        top: calc(50% + 5px);
    }
}
