@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}
body{
    background:#f5f5f5 ;

}
/* Navbar styling */
nav{
    background: #232f3e;
    color: #fff;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width:1200px ;
    margin: 0 auto;
    padding: 18px;
}
.search-container input ,button{
    padding: 5px 10px;
    border: none;
    font-size: 16px;

}
.search-container input{
    border-radius: 3px 0 0  3px;
}
.search-container button{
    border-radius: 0 3px 3px 0;
    background:#f5c518 ;
    cursor: pointer;
    transition: all 0.2s;
}
.search-container button:hover{
    background:#ffdd45 ;
}
 /* Main Movie section styling */
 main{
    max-width: 1200px;
    margin:0 auto ;
    margin-block: 38px;


 }
 main section{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72vh;
 }
 .movie-container{
    display: flex;
    justify-content: center;
    background: #fff;
    box-shadow: 0px 0px 10px #ccc;
    width: 80%;
    border-radius:5px ;
 }
 .movie-poster img{
    height: 450px;
 max-width: 340px;
 object-fit: cover;
    margin-right: 30px;
    border-radius: 5px 0 0 5px;

 }
 .movie-info{
    padding-inline: 15px;

 }
 .movie-info h2{
    text-align: center;
    font-size: 32px;
    margin: 20px 0 20px 0;
 }
 /* h2 tag ke sibling par apply hoga */
 .movie-info h2+p{
    text-align: center;

 }
 .movie-info .movie-genre{
    display: flex;
    justify-content: center;
    margin-block:5px ;
    overflow-x: auto;
 }
.movie-info .movie-genre p {
    background:#232f3e ;
    color: #fff;
    padding:5px 14px;
    margin-inline:5px ;
    border: 2px solid #000000;
    border-radius: 6px;
    font-weight: 700;
}
.movie-info p{
    font-size: 18px;
    margin-block: 16px;
    line-height:24px ;

}
.movie-container.noBackground{
    background: none;
    box-shadow: none;
    align-items: center;

}
 /* Footer styling */
 footer{
    text-align: center;
    background: #232f3e;
    color: #fff;
    padding-block: 20px;
    margin-top: 40px;
    font-size: 20px;
 }
/* Responsive code */
@media screen  and (max-width:950px){
    .movie-container{
        flex-direction: column;
    }
    .movie-poster img{
        width: 100%;
        height: fit-content;
        margin-right: 0;
      

    }
    .movie-info{
        padding-inline: 30px;
    }
    
}
@media screen  and (max-width:650px){

.navbar{
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
.search-container{
    margin-top: 12px;
}
     .movie-info .movie-genre{
         padding-left:80px;
     }



}
