html {
  font-family: sans-serif;
  /* scroll-behavior: smooth; */
}
/* #070509 */
body {
  /* background-color: #000; */
  background-color: #100e17;
  color: #fff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  padding-top: 20px;
  padding-bottom: 40px;
  width: 95%;
  margin: auto;
}

/* header */
.home {
  height: 500px;
  overflow: hidden;
  position: relative;
}
.home .logo {
  width: 160px;
  position: absolute;
  top: 10%;
  left: 10%;
  transform: translate(-20%, -70%);
  color: white;
  z-index: 3;
}
.home .search {
  display: inline-block;
  padding: 7px 20px;
  box-sizing: border-box;
  border: 1px solid #ffffff;
  border-radius: 5px;
  outline: none;
  width: 30%;
  z-index: 3;
  position: absolute;
  top: 5%;
  right: 8%;
  color: #ffffff;
  background: none;
}

.home .search::placeholder {
  color: #ffffff;
}
.home .slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: none;
  padding: 0 15px;
  animation: slide 2s ease;
}
.home .slide.active {
  display: flex;
}
@keyframes slide {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.container {
  max-width: 1170px;
  margin: auto;
}

.home .container {
  flex-grow: 1;
}
.home .caption {
  width: 50%;
}
.home .caption h1 {
  color: #ffffff;
  font-size: 40px;
  margin: 0;
}
.home .slide.active .caption h1 {
  opacity: 0;
  animation: captionText 0.5s ease forwards;
  animation-delay: 1s;
}
.home .caption p {
  font-size: 22px;
  margin: 15px 0 30px;
  color: #ffffff;
}
.home .caption p .star {
  font-size: 22px;
  color: orange;
}
.home .slide.active .caption p {
  opacity: 0;
  animation: captionText 0.5s ease forwards;
  animation-delay: 1.2s;
  font-family: sans-serif;
}
.home .caption a {
  display: inline-block;
  text-decoration: none;
  color: #000;
  padding: 12px 25px;
  background-color: #f2aa4cff;
  font-size: 0.9rem;
  letter-spacing: 2px;
  position: relative;
  transition: 0.5s;
  display: inline-block;
  text-decoration: none;
  border-radius: 20px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
}

.home .slide.active .caption a {
  opacity: 0;
  animation: captionText 0.5s ease forwards;
  animation-delay: 1.4s;
}

.home .header-card {
  width: 160px;
  position: absolute;
  top: 70%;
  left: 75%;
  transform: translate(-20%, -70%);
  color: white;
}

@keyframes captionText {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

.img-two,
.img-three,
.img-four {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

a {
  text-decoration: none;
  color: #fff;
}
/* scroll buttons */
.start,
.trend-left,
.rated-left,
.search-left {
  left: 5.5%;
}
.end,
.trend-right,
.rated-right,
.search-right {
  right: 5.5%;
}
.btn {
  position: absolute;
  margin-top: 8%;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  color: #ffffff;
  background: #404040;
  border: none;
  border-width: thin;
  box-shadow: 0 8px 16px 0 rgba(95, 24, 24, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  outline: none;
}
.btn:hover {
  color: #201c29;
}

/* loader */
.loader {
  position: absolute;
  left: 53%;
  top: 100%;
  z-index: 1;
  margin: -120px 0 0 -75px;
  border: 3px solid #f3f3f3;
  border-radius: 100%;
  border-top: 3px solid #f2aa4cff;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}
.hide {
  display: none;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* card sections */
h1 {
  color: #f2aa4cff;
  padding-bottom: 10px;
  font-family: "Source Sans Pro", sans-serif;
}
span {
  color: #f2aa4cff;
  font-weight: bolder;
  margin-right: 10px;
}
.fans {
  padding-bottom: 10px;
  font-family: "Source Sans Pro", sans-serif;
  margin-bottom: 10px;
}
.movies,
.upcoming,
.top-rated,
.shows,
.trending {
  display: flex;
  overflow-x: auto;
  gap: 20px;
}
.movies::-webkit-scrollbar {
  display: none;
}
.upcoming::-webkit-scrollbar {
  display: none;
}
.top-rated::-webkit-scrollbar {
  display: none;
}
.shows::-webkit-scrollbar {
  display: none;
}
.trending::-webkit-scrollbar {
  display: none;
}
.movie-card {
  width: 100%;
}
.movie-card-img {
  width: 180px;
  margin-right: 20px;
}

.movie-card:hover {
  margin-left: 0 40px;
  transform: scale(1.15);
  cursor: pointer;
  transition: transform 1s;
}
.movie-name {
  font-family: sans-serif;
  font-size: 17px;
  text-align: left;
  padding: 20px 0;
  margin-right: 5px;
}
/*FOOTER*/
footer {
  background: #100e17;
  color: white;
  text-align: center;
}
footer a {
  color: #f2aa4cff;
  font-weight: 700;
}
.year {
  font-weight: 300;
  color: #ffffff;
}
.me {
  margin-bottom: 16px;
}
.themoviedb {
  /* height: 20%; */
  height: 8px;
}
.powered {
  font-size: 12px;
  margin-bottom: -13px;
}

@media screen and (max-width: 800px) {
  .home .search {
    width: 50%;
  }
  .home .logo {
    left: 12%;
  }
  .home .header-card {
    width: 120px;
    position: absolute;
    top: 60%;
    left: 60%;
    transform: translate(-20%, -70%);
  }
  .end,
  .trend-right,
  .rated-right,
  .start,
  .trend-left,
  .rated-left,
  .search-right,
  .search-left {
    display: none;
  }
}
