@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap');

*{
    box-sizing: border-box;
}



body{
    /* background-color: var(--primary-color); */
    background-image: url(IMAGES/BACKGROUND.jpg) ;
    background-repeat: no-repeat;
     background-position: center; 
     background-size: cover; 
     background-color: rgb(255, 255, 255);
/* background-blend-mode: lighten; */
    font-family: 'Poppins', sans-serif;
    margin: 0;

    position: relative;
    
}



header{
    padding:1rem;
    display:flex;
    justify-content: flex-end;
background: transparent ;
border-bottom: 3px solid rgb(240, 237, 237);
}

.search{
    background-color: rgb(77, 70, 70);
    border: 4px solid rgb(24, 250, 4);
    padding:0.5rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    color:#ffff;
    font-family: inherit;
    font-weight: bold;
}


.search:focus{
    outline:0;
  background:rgb(77, 70, 70);
}

.search::placeholder{
    color: #f8f8fc;
}

main{
    display:flex;
  
    flex-wrap: wrap;
    justify-content: center;
}

.movie {
    width: 240px;
    margin: 1rem;
    border-radius: 20px;
    box-shadow: 12px 14px 10px black;
    background-color: rgb(49, 44, 44);
    position:relative;
    overflow: hidden;
    border: 5px solid white;
    
}

.movie h4{
    align-content: center;
}

.movie img{
    width: 90%;
    margin-left: 12px;
    margin-top: 13px;
   border: 3px solid rgb(252, 227, 5);
    border-radius: 10px 10px 10px 10px;
  
}

.movie-info{
    color:#fffdfd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 1rem;
    letter-spacing: 0.1px;
    margin-bottom: 1px;
   
}


.movie-info h4{
font-weight:bold;
font-size: 15px;
    margin-top: 5px;
}

.movie-info span{
    margin-left: 3px;
    /* background-color: var(--primary-color); */
    background-color: rgb(71, 3, 80);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    border: 3px solid white;
}
.movie:hover .movie-info span{
    border: 3px solid rgb(14, 13, 13);
}
.movie-info span.green{
    color:rgb(10, 235, 10);
}

.movie-info span.orange{
    color:rgba(255, 119, 8, 0.801);
}

.movie-info span.red{
    color:red;
}

.overview{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    background-color: #fff;
    padding: 1rem;
    max-height: 100%;
    transform:translateY(101%);
    transition:transform 0.3s ease-in;
}

/* .movie:hover .overview{
    transform:translateY(0)
} */
.movie:hover {
    transform:translateY(-10px);
background: whitesmoke;
border: 5px solid rgb(34, 28, 28);
box-shadow: 0 19px 39px rgba(252, 249, 249, 0.904),0 15px 12px;
cursor: pointer;
}
.movie:hover .movie-info{
    color: black;
    cursor: pointer;
}

#tags{
    width:auto;
   margin-left: 13%;
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* margin: 10px 10px; */
}

.tag{
    color:white;
    padding:10px 20px;
    background-color: rgb(0, 140, 255);
    border-radius: 20px;
    margin:5px;
    font-weight: bold;
    display:inline-block;
    cursor: pointer;
}
.tag:hover{
    transform:translateY(-10px);
  
}

.tag.highlight{
    background-color: red;
}
.no-results{
    color:white;
}

.pagination{
    display:flex;
    margin:10px 30px;
    align-items: center;
    justify-content: center;
    color:white;
}

.page{
    padding:20px;
    cursor:pointer;
}

.page.disabled{
    cursor:not-allowed;
    color:grey;
}

.current{
    padding: 10px 20px;
    border-radius: 50%;
    border: 5px solid orange;
    font-size: 20px;
    font-weight: 600;
}

.know-more{
    display: grid;
    background-color: orange;
    color:white;
    
    font-size: 14px;
    font-weight: bolder;
    border:4px solid rgb(250, 249, 249);
    border-radius: 20px;
    padding: 5px 10px ;
    margin-top: 2px;
    margin-left:auto ;
    margin-right:auto ;
    margin-bottom: 7px;
}
.movie:hover .know-more{
    cursor: pointer;
    color: black;
    border:4px solid rgb(12, 12, 12);
}

  .arrow{
      position: absolute;
      font-size: 40px;
  }

  .arrow.left-arrow{
      top:50%;
      left:5%;
      transform: translateY(-50%);
  }

  
  .arrow.right-arrow{
    top:50%;
    transform: translateY(-50%);
    right:5%;
}

.dots{
    margin-top: 30px;
}

.dots .dot {
    padding: 5px 15px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 5px;
}

.dots .dot.active{
    border-color: orange;
}






.sidebar{
    position: absolute;
    width: 250px;
    left: -250px;
    height: 21%;
    background:transparent;
  border: 3px solid black;
    transition: all 0.5s ease;
  }
  .sidebar header{
    font-size: 24px;
    color: white;
    line-height: 70px;
    text-align: center;
    background: #1b1b1b;
   
    font-family: 'Montserrat', sans-serif;
  }
  .sidebar a{
    border: 2px solid white;
    display: block;
    height: 65px;
    border-radius: 20px;
    margin-right: 3px;
    width: 90%;
    color: white;
    line-height: 65px;
    padding-left: 30px;
    box-sizing: border-box;
    padding:0.2 rem;
    font-family: 'Open Sans', sans-serif;
    transition: all .5s ease;
    margin-top:1rem ;
    margin-left: 5px;
    
  }
  a.active,a:hover{
    border-radius: 20px;
   
    color: #fc0202;
  }
  .sidebar a i{
    font-size: 17px;
    margin-right: 16px;
  }
  .sidebar a span{
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  #check{
    display: none;
  }
  label #btn,label #cancel{
    position: absolute;
    cursor: pointer;
    color: white;
    border-radius: 5px;
    border: 1px solid #262626;
    margin: 15px 30px;
    font-size: 29px;
    background: #262626;
    height: 45px;
    width: 45px;
    text-align: center;
    line-height: 45px;
    transition: all .5s ease;
  }
  label #cancel{
    opacity: 0;
    visibility: hidden;
  }
  #check:checked ~ .sidebar{
    left: 0;
  }
  #check:checked ~ main{
      margin-left: 255px;
  }
  #check:checked ~ #tags{
    margin-left: 267px;
}
  #check:checked ~ label #btn{
    margin-left: 255px;
    opacity: 0;
    visibility: hidden;
  }
  #check:checked ~ label #cancel{
    margin-left: 255px;
    opacity: 1;
    visibility: visible;
  }
  