:root {
    --main-color: #e62429;
    --font-color: #FFFFFF;
    color-scheme: light dark;
    font-family: "Poppins", serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    color: var(--font-color);
}

body.block-scroll {
    overflow: hidden;
}

.main-container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    height: 100%;
}

header {
    background-color: #202020;
    padding: 1rem;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.open-disclaimer-popup{
    font-family: "Poppins", serif;
    background-color: transparent;
    border: none;
    font-weight: 700;
    color: var(--font-color);
}

.open-disclaimer-popup:hover{
    cursor: pointer;
}

header a {
    display: flex;
    align-items: center;
}

header a img {
    width: 152px;
    object-fit: contain;
}

main {
    position: relative;
    background-image: url(../assets/background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    padding: 80px 20px;
}

main .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(77, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    pointer-events: none;
}

.film-info {
    position: relative;
    width: 80%;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    padding-bottom: 40px;
}

.movie-description {
    display: flex;
    flex-direction: column;
    order: 2;
    gap: 1.5rem;
    text-align: start;
}

.movie-description h1 {
    font-size: 3.25rem;
    line-height: 3.5rem;
    text-shadow: #202020;
}

.movie-overview {
    font-size: 1.35rem;
    text-shadow: #202020;
}

.type-tag {
    width: fit-content;
    background-color: var(--main-color);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 700;
}

.movie-description button {
    font-size: 1.25rem;
    font-weight: 700;
    background-color: var(--main-color);
    align-self: flex-start;
    padding: 14px 30px;
    border: none;
    border-radius: 999px;
}

.movie-description button:hover {
    cursor: pointer;
}

.date_container p {
    font-weight: 700;
}

.date_container h2 {
    font-size: 3rem;
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.img-container {
    width: 40%;
    order: 1;
}

.img-container img {
    width: 320px;
    object-fit: cover;
    border-radius: 20px;
}

footer {
    background-color: #202020;
    padding: 1rem;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.social-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.social-container a{
    display: flex;
    align-items: center;
}

.next-btn {
    position: absolute;
    z-index: 2;
    padding: 12px 28px 12px 14px;
    bottom: 12px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 12px;
    background-color: rgba(77, 0, 0, 1);
    border-radius: 999px;
    font-size: 1rem;
    color: var(--font-color);
    font-weight: 700;
    text-decoration: none;
}

.next-btn div {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
}

.next-btn div img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}



.disclaimer-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.9);
    z-index: 4;
    pointer-events: auto;
    padding: 10px;
}

.popup-disclaimer{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45%;
    z-index: 5;
    border-radius: 20px;
    background-color: #202020;
    padding:1.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.85rem;
}




.close-popup-btn{
    background-color: var(--main-color);
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    color: var(--font-color);
    font-weight: 700;
}



.close-popup-btn:hover{
    cursor: pointer;
}


@media (max-width: 1024px) {
    header a img {
        width: 80px;
    }

    main {
        flex-direction: column;
        padding: 20px 10px;
    }

    .film-info {
        width: 100%;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .img-container {
        width: 100%;
    }

    .img-container img {
        width: 100%;
        border-radius: 16px;
    }

    .movie-description {
        width: 100%;
        gap: 1rem;
        text-wrap: balance;
    }

    .movie-description h1 {
        font-size: 2.25rem;
        line-height: 3rem;
    }

    .movie-overview {
        font-size: 1rem;
    }

    .type-tag {
        font-size: 0.75rem;
    }

    .next-btn {
        position: relative;
        align-self: flex-end;
        padding: 8px 20px 8px 12px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 12px;
        text-wrap: balance;
    }
    .popup-disclaimer{
        width: 95%;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    header a img {
        width: 120px;
    }

    main {
        flex-direction: row;
        padding: 40px 10px;
    }

    .film-info {
        max-width: 1240px;
        flex-direction: row;
        align-items: start;
        gap: 40px;
    }
    .movie-overview {
        font-size: 1rem;
    }

    .img-container {
        width: 30%;
    }

    footer {
        font-size: 12px;
    }
}
