@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;
}

nav{
    background-color: rgba(30, 30, 167, 0.85);
    color: #ffffff;
}
.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: 17px;
}
.search-container input{
    border-radius: 3px 0  0 3px;
}
.search-container button{
    border-radius: 0 3px 3px 0;
    background-color: orange;
    cursor: pointer;
    color: white;
    transition: all 0.5s;
}
.search-container button:hover{
    background-color: orangered;
   
}


/* Main section */

main{
    max-width: 1200px;
    margin: 0 auto;
    margin-block: 38px;
    min-height: 65vh;
}
main section{
    display: flex;
    justify-content: center;
}

.movie-container{
    display: flex;
    background-color: #fff;
    box-shadow: 0px 0px 10px #ccc;
    width: 80%;
    border-radius: 10px;
    margin:auto;
    justify-content: center;
}

.movie-poster img{
    height:450px;
    margin-right: 30px;
    border-radius: 10px;
}
.movie-info{
    padding-inline: 15px;
}
.movie-info h2{
    text-align: center;
    font-size: 32px;
    margin: 20px 0 12px 0;

}
.movie-info h2+p{
    text-align: center;
}
.movie-info .movie-genre{
    
    color:white;
    padding: 6px 12px;
    margin-inline: 5px;
}
.movie-info .movie-genre{
    display: flex;
    justify-content: center;
}
.movie-info .movie-genre p{
    background-color: #333;
    color:white;
    padding: 6px 12px;
    margin-inline: 5px;
    border: 2px solid black;
    border-radius: 5px;
}
.movie-info p{
    font-size: 18px;
    margin-block: 16px;
    line-height: 1.5;
}
.movie-container.invalidInput{
    color: red;
    background-color: none;
    box-shadow: none;
}


/* Footer Styling */
footer{
    text-align: center;
    background-color: rgba(30, 30, 167, 0.85);
    color: white;
    padding-block: 20px;
    font-size: 20px;
    margin-top: 40px;
}

@media screen and (max-width:800px) {
    .movie-container{
        
        flex-direction: column;
        justify-content: center;
        margin: auto;
        background-color:bisque;
        
    }
    .movie-container .movie-poster{
        margin: auto;
        
        
    }
    
    .movie-poster img{
        width: 100%;
       
    }

    .navbar{
        flex-direction: column;
    }
    .logo{
        margin-bottom: 10px;
    }
    
}

