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

nav {
    height: 3em;
    /* background-color: #020c0a; */
    color: #af0000;
    /* border-bottom: 0.1em solid white; */
    justify-content: space-between;
    display: flex;
    position: absolute;
    justify-content: space-between;
    width: 100%;
}

.navigation{
 height: 3em;
    /* background-color: #020c0a; */
    color: #af0000;
    /* border-bottom: 0.1em solid white; */
    justify-content: space-between;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

header {
    font-size: 20px;
    font-weight: 600;
    padding: 15px;
}
.head-section{
        background-image: url('img/fall-movies-index-1628968089-1536x717.jpg');
    background-position:center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    overflow: hidden;
}

.head-section::before{
    content: "";
    background-image: radial-gradient(#020c0a8a,#020c0ace,#020c0af8);
    background-size: cover;
    background-position:center;
    width: 100%;
    height: 20em;
    display: block;
    position: absolute;
}

.search-box {

    width: 80%;
    margin: auto;
    margin-top: 0%;
    /* background-color:#020c0a; */
    height:20em;
    border-radius: 05px;
    position: relative;
}

.content{
    position: absolute;
    bottom: 50px;
    width: 100%;
}

.search-box div h1 {
    color: white;
    text-align: center;
    padding-top: 30px;
    margin-bottom: 5px;
    font-size: 30px;
}

form {
    display: flex;
}

#searchForm {
    margin: auto;
    width: 80%;
}

.search-input {
    font-size: 18px;
    width: 100%;
    height: 30px;
    padding: 03px;
    padding-left: 20px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
   
}

.btn-search{
    background-color: #af0000;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px; 
    height: 40px;
}

/* .search-img:hover{
 width: 22px;
} */

.search-img{
    width: 24px;
    padding: 1px 10px;
   
}

.movie-container {
    display: grid;
    grid-template-columns:1fr 1fr 1fr 1fr;
     grid-auto-rows: minmax(300px,auto);
    grid-gap:1rem;
    padding: 10%;
    padding-top:2% ;
    margin-top: 20px;
    
}

.movie-home {
    color: rgb(100, 100, 100);
    text-align: center;
    padding-top: 5%;
    font-size: 50px;
    
}
@media(max-width:500px) {
    .movie-container{
        grid-template-columns: 1fr !important;
grid-gap :5rem !important;
        padding-top:5% ;
    }

    .movie-box {
        width: 90% !important;
        height: 450px !important;
        background-color: #020c0a;
        display: grid;
        border-radius: 07px;
        margin: auto!important;
        
    }
    .movie-img {
        width: 100%;
        height:310px !important;
       border-top-right-radius: 05px;
       border-top-left-radius: 05px;
    }

    .movie-box {
        width: 200px;
        height: 400px;
        background-color: #020c0a;
        display: grid;
        border-radius: 07px;
        position: relative;
        
    }

    .movie-title {
        position: absolute;
        bottom: 18% !important;
       
        width: 95%;
        margin: auto;
    }
}

@media(max-width:900px) {
    .search-box > h1 {
        font-size: 19px;
    }

    .movie-container{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(300px,auto);
    padding-top:5% ;
}

.movie-home {
    padding-top: 25%;
    font-size: 30px;
}

.movie-title {
    position: absolute;
    bottom: 10%;
   
    width: 95%;
    margin: auto;
}

.btn { 
position: absolute;
bottom: 3%;
width: 100%;
margin: auto;
}


}




.movie-box {
    width: 250px;
    height: 380px;
    background-color: #020c0a;
    display: grid;
    border-radius: 07px;
    position: relative;
    
}

.movie-img {
    width: 100%;
    height:260px;
   border-top-right-radius: 05px;
   border-top-left-radius: 05px;
}

.movie-type{
    text-align: left;
    position: absolute;
    bottom: 3%;
    font-size: 18px;
    position: absolute;
    width: 95%;
    margin: auto;
    color: #57cbff;
    margin-left: 16px;
    margin-bottom: 3px; 
}

.movie-title {
text-align: center;
position: absolute;
bottom: 16%;
font-size: 18px;
position: absolute;
width: 95%;
margin: auto;
/* display: inline-block;
flex-direction: column;
overflow: hidden;
white-space: nowrap;
text-overflow:ellipsis;
max-width: 90ch;
max-height: 200ch;
padding-left: 10px;
padding-right: 10px;
width: 160px;
font-size: 18px;
font-weight: 100; */
color: #57cbff;

margin-bottom: 3px;
}

.btn{
   border: 2px solid #57cbff;
    text-decoration: none;
    color: #020c0a;
    background-color: #57cbff;
    padding: 5px;
    display: grid;
   width: 97px;
   position: absolute;
   right: 20px;
   bottom: 3%;
   border-radius: 2px;
   
}

.btn-movie_info {
    border: 2px solid #57cbff;
    text-decoration: none;
    color: #020c0a;
    background-color: #57cbff;
    padding: 5px;
    width: 97px;
}

.btn-nav{
    border: 2px solid #57cbff;
    text-decoration: none;
    color: #020c0a;
    background-color: #57cbff;
    padding: 5px;
    width: max-content;
    align-self: center;
    margin-right: 3%;
}

.btn:hover {
    border: #94ddff solid  2px;
    border-style:dashed;
    transition: 0.2s;
    color: #94ddff;
    background-color: #020c0a;

}

.btn-movie_info:hover {
    border: #94ddff solid  2px;
    border-style:dashed;
    transition: 0.2s;
    color: #94ddff;
    background-color: #020c0a;
}

.btn-nav:hover{
    border: #94ddff solid  2px;
    border-style:dashed;
    transition: 0.2s;
    color: #94ddff;
    background-color: #020c0a;
}

/* MOVIE>HTML */

.movie-info_container {
    background-color: #020c0a;
    color:#57cbff;
    width: 70%;
    margin: auto;
    margin-top: 30px;
}


.movie-info_box {
    display: flex;
}

.movie-info_img {
    width: 260px;
    height: 100%;
    
}
.movie-info_list {
    padding: 5%;
}

.movie-info_list > ul   {
    list-style: none;
    margin-left: 0 !important;
    padding-left: 0 !important;
    
}
.movie-info_list  ul > li  {
    padding: 5px;
}


@media (max-width:700px) {
    .movie-info_box {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-bottom: 20px;
       
    }

    .movie-info_img {
        width: 100%;
        height: 310px;
        
    }
}