* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hide {
  display: none;
}

body {
  padding: 2rem;
  width: 100%;
  min-height: 100vh;
  background-image: url('assets/d12ce24d1a043c8782a937b55cb32881.jpg');
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-repeat: no-repeat;
}

.header-img {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  filter: drop-shadow(5px 5px 20px rgba(0, 0, 0, 0.2));
}

.container {
  flex: 1;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.image-1,
.image-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20vw; /* Tamaño inicial basado en el ancho de la ventana de visualización */
  max-width: 400px; /* Establece un tamaño máximo para que las imágenes no se vuelvan demasiado grandes */
  min-width: 250px;
}

.btn {
  position: absolute;
  top: calc(100% - 5rem);
  min-width: 120px;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  outline: none;
  border: none;
  background-color: #f8fafc;
  border-radius: 5px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: #e2e8f0;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-yes {
  left: 50%;
  transform: translateX(calc(-100% - 1rem));
  z-index: 1;
}

.btn-no {
  left: calc(50% + 1rem);
  transition: all 0.5s ease;
  z-index: 2;
}

@font-face {
  font-family: BurbankBigCondensed-Black;
  font-style: normal;
  font-weight: 400;
  src: url(https://cors-anywhere.herokuapp.com/https://static-assets-prod.epicgames.com/fortnite/static/webpack/c5d323c99493dd76432d4f531b8cc329.woff) format('woff');
}

#fortnite-winner {
  font-family: BurbankBigCondensed-Black;
  position: relative;
  display: block;
  margin: auto;
  width: 870px;
  height: 120px;
  line-height: 120px;
  margin-top: 10%;

  &:before {
    content: "Victory Royale!";
    opacity: 0.8;
    display: block;
    width: 100%;
    height: 100%;
    font-size: 74px;
    text-align: center;
    color: #fff;
    background-color: #457db6;
    clip-path: polygon(
      0% 0%,
      75.5% 5.8%,
      76.2% 11.6%,
      88.96% 10%,
      91% 16.66%,
      91.95% 7.5%,
      100% 5%,
      97.45% 100%,
      72.41% 96.67%,
      71.49% 91.67%,
      70.46% 95.83%,
      39.66% 93.33%,
      38.16% 100%,
      1.61% 95.83%
    );
  }

  &:after {
    content: "#1";
    color: #f4fe7b;
    position: absolute;
    top: 0;
    left: calc(0.5em - 8vw);
    transform: rotate(-10deg);
    font-size: 200px;
    text-shadow: 2px 3px rgba(0, 0, 0, 0.4);
  }
}

.header-text {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 0px;
  font-family: 'Burbank Big Condensed Bold', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px black;
  line-height: 1;
}

@media (max-width: 2435px) {
  #fortnite-winner:after {
    font-size: calc(8vw + 1vmin); /* Comienza a reducir el tamaño proporcionalmente */
  }
}

/* Para pantallas menores de 1024px */
@media (max-width: 1024px) {
  #fortnite-winner:after {
    font-size: calc(7vw + 1vmin); /* Ajuste fino para pantallas medianas */
  }
}

/* Para pantallas menores de 768px */
@media (max-width: 768px) {
  #fortnite-winner:after {
    font-size: calc(6vw + 1vmin); /* Ajuste para dispositivos más pequeños */
  }

  .image-1,
  .image-2 {
    width: 80vw; /* Aumenta el tamaño relativo para pantallas pequeñas */
  }
}

/* Para pantallas muy pequeñas, ajuste adicional si es necesario */
@media (max-width: 375px) {
  #fortnite-winner:after {
    font-size: calc(5vw + 1vmin); /* Para pantallas muy pequeñas */
  }

  .image-1,
  .image-2 {
    width: 90vw; /* Aumenta aún más el tamaño para pantallas muy pequeñas */
  }

}

@media (max-width: 768px) {
  #fortnite-winner {
    width: auto; /* Ajustar el ancho para adaptarse al contenedor */
    font-size: 6vw; /* Ajustar el tamaño de fuente para pantallas más pequeñas */
    height: auto; /* Permitir que la altura se ajuste al contenido */
    line-height: normal; /* Normalizar la línea para el nuevo tamaño de fuente */
  }

  #fortnite-winner:before {
    font-size: 6vw; /* Ajustar el tamaño de fuente para el texto 'Victory Royale!' */
  }

  #fortnite-winner:after {
    font-size: 6vw; /* Ajustar el tamaño de fuente para el número '#1' */
    left: 1em; /* Ajustar la posición izquierda para mantener coherencia */
  }

  .header-text {
    font-size: 6vw; /* Reducir el tamaño de la fuente para adaptarse a pantallas más pequeñas */
  }
}

@media (max-width: 375px) {
  #fortnite-winner:before {
    font-size: 8vw; /* Ajustes adicionales para pantallas muy pequeñas */
  }

  #fortnite-winner:after {
    font-size: 8vw; /* Aumentar el tamaño de fuente para '#1' en dispositivos muy pequeños */
    left: -0.8em; /* Ajustar la posición para asegurar visibilidad */
  }

  .header-text {
    font-size: 7vw; /* Ajuste de tamaño de fuente para pantallas extremadamente pequeñas */
  }
}

.hidden {
  display: none !important;
}

.h1{
  margin-top: 1vw;
}
