body {
  background-color: #141516;
  z-index: 1;
}

/* main */



.main-section {
  background-image: url("../pics/homepage/main-banner.png");
  height: 1080px;
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  background-size: cover;
  background-position: center;
  
}

.main-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  position:relative;
  gap: 20px;
  margin-top: 400px;
  width: 60%;
  padding-top: 40px;
}

.horizontal-social {
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizontal-social img{
  height: 40px;
  padding-right: 15px;
  
}

.horizontal-social img:hover {
  cursor: pointer;
}

.horizontal-social img:nth-of-type(1) {
  height: 70px;
  padding-right: 0px;
  margin-top: 30px;
}

.horizontal-social img:nth-of-type(2),
.horizontal-social img:nth-of-type(3),
.horizontal-social img:nth-of-type(4) {
  margin-top: 30px;
}

/* trailers section */

.trailers-title {
  border-bottom: 1px solid gray;
  width: 25%;
  margin-left: 20%;
  margin-bottom: 70px;
}

.trailers-section {
  background-image: url("../pics/homepage/background-01.png");
  width: 100%;
  height: 850px;
  box-sizing: border-box;
}



.trailers-container {
  position: relative;
  

}

.trailers-wrapper {
  display:flex;
  gap:20px;
  margin-right: 30px;
  text-align: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  scroll-snap-type: x mandatory;
}

.trailer {
  margin-right: 30px;
  text-align: center;
  scroll-snap-align: start;
}

.trailers-container::-webkit-scrollbar {
  display: none; /* Hides scrollbar in Chrome, Safari */
}

.scroll-button {
  background-color: rgba ( 0, 0, 0, 0.5 );
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 36.5%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Left button */
.scroll-left {
  left: 10px;
}

/* Right button */
.scroll-right {
  right: 10px;
}

/* Hover effect */
.scroll-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Scroll snapping for keyboard navigation */
.trailers-wrapper:focus-within {
  scroll-behavior: smooth;
}

/* horizontal-button-container */

.horizontal-button-container {
  margin-top: 3%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.logo-button {
  width: 200px;
  margin-right: 40px;
  height: 50px;
  padding: 10px 20px;
  background-color: #0D141A;
  border: 4px solid white;

}



.steam-logo:hover {
  background-color: #1692FF;

}

.xbox-logo:hover {
  background-color: #167D10;

}

.playstation-logo:hover {
  background-color: #04439C;

}

/* words n vids section */
.words-n-vids-container {
  display:flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.words-n-vids {
  display: flex;
  flex-direction: row;
  height: auto;
  width: 100%;
}

.words-n-vids:nth-of-type(1),
.words-n-vids:nth-of-type(3) {
  position: relative;
  background-image: url("../pics/homepage/background-02.jpg");
  
}

.words-n-vids:nth-of-type(1)::before,
.words-n-vids:nth-of-type(3)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(57, 60, 51, 0.9); /* Dark overlay */
  z-index: 1;
}

.words-n-vids-2{
  padding-bottom: 5%;
}

.words-n-vids-3 {
  padding-bottom: 50px;
}

.words-n-vids-4 {
  padding-bottom: 6.5%;
}

.words {
  position: relative;
  z-index: 2;
  color: white; /* Ensure text remains readable */
}

/* Ensure the video remains unaffected */
.video video {
  position: relative;
  z-index: 2; /* Keeps the video above the dark overlay */
}

.words-n-vids:nth-of-type(2),
.words-n-vids:nth-of-type(4) {
  background-image: url("../pics/homepage/background-01.png");
}


.words {
  width: 1000px;
  padding-top: 200px;
  text-align: center;
}



.words p {
  padding: 0px 100px;
  
}
.words-container h2 {
  border-bottom: 2px solid gray;
  width: 60%;
  margin: 0 auto;
}

.vertical-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 280px;
  
}




.aniplex-logo {
  padding-top: 50px;
}


.video {
  width: 100%;
  display: flex;
  
}

video {
  width: 100%;
  
}

.aniplex-logo:hover {
  cursor: pointer;
}

.logo-button:hover {
  cursor: pointer;
}


/* Media Queries */

@media (max-width: 2000px) {
  .container-01{
    padding-bottom: 10%;
  }
}

@media (max-width: 1440px) {

  .horizontal-button-container{
    margin-left: 5%;
  }

  .horizontal-social{
    margin-left: 3%;
  }


  .words-container{
    width: 120%;
    margin-left: -10%;
    margin-top: -20%;
  }

  .vertical-button-container{
    padding-top: 5%;
  }

}



@media (max-width: 1024px) {

  .horizontal-button-container img{
    width: 20%;
  }

  .horizontal-button-container{
    margin-left: 7%;
  }

  .horizontal-social{
    margin-left: 3%;
  }
}


@media (max-width: 768px) {

  main{
    font-size: 0.8rem;
  }

  .main-section{
    margin-top: -15%;
    background-size: 1000px 700px;
    overflow: hidden;
    background-repeat: no-repeat;
  }

  .horizontal-button-container img{
    width: 30%;
  }

  .horizontal-button-container{
    margin-left: 7%;
  }

  .main-links{
    width: 90%;
  }

  .horizontal-social{
    margin-left: 3%;
  }

  .trailers-section{
    margin: -20% 0;
  }
  .words-container{
    width: 140%;
  }

  .words-01 {
    margin-top: -30%;
  }
  .video-01{
    margin-top: 3%;
  }
  .words-02 {
    margin-top: -30%;
    margin-left: -20%;
    width: 130%;
  }
  .words-03 {
    margin-top: -30%;
    margin-left: -20%;
  }
  .words-04 {
    margin-top: -30%;
    margin-left: -25%;
  }
  

}



@media (max-width: 425px) {
  main{
    font-size: 0.8rem;
  }

  .main-section{
    margin-top: -70%;
    background-size: 700px auto;
    overflow: hidden;
    background-repeat: no-repeat;
  }

  .horizontal-button-container img{
    width: 15%;
    height: auto;
  }

  .horizontal-button-container{
    margin-top: -7%;
    margin-left: 10%;
  }
  .horizontal-social{
    height: 30%;
    margin-top: -5%;
  }

  .main-links{
    margin-top: 50%;
    width: 95%;
    height: 10%;
  }

  .trailers-section{
    margin: -20% 0;
    margin-top: -70%;
  }

  .trailer {
    width: 100%;
  }

  .trailer h3 {
    margin: 0 auto;
    font-size: 0.6rem;
    width: 80%;
  }

  .trailer-btns{
    padding-top: 15%;
  }

  .words-n-vids-container{
    margin-top: -50%;
  }
  .words-container{
    width: 100%;
  }



  .words-n-vids-1, .words-n-vids-3{
    display:flex;
    flex-direction: column-reverse;
  }
  .words-n-vids-2, .words-n-vids-4{
    display:flex;
    flex-direction: column;
  }
  .words-01, .words-02, .words-03, .words-04 {
    margin-top: -15%;
    margin-left: -9%;
    width: 60%;
  }

  .video-01{
    margin-top: 0%;
  }

  .words-02-container{
    padding-bottom: 10%;
  }
}






