/*----------------------------------------------- Everblade MAIN Section -----*/

#everblade-main {
  background-image: url("../images/bg-everblade.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.everblade-logo {
  width: 70%;
  max-width: 640px;
}

.nav-list {
  position: absolute;
  z-index: 1000;
  right: 5%;
  top: 16%;

  li {
    display: block;
    list-style: none;
    margin: 20px 10px;
  }
}

.blackout {
  width: 100%;
  height: 100%;
  background-color: #000;
  animation: fade 1200ms linear;
  position: absolute;
  opacity: 0;
}

.player {
  width: 60%;
  height: 60%;
  background-image: url("../images/player.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 16% 20% 0 16%;
  position: absolute;
  animation: move 1200ms ease-in;
  opacity: 0;
}

.flash {
  width: 100px;
  height: 100px;
  position: absolute;
  margin: 30% 20% 10%;
  background-color: #babafa;
  border-radius: 50%;
  animation: flash 1200ms linear;
  opacity: 0;
}

@keyframes move {
  0% {
    opacity: 1;
    width: 1%;
    height: 1%;
  }

  30% {
    width: 60%;
    height: 60%;
  }
  40% {
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1%;
    width: 10px;
    height: 10px;
  }

  40% {
    opacity: 100%;
    width: 2000px;
    height: 2000px;
  }
  100% {
    opacity: 0;
    width: 2000px;
    height: 2000px;
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
}

/*----------------------------------------------- Everblade VIDS Section -----*/

#everblade-vids {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel {
  width: 100%;
  height: 100%;
  display: flex;
  margin-top: 10%;
  overflow: hidden;
}

.video-wrapper {
  width: 100%;
  padding: 1rem;
  flex-shrink: 0;
  transition: 250ms;
  margin: 0 auto;
}

iframe {
  width: 100%;
  max-width: 680px;
}

.slider-controls {
  margin: 0 auto;
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0 1rem 2rem 1rem;
  max-width: 800px;
  position: absolute;
  bottom: 20%;
  gap: 1rem;
}

#sld-btn-1::after {
  content: "Trailer 1";
}

#sld-btn-2::after {
  content: "Trailer 2";
}

#sld-btn-3::after {
  content: "Features";
}

#sld-btn-4::after {
  content: "Gameplay";
}

/*----------------------------------------------- Everblade FEATS Section -----*/

#everblade-features {
  .feature {
    width: 100%;
    padding: 3rem 2rem;
    align-items: center;

    p {
      margin-bottom: 1rem;
    }
  }
}

/*----------------------------------------------- Media queries ------*/

@media screen and (max-width: 400px) {
  #sld-btn-1::after {
    content: "1";
    margin: 0 8px;
  }
  #sld-btn-2::after {
    content: "2";
    margin: 0 8px;
  }
  #sld-btn-3::after {
    content: "3";
    margin: 0 8px;
  }
  #sld-btn-4::after {
    content: "4";
    margin: 0 8px;
  }

  .carousel {
    margin-top: 40%;
  }
}

@media screen and (min-width: 576px) {
  .carousel {
    margin-top: 1%;
  }
  .slider-controls {
    bottom: 7%;
    gap: 2rem;
  }
}

@media screen and (min-width: 768px) {
  feature {
    width: 50%;
  }
}

@media screen and (min-width: 1200px) {
  .carousel {
    margin-top: 4%;
  }
}

@media screen and (max-height: 400px) {
  #everblade-vids {
    .carousel {
      width: 60%;
      margin-left: 40%;
    }
    .slider-controls {
      bottom: 10%;
      flex-direction: column;
      gap: 4px;
      width: 20%;
      height: 80%;
      left: 10%;
      top: 16%;
    }

    iframe {
      max-width: 340px;
    }

    button {
      padding: 0.3rem;
      font-size: 0.8rem;
    }
  }
}
