<style>
h1 {
    color: white;
    font-size: 1.5em;
}
h3 {

font-size: 0.6em;
}

p {
    font-size: 1.2em;
    line-height: 1.5em;
}

.app {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
}

.container {
    min-width: 320px;
    width: 100%;
    height: 100%;
}

.header {
    background-color: #222831;
}

.nav-bar {
    display: flex;
    justify-content: center;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    margin: 0 4%;
}

/* Movie results */

.movies-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.movie {
    display: flex;
    flex-direction: column;
    width: calc(84% / 3);
    height: 100%;
}

.poster-container__image:hover {
    box-shadow: 0px 0px 3px 3px rgb(15, 15, 15);
}

.poster-container__image {
    width: 100%;
    height: 45vw;
    object-fit: cover;
    border-radius: 0.3em;
    display: flex;
    justify-content: center;
}

.info-container {
    font-size: 0.9em;
    line-height: 1.2em;
    font-weight: 300;
    /* height: 4.2em; */
    margin: 0.2rem 0 1rem 0;
}

/* Movie info - displayed when movie clicked */



.info-container__title {
    overflow: hidden;
    max-height: 2.8em;
}

.info-container__year {
    color: #fff;
}

.movie-info {
    margin: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    
}

.fav-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 15px;
}

.movie-info__title {
    display: flex;color: #fff;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.8em;
    margin: 1rem;
    

}
.movie-info__trailer {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.1em;
    margin: 0.5rem;

}

.movie-info__year {
    color: white;
    align-self: flex-start;
    margin: 0.5rem 0;
    font-size: 0.93em;
    font-weight: 500;
    
}

.movie-info__rating {
    color: #ffc700;
    font-size: 1.0em;
    font-weight: 700;
    
}

.movie-info__text {
    margin-bottom: 2rem;
    font-size: 0.9em;
    font-weight: 300;
    
}

.movie-info__poster__image {
    margin-top: 4.5%;
    width: 30%;
    border-radius: 0.4em;
    box-shadow: 1px 1px 5px 1px rgb(15, 15, 15);
}

/* Pagination */

.pagination {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #222831;
}

.pagination__text {
    color: #ff5722;
    font-size: 1em;
    margin: 0.5rem;
    margin-bottom: 0;
}

.pagination__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    margin: 0.5rem;
}

.page-buttons {
    padding: 0.5em;
    margin: auto;
    border: 0;
    border-radius: 3px;
    background-color: #eeeeee;
    cursor: pointer;
    margin: 5px;
    font-size: 1em;
}

.page-buttons:hover {
    background-color: rgb(159, 163, 189);
}

/* Tablet Layout */

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
    .nav-bar__spacer {
        display: none;
    }
    .nav-bar__logo__img {
        height: 1.8rem;
    }
    .search-top {
        display: flex;
        flex: 3;
        padding: 0 60px;
    }
    .nav-bar {
        height: 4em;
        margin: 0 3.2%;
    }
    .search-bottom {
        display: none;
    }
    .nav-bar__title {
        flex: 1;
    }
    .nav-dropdown-icon {
        font-size: 1.8em;
    }
    .search-text {
        margin: 3.2%;
    }
    .movie-info__poster__image {
        width: 25vw;
    }
    .background-image {
        height: 30vw;
    }
    .movie {
        width: calc(84% / 4);
    }
    .poster-container__image {
        height: 35vw;
    }
}

/* Desktop Layout */

@media (min-width: 960px) {
    html {
        font-size: 20px;
    }
    .container {
        width: 85%;
    }
    .nav-bar {
        margin: 0 2.67%;
    }
    .nav-bar__logo__img {
        height: 2rem;
    }
    .nav-dropdown-icon {
        font-size: 2em;
    }
    .search-text {
        margin: 2.67%;
    }
    .movie-info__poster__image {
        width: 20vw;
    }
    .background-image {
        height: 25vw;
    }
    .movie {
        width: calc(84% / 5);
    }
    .poster-container__image {
        height: 23vw;
    }
}

</style>
