@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}
body {
  height: 100vh;
  width: 100vw;
  position: absolute;
  animation: animate 30s infinite ease-in-out;
}
@keyframes animate {
  0%,
  100% {
    background: url("./images/1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
  20% {
    background: url("./images/2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
  40% {
    background: url("./images/3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
  60% {
    background: url("./images/4.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
  80% {
    background: url("./images/5.jpg");
    background-repeat: no-repeat;
    background-size: cover;
  }
}
#title {
  text-align: center;
  font-size: 2rem;
  background: #fff;
  width: 25%;
  font-weight: 800;
  position: absolute;
  bottom: 0;
  left: 0;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
}
.container {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #fff;
  padding: 3%;
  border-top-left-radius: 100px;
  border-bottom-left-radius: 100px;
}
#random-heading {
  margin-bottom: 3%;
}
.content {
  display: flex;
}
#genre {
  font-weight: 800;
  text-align: center;
  font-size: 1rem;
  padding:5%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
#genre option {
  font-weight: 800;
}
#btn-search {
  padding: 2%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  font-weight: 750;
  width: 100%;
  outline: none;
  font-size: 1rem;
}
#btn-search:hover {
  cursor: pointer;
  font-weight: 900;
  background-color: hsl(0, 0%, 90%);
}
.search {
  display: flex;
  position: absolute;
  top: 40%;
  left: 50%;
  width: 50vw;
  transform: translate(-50%, -40%);
}
#movie-search {
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 1% 3%;
  outline: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  background: transparent;
  backdrop-filter: blur(5px);
}
#search-icon {
  color: #fff;
  text-align: center;
  outline: none;
  padding: 1% 3%;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  background: transparent;
  backdrop-filter: blur(5px);
}

#details {
  background-color: #fff;
  position: absolute;
  bottom: 0%;
  border-radius: 3%;
  display: flex;
  padding: 2%;
  left: 50%;
  visibility: hidden; 
  transform: translate(-50%, 0);
}

#info {
  justify-content: center;
  margin-right: 1%;
  line-height: 5mm;
}
#info p {
  font-weight: 600;
}
#movie-poster {
  height: 200px !important;
  border-radius: 10px;
}

#mname {
  font-weight: 900;
  font-size: 1.2rem;
}

.gitIcon {
  position: absolute;
  top: 1%;
  right: 1%;
  font-size: 1.5rem;
}
.gitIcon a {
  color: black;
  cursor: pointer;
}


#refreshBtn {
  text-align: center;
  display: none;
}
.searchRef{
  width: 50px;
  background: #fff;
  outline: none;
  border: none;
}
.searchRef img{
  width: 100%;
}
.searchRef img:hover{
  cursor: pointer;
}

/*MEDIA QUERIES*/

@media only screen and (max-width: 991px) {
  body {
    height: 100vh;
    width: 100vw;
    position: absolute;
    animation: animate 30s infinite ease-in-out;
  }
  .gitIcon a {
    color: white;
    cursor: pointer;
    font-size: 3rem;
  }

  #title {
    font-size: 3rem;
    width: 35%;
    bottom:10%;
  }
  .container{
    padding:4%;
    bottom:10%;
  }
  #random-heading,#genre{
    font-size: 2rem;
  
  }
  #btn-search{
    font-size: 2rem;
    padding: 1.9% ;
  }
  #search-icon{
    width: 20%;
    font-size: 2.5rem;
  }
  
  @keyframes animate {
    0%,
    100% {
      background: url("./images/mob-back1.jpg");
      background-repeat: no-repeat;
      background-size: cover;
    }
    20% {
      background: url("./images/mob-back2.jpg");
      background-repeat: no-repeat;
      background-size: cover;
    }
    40% {
      background: url("./images/mob-back3.jpg");
      background-repeat: no-repeat;
      background-size: cover;
    }
    60% {
      background: url("./images/mob-back4.jpg");
      background-repeat: no-repeat;
      background-size: cover;
    }
    80% {
      background: url("./images/mob-back5.jpg");
      background-repeat: no-repeat;
      background-size: cover;
    }
  }
  .search{
    width: 70vw;
  }
  #movie-search{
    font-size: 2rem;
    padding:5%;
    
  }

  #details{
    font-size: 2rem;
    padding:5%;
    bottom: 20% !important;
  }
  #info{
  line-height: 2rem;
  }
 #mname,#mimdb,#myear{
   font-size: 2rem;

 }
 #movie-poster{
   height: 300px !important;
 }
  .searchRef{
    width:40px !important;
}

