
html,body{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

nav{
    position: relative;
    min-height: 40vh;
    background-image: url('/img/THJJRUhNlEc.png');
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 5em;
}

h1{
    font-size: 3.125rem;
}

a{
    text-decoration: none;
}

nav p{
    font-weight: bold;
    margin-bottom: 0.25em;   
}

h1,nav p{
    font-family:'Inter', 'sans-serif';
    color: white;
}

.titles-container{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10em;
    align-items: center;
    margin-top: 2.5em;
}

.search-container{
    position: absolute; 
    bottom: -1.5em;
    left: 50%;
    transform: translateX(-50%);
    width: 42%;
    min-width: 28.125em;
    margin: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.search-bar{
    width: 50%;
    border: 1px solid lightgray;
    border-radius: 5px 1px 1px 5px;
    padding: 0.9em 1.875em;
}

.search-btn{
    padding: 0.9em 1.875em;
    border-radius: 1px 5px 5px 1px;
    border: 1px solid lightgray;
    margin-left: -1px;
    cursor: pointer;
}

.img-container{
    position: relative;
    min-height: 80vh;
}

#start-exploring-img{
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
}


.films-section{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 42%;
    min-width: 400px;
    margin-top: 4.375em;
}


.film-card{
    font-family: 'inter', 'sans-serif';
    display: flex;
    height: 40%;
    width: 100%;
    margin-bottom: 3.75em;
    
}

.film-details{
    margin-left: 2.5em;
}

#movie-genre{
    margin-left: 1.875em;
}

.add-film-link, .remove-film-link{
    font-size: 0.875rem;
    margin-left: 0.8em;
    cursor: pointer;
}

.film-title{
    font-size: 1.6rem;
    font-weight: 500;
}

.image-film{
    height: 200px;
}

.film-plot{
    color: #6B7280;
}

.fa-star{
    color:gold;
}

#rest{
    font-size: 0.937rem;
}



@media(max-width:780px){
    .titles-container{
        flex-direction: column;
        gap: 1em;
        margin-top: 0.5em;
    }
}

@media(max-width:480px){
    h1{
        font-size: 2.5rem;
    }

    .titles-container{
        flex-direction: column;
        padding: 0 1em;
    }

    .search-container{
        width: 90%;
        min-width: unset;
        position: relative;
        margin-top: 2em;
    }

    .search-bar, .search-btn{
        padding: 0.6em 1em;
    }

    .search-btn {
        margin-left: -1px; 
    }

    .film-card{
        flex-direction: column;
        
        align-items: center;
    }

    .film-details{
        margin-left: 0;
        text-align: center;
    }
}