@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

body {
  position: 'relative';
  background-color: #333;
  font-family: "Quicksand" !important;
}

.container-fluid {
  padding: 0;
  margin: 0;
  background-color: #fff;
  box-shadow: 1px 2px 10px 1px #f5f5f5;
}

.header {
  position: relative;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.brand {
  font-size: 2rem;
  font-weight: bold;

}

a {
  text-decoration: none;
  color: inherit;
}

.theme-color {
  color: #d32f2f !important;
}

.search {
  display: flex;
  align-items: center;

}

.search input {
  border: none;
  width: 25rem;
  padding: 0 .5rem;
  height: 2rem;
  background-color: transparent;
  color: white;
  border-radius: 3px;
  border: 1px solid white;
}

.search button {
  display: grid;
  place-content: center;
  font-weight: bold;
  border: 1px solid white;
  height: 2rem;
  padding-inline: 1rem;
  margin-left: -5px;
  border-radius: 0 3px 3px 0 !important;
  border-left: none;
  color: #fff;
  background-color: #d32f2f;
}

.search button:hover {
  border-color: white;
}

.watch-now-btn {
  border: none;
  border-radius: 5px;
  font-weight: bold;
  /*  margin-top: 1rem!important;*/
  font-family: inherit;
}

.recommended .alignimg {
  margin: 0rem 2rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.alignimg img {
  width: 200px;
  height: 20rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}


.catagory {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 1rem;
  display: none;
}

.movies-list-container {
  background-color: white;
  max-width: 1140px;

  padding: 2rem 15rem;
  padding: 2rem 1rem;
  margin: auto;
}

.movies-list-container:nth-child(3) {
  background-color: rgb(248, 248, 248);

}

.section-title {
  margin-inline: 1rem;
  margin-block: 0 2rem;
  padding-block: 2rem 1rem;
  border-bottom: 1px solid gray;
  color: #333;
  font-weight: bold;
  font-size: 2rem;
}

.movies-list {
  display: grid;
  justify-items: center;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.movie {
  text-decoration: none;
  color: #333;
  margin-bottom: 1rem;
  display: grid;
  align-items: space-between;
  gap: .5rem;

}

.movie img {
  object-fit: cover;
  width: 226px;
  height: 340px;
  border-radius: .3rem;
  width: 100%;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, .25);
}

.movie .card-body {
  text-align: center;
}

.movie .card-body .list .card-text {
  text-align: center;
  color: gray;
  font-size: .85rem;
  margin-block: rem 0;
}

.footer {
  padding: 1rem;
  margin-top: 10em;
  font-size: x-large;
  border-top: 2px solid #333;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: 75vh;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: start;
  color: #fff;
}

.content {
  margin-top: 5rem;
  /*  padding-right: 15%!important;*/
  /*  padding: 2rem 15%;*/
  margin-inline: auto;
  max-width: 1140px;
  padding: 1rem;
}

.content h2 {
  font-size: 2.618rem;
  font-weight: bold;

}

.content p {
  width: 50%;
  margin-block: 1rem .5rem;
}

.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: 1;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .65);
  /* Dark overlay to add opacity effect */
  z-index: 2;
}

.content {
  position: relative;
  z-index: 3;
}

h2 {
  font-size: 24px;
  margin: 0;
}

p {
  font-size: 16px;
  margin: 5px 0 0;
}

.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 4;
}

.dot {
  width: 20px;
  height: 5px;
  background-color: #ddd;
  border-radius: 2px;
  cursor: pointer;
}

.dot.active {
  background-color: #77a2e7;
}


.backgroundAnimation {
  animation: bgAnimation 1.5s linear infinite;
  box-shadow: none !important;
  background-color: none;
}

.header .header-search {
  display: flex;
  margin-left: 60%;
}

@keyframes bgAnimation {
  0% {
    background-color: lightgray;
  }

  50% {
    background-color: #e6e3e3
  }

  100% {
    background-color: lightgray;
  }
}

@media (max-width: 570px) {
  .search {
    display: none;
  }

  .slider {
    height: 50vh;
  }

  .slide {
    height: 50vh;
  }

  .content h2 {
    font-size: 2rem;
  }

  .content p {
    font-size: .8rem;
  }
}


@media (max-width: 450px) {
  .movies-list {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }

  .movie img {
    height: 16rem;
  }
}

@media (max-width: 400px) {}

@media (max-width: 370px) {
  .movie img {
    height: 20rem;
  }

}

.loading,
.error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}

.error {
  color: red;
}

.wow {
  position: absolute;
  right: -10%;
  bottom: 0;
  top: 105;
}

@keyframes ho {

  0%,
  100% {
    padding: 10px;
  }

  50% {
    padding: 0;
  }
}

.wow img {
  border: 2px solid white;
  width: 200px;
  object-fit: cover;
  border-radius: 50%;
  transition: .2s;
  animation: ho 2s ease linear;
}

.wow img:hover {
  width: 205px;
  cursor: pointer;
}

.wow img:nth-child(1):active {
  position: absolute;
  transform: translateX(-250px) rotate(0deg);
  z-index: 907080969756;
}

.wow img:nth-child(2):active {
  transform: translateX(-250px) rotate(0deg);
  z-index: 907080969756;
}

.wow img:nth-child(1) {
  transform: translateX(250px) rotate(30deg);

}

.wow img:nth-child(2) {
  transform: translateX(0px);
}

.wow img:nth-child(3) {
  transform: translateX(-250px) rotate(-30deg);
}

@media (max-width: 950px) {
  .wow {
    display: none;
  }

  .content p {
    width: 100%;
  }

}