@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

li {
    list-style-type: none;
}

p {
    line-height: 1.5;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: black;
}

button {
    cursor: pointer;
}

section {
    background-color: rgb(245, 245, 245);
    transition: all 300ms ease;
}

nav, .header, .scroll, .container {
    position: relative;
    z-index: 10;
}

label {
    font-size: 14px;
    font-weight: bold;
}

input:hover {
    border-color: #dcdfe6;
}

input:focus {
    border-color: green;
}

.container {
    padding: 50px 0;
    width: 100%;
}

.row {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

.white__row {
    background-color: transparent !important;
}

.click {
    cursor: pointer;
    transition: all 300ms ease;
}

.no__click {
    cursor: not-allowed;
}

.click:hover {
    transform: scale(1.1);
}

.click:active {
    transform: scale(0.8);
}

.title {
    font-size: 60px;
    margin-bottom: 12px;
    text-align: center;
}

.highlight {
    color: green !important;
}

.link__hover-effect {
    position: relative;
}

.link__hover-effect::after {
    content: "";
    position: absolute;
    bottom: -3px;
    height: 3px;
    width: 0;
    right: 0;
    transition: all 300ms ease;
}

.link__hover-effect:hover:after {
    left: 0;
    width: 100%;
}

.no__effect:after {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/*

LANDING PAGE

*/

/*

DEFAULT

*/

#landing-page {
    min-height: 100vh;
}

.landing-page {
    position: relative;
    min-height: 100vh;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 128, 0, 0.25);
    pointer-events: none;
}

.background__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.05);
}

.nav {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__link--list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav__link--primary {
    padding: 6px 14px;
    border-radius: 20px;
    background-color: green;
    color: white;
    font-size: 15px;
}

.nav__link--white {
    color: white;
}

figure {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

figure img {
    width: 40px;
    height: auto;
}

/*

HEADER

*/

/*

DEFAULT

*/

.header {
    margin-top: 100px;
    text-align: center;
}

.header__search {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 100px;
}

.header__para {
    font-size: 40px;
    text-align: center;
    margin-top: 50px;
}

.header__search {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 100px;
}

input {
    width: 500px;
    height: 60px;
    padding: 0 12px;
    font-size: 30px;
    border-radius: 10px;
    border: 1px solid #dcdfe6;
    transition: all 300ms ease;
}

input:hover {
    background-color: #e6e5e5;
}

input:focus {
    outline: green;
}

.search-btn {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-color: green;
    color: white;
    font-size: 20px;
    border: none;
    transition: all 300ms ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-btn:active {
    transform: scale(0.8);
}

.header__input {
    font-size: 18px;
}

.movie__background {
    width: 100%;
    height: auto;
    margin-bottom: 100px;
}

.title {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.header__content--main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__search {
    position: relative;
    font-size: 25px;
    width: 400px;
    height: 45px;
    display: flex;
    align-items: center;
}

.header__search--input {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 16px;
    font-size: 25px;
    border-radius: 25px;
    transition: all 300ms ease;
}

.header__search--icon {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: green;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 300ms ease;
}

.search__results {
    padding: 20px 0;
}

.personal-logo--movies {
    filter: invert(1);
}

/*

SEARCH RESULTS

*/

.search__results {
    background-color: transparent;
}

.results__titles {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.results__title {
    width: 200px;
}

.results__search {
    width: 200px;
}

/*

MOVIE CARDS

*/

.cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}

.card {
    width: 200px;
}

.card__image {
    width: 100%;
    height: auto;
    transition: all 300ms ease;
}

.card__image:hover {
    scale: 1.05;
}

.image__click {
    cursor: pointer;
}

.image__click:active {
    scale: 0.9;
}

.card__title {
    font-size: 25px;
    font-weight: 800;
    padding: 10px 0;
}

.card__rating--card {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}

.card__rating--card i, .card__released--card i {
    width: 5%;
}

.card__rating--text {
    font-size: 15px;
    font-weight: 400;
    width: 80%;
}

.card__released--card {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}

.card__released--text {
    font-size: 15px;
    font-weight: 400;
    width: 80%;
}

/*

FILTER SETTINGS

*/

.filter__section {
    background-color: transparent;
    padding: 20px 0;
}

.filter__row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.filter__label {
    font-size: 16px;
    font-weight: bold;
}

.filter__select {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    transition: all 300ms ease;
}

.filter__select:hover {
    border-color: green;
}

.filter__group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*

FOOTER

*/

.footer--movies {
    background-color: lightgray;
}

.footer__row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer__row figure {
    margin-top: 20px;
}

.footer__nav {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.footer__copyright {
    padding-bottom: 40px;
}

/*

MODAL STYLES

*/

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.modal--open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal__content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 12px;
    padding: 30px;
    overflow-y: auto;
    z-index: 1010;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal__details {
    display: flex;
    gap: 25px;
}

.modal__poster {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__title {
    font-size: 28px;
    font-weight: 800;
}

.modal__meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

.modal__overview {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 600px) {
    .modal__details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/*

MOVIES.HTML File Styling

*/

.landing-page--movies {
    position: relative;
    overflow: hidden;
    height: 30vh;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0 20px 0;
}

.header--movies {
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.header__search--movies {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header__search--movies .header__search--input {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 16px;
    font-size: 20px;
    transition: all 300ms ease;
}

/*

MOVIES PAGE

*/

.no-movies {
    font-size: 40px;
    padding-top: 50px;
    padding-bottom: 200px;
}

.movie__card {
    background-color: transparent;
}

.movies__loading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    font-size: 60px;
    color: green;
}

.movies__loading--spinner {
    display: none !important;
    padding: 50px 0 !important;
}

.movies__loading .movies__loading--spinner {
    display: block !important;
}

.fa-spinner {
    animation: rotate 600ms infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}