* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

i {
  color: white;
  cursor: pointer;
}

h2 {
  font-size: 30px;
}

body {
  background-color: black;
  font-family: sans-serif;
}


/* Header section --------------------------------------------------*/

header {
  position: sticky;
  top: 0px;
  padding: 15px 0px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

header>div {
  width: 95%;
  display: flex;
  justify-content: space-between;
  /* border: 1px solid white; */    
  margin: 0px auto;
  align-items: center;
}

header>div>nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

header .nav-bar {
  display: none;
}

header>div nav>a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

header> div >img {
  width: 10%;
}

header div>input {
  width: 200px;
  background-color: gray;
  border: 1px solid white;
  padding: 5px 5px;
  color: white;
  background: url('https://www.citypng.com/public/uploads/preview/search-explore-white-icon-transparent-png-701751695037015aogz4s2rh6.png') no-repeat 175px center / 16px 16px;
}

header>div>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

header>div>div a >img{
  border-radius: 20px;
}

header input::placeholder {
  color: #d7d1d1;
}

header span {
  color: white;
  font-size: 14px;
}

/* Hero section ----------------------------------------------------*/

.hero {
  position: relative;
}

.hero>img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position:right;
}

.hero>div {
  position: absolute;
  bottom: 70px;
  left: 28px;
  color: white;
  width: 300px;
}

.hero>div>h1 {
  font-size: 40px;
  font-family: Arial, Helvetica, sans-serif;
}

.hero>div>div {
  display: flex;
  gap: 20px;
  margin: 8px 0px;
}

.hero>div>div>span>button {
  /* background-color: #272727; */
  background-color: black;
  color: white;
  padding: 3px 30px;
  border: 1px solid white;
  cursor: pointer;
  /* border-radius: 5px; */
}

.hero>div>p {
  font-size: 12px;
}


.navbar {
  width: 100%;
  position: fixed;
  z-index: 1;
  background-color: rgb(0, 0, 0, 0.8);
  display: none;
}

.navbar nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* z-index: 1; */
  padding: 10px 0px;
}

.navbar nav>a {
  color: white;
  text-decoration: none;
}



/* Popular section--------------------------------------------------- */

.popular {
  width: 95%;
  margin: 0px auto;
  color: white;
  margin-top: 70px;
  /* border: 1px solid white; */
}

.popular h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.popular img {
  width: 15%;
  border-radius: 10px;
}

.popular>div {
  width: 100%;
  /* border: 1px solid white; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.popular>div>img:hover {
  transform: scale(1.2);
  transition: all 0.5s ease;
}

/* Trending section------------------------------------------------- */

.trending {
  width: 95%;
  margin: 30px auto;
  color: white;
  /* border: 1px solid white; */
  margin-top: 70px;
}

.trending h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.trending img {
  width: 15%;
  border-radius: 10px;
}

.trending>div {
  width: 100%;
  /* border: 1px solid white; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.trending>div>img:hover {
  transform: scale(1.2);
  transition: all 0.5s ease;
}

/* Shows section --------------------------------------------------- */

.shows {
  width: 95%;
  margin: 0px auto;
  color: white;
  /* border: 1px solid white; */
  margin-top: 70px;
}

.shows h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.shows img {
  width: 15%;
  border-radius: 10px;
}

.shows>div {
  width: 100%;
  /* border: 1px solid white; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.shows>div>img:hover {
  transform: scale(1.2);
  transition: all 0.5s ease;
}

/* Blockbuster Action & Adventure---------------------------------- */

.action {
  width: 95%;
  margin: 0px auto;
  color: white;
  /* border: 1px solid white; */
  margin-top: 70px;
}

.action h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.action img {
  width: 15%;
  border-radius: 10px;
}

.action>div {
  width: 100%;
  /* border: 1px solid white; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.action>div>img:hover {
  transform: scale(1.2);
  transition: all 0.5s ease;
}


/* Netflix original section --------------------------------------------- */

.original {
  width: 95%;
  margin: 0px auto;
  color: white;
  /* border: 1px solid white; */
  margin-top: 70px;
}

.original h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.original img {
  width: 15%;
  border-radius: 10px;
}

.original>div {
  width: 100%;
  /* border: 1px solid white; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.original>div>img:hover {
  transform: scale(1.2);
  transition: all 0.5s ease;
}

/* Media section ---------------------------------------------------*/

.media {
  /* border: 1px solid white; */
  margin: 50px 0px;
}

.media>div:nth-child(1) {
  /* border: 2px solid white; */
  width: 90%;
  margin: 0px auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.media div:nth-child(1)>a>img {
  width: 25px;
}

.media>div:nth-of-type(2) {
  /* border: 2px solid white; */
  width: 90%;
  margin: 0px auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
  line-height: 30px;
}

.media>div:nth-child(2)>div {
  display: flex;
  flex-direction: column;
}

.media>div:nth-child(2)>div>a {
  text-decoration: none;
  color: gray;
  font-size: 14px;
}

.media>div:nth-child(2)>div>a:hover {
  text-decoration: underline;
  color: white;
}


/* Footer section ---------------------------------------------------*/

footer {
  text-align: center;
  color: white;
  width: 80%;
  margin: 0px auto;
  padding: 20px 0px;
}


/* Media quries */



@media screen and (min-width:880px) {
  .navbar nav {
    display: none;
  }

}


@media screen and (max-width:880px) {

  header>div>nav {
    display: none;
  }

  header div>input {
    width: 100px;
    background: url('https://www.citypng.com/public/uploads/preview/search-explore-white-icon-transparent-png-701751695037015aogz4s2rh6.png') no-repeat 75px center / 16px 16px;
  }

  header div>div>img {
    width: 10%;
  }

  header div>div>span {
    font-size: 12px;
  }

  header>div>img {
    width: 12%;
  }

  header div>div .fa {
    font-size: 10px;
  }

  header .nav-bar {
    display: block;
  }


}

@media screen and (max-width:600px) {
  h2 {
    text-align: center;
  }
}

@media screen and (max-width:800px) {
  .popular img {
    width: 30%;
    border-radius: 10px;
  }

  .trending img {
    width: 30%;
  }

  .shows img, .action img , .original img {
    width: 30%;
  }
}

/* @media screen and (max-width:500px){
    .popular img {
    width: 85%;
  }
} */

@media screen and (max-width:600px) {
  .popular img {
    width: 40%;
  }

  .trending img {
    width: 40%;
  }

  .shows img ,.action img,.original img {
    width: 40%;
  }
  .media > div:nth-child(2) {
  /* border: 2px solid white; */
  width: 80%;
  margin: 0px auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  line-height: 30px;
  margin-top: 20px;
}
  .media > div:nth-child(2) > div{
    width: 40%;
    margin-top: 20px;
  }
}