@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "open sans";
}


/* header */

.header {
    background-color: hsla(0, 0%, 0%, 0.5);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 2;
}
.header ul {
    display: flex;
    justify-content: center;
}
.header a {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
}
.active a,
a:hover {
    background-color: hsl(187, 92%, 50%);
    color: black;
}


/* mobile menu */

.menu-wrapper {
    position: relative;
}
.menu-visibility {
    display: none;
}
.menu-btn {
    display: block;
    width: 3rem;
    height: 3rem;
    background: #555 url(../img/menu-24px.svg) no-repeat center / 65%;
    cursor: pointer;
}
.menu-wrapper :checked + .menu {
    transform: translateX(0);
}
.menu-wrapper :checked ~ .menu-btn {
    background-image: url(../img/close_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg);
}


/* hero banner */

.hero-banner {
    height: 550px;
    background-color: green;
    background: url(../img/banner_assasins_creed_2.jpg) center top / cover;
}
.hero-banner-text-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: end;
}
.hero-banner-text {
    width: 220px;
    color: white;
    background-color: hsla(0, 0%, 0%, 0.5);
    height: fit-content;
    padding: 25px;
    margin-right: 20%;
    padding-top: 150px;
}
.hero-banner-text::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 10px;
    background: url(../img/icon_titlebar.png) no-repeat;
}



/* content */

main {
    background-color: white;
    max-width: 1180px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: -6rem;
    padding: 3rem;
    flex: 1;
}

figure {
    position: relative;
}
.thumb {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.thumb img {
    width: 100%;
    display: block;
}
.thumb figcaption {
    background-color: hsla(0, 0%, 0%, 0.75);
    text-align: center;
    color: hsl(187, 92%, 50%);
    padding: 8px;
    font-size: .9rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.idkwtci {
    display: flex;
    gap: 1rem;
}
.trailer-card {
    width: calc(calc(calc(100% / 3) * 2) - 0.5rem);
}
iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 10px;
}
.card-heading {
    color: hsl(187, 92%, 50%);
    background-color: black;
    font-size: 1.5rem;
    padding: 10px;
    padding-left: 40px;
    position: relative;
}
.card-heading::before {
    content: "";
    background: url(../img/icon_titlebar.png) center / cover no-repeat;
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
}
h2 {
    font-size: 2rem;
    margin: 25px 0;
}
button {
    background-color: hsl(187, 92%, 50%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 18px;
    margin: 20px 0;
}

.popular {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.popular-card {
    box-sizing: border-box;
    width: 100%;
    padding: .75rem;
    display: flex;
}
.popular-card img {
    height: 5rem;
    margin-right: 10px;
}
.popular-card:nth-child(odd) {
    background-color: hsl(0, 0%, 93%);
}
h3 {
    font-size: 1.25rem;
}
.popular-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.publisher {
    margin: 10px 0 5px 0;
}


.iadkwtci {
    display: flex;
    gap: 1rem;
}
.iadkwtci > div {
    width: 33%;
}
.iadkwtci img {
    width: 100%;
}
.iadkwtci img {
    margin-top: 10px;
}


/* footer */

.footer {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    background-color: hsl(0, 0%, 87%);
}
.footer div {
    padding: 20px;
    text-align: center;
    color: hsl(0, 0%, 67%);
}
.footer a {
    color: inherit;
}


/* RWD */

@media (max-width: 1280px) {
    main,
    .hero-banner-text-wrapper,
    .footer {
        max-width: 720px;
    }
    main {
        margin-top: -4rem;
        padding: 2rem;
    }


    .hero-banner {
        height: 400px;
    }
    .hero-banner-text {
        margin-right: 7%;
        padding-top: 50px;
        width: 250px;
    }


    .thumb {
        flex-wrap: wrap;
    }
    .thumb figure {
        width: calc(calc(100% / 3) - 0.66666666666rem);
    }

    .idkwtci {
        flex-direction: column;
    }
    .trailer-card {
        width: 100%;
    }
    .popular {
        margin-bottom: 2rem;
    }

    .iadkwtci {
        flex-direction: column;
    }
    .iadkwtci > div {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .menu-btn {
        display: none;
    }
}
@media (max-width: 768px) {
    main,
    .footer {
        width: 96%;
    }
    main {
        margin-top: -2rem;
        padding: 1rem;
        z-index: 1;
    }


    .menu-wrapper {
        display: flex;
        justify-content: end;
    }
    .menu {
        flex-direction: column;
        width: 40%;
        position: absolute;
        background-color: #555;
        top: 3rem;
        right: 0;
        transform: translateX(100%);
        transition: transform .3s;
    }


    .hero-banner {
        height: 250px;
    }
    .hero-banner-text-wrapper {
        height: 100%;
        justify-content: center;
        align-items: end;
        isolation: isolate;
    }
    .hero-banner-text {
        box-sizing: border-box;
        width: 100%;
        padding: 15px;
        padding-top: 15px;
        padding-bottom: 2.5rem;
        padding-left: 50px;
        margin-right: 0;
        position: relative;
        position: absolute;
        /* z-index: 0; */
    }
    .hero-banner-text::after {
        position: absolute;
        right: 15px;
        bottom: 50%;
        transform: translateY(50%);
    }
    .hero-banner-text-wrapper h2 {
        margin: 0;
    }
    .hero-banner-text-wrapper p {
        padding-right: 40px;
    }


    .thumb figure {
        width: calc(50% - 0.5rem);
    }
    .thumb figcaption {
        font-size: .75rem;
        padding: 5px;
    }

    .card-heading {
        font-size: 1.2rem;
        padding: 8px;
        padding-left: 40px;
    }
    .card-heading::before {
        width: 15px;
        height: 15px;
    }
    h2 {
        font-size: 1.75rem;
    }


    .popular-card {
        padding: 7px;
    }
    .popular-card img {
        height: 5rem;
        margin-right: 10px;
    }
    h3 {
        font-size: 1.2rem;
    }
    .publisher {
        margin: 10px 0 5px 0;
    }
    .publisher,
    .genre {
        font-size: .9rem;
    }


    
}

@media (max-width: 480px) {
    .hero-banner-text-wrapper,
    .footer {
        max-width: 250px;
    }


    .publisher,
    .genre {
        display: none;
    }
}