@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');

/* Theme */
:root {
    /* Fonts */
    --big-font: 4.4rem;
    --h2-font: 3rem;
    --p-font: 1rem;

    --game-title-font: 2rem;

    /* Other */
    --transition: all 0.2s ease 0s
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    /* border-radius: 10px; */
    background: var(--primary-color);
}

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

html {
    scroll-behavior: smooth;
}

/* Sections */

section {
    padding: 85px 18% 65px;
}

.section-title {
    margin-bottom: 30px;
    font-size: var(--h2-font);
    width: 100%;
    text-align: center;
}

/* Header */
header li, a, button {
    font-weight: 500;
    font-size: 16px;
    color: var(--theme-white);
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 11%;
    background-color: var(--theme-black);
    box-shadow: 0 0 5px var(--theme-black);
    padding: 2%;
    max-height: 100px;
}

header .logo {
    transition: var(--transition);
    cursor: pointer;
    width: 7%;
    color: var(--theme-white);
    align-items: center;
    display: flex;
    margin-right: auto;
}

header .logo:hover{
    transform: scale(1.1);
}

header .logo .logo-image {
    width: 90%;
    max-height: 70px;
    min-height: 40px;
    min-width: 40px;
    margin-right: 10px;
    object-fit: contain;
}

header .logo .logo-text {
    margin-right: auto;
    font-weight: 800;
    font-size: 2em;
    line-height: 1;
}


header nav {
    list-style: none;
}

header nav li{
    display: inline-block;
    padding: 0px 20px;
}

header nav li a {
    transition: var(--transition);
    color: var(--black);
}

header nav li a:hover {
    transform: scale(1.1);
    color: var(--primary-color-light);
}

/* This is just for increasing the hitbox size */
header li a {
    line-height: 3.2;
    background: var(--theme-black);
    padding: 13px 13px;
}

header .cta button {
    margin-left: 20px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--theme-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

header .cta button:hover {
    background-color: var(--theme-white);
    transform: scale(1.1);
    color: var(--theme-black);
    color: var(--primary-color);
}

/* Home */

/* Video background */
.home-video-bg {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: calc(100% + 80px);
    overflow: hidden;
    z-index: 0;
    background-color: #000;
}

.home-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;   /* 16:9 */
    min-width: 177.78vh; /* 16:9 */
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

.home-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.home .home-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    width: 100%;
    transform: translateY(-60px);
}

/* White text when video background is active */
.home:has(.home-video-bg) .home-text h1,
.home:has(.home-video-bg) .home-text h2,
.home:has(.home-video-bg) .home-text p {
    color: var(--theme-white);
}

.home {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

/* .home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3vh;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
    z-index: 3;
    pointer-events: none;
} */

.home .home-image {
    background: transparent;
}

.home .home-image img{
    height: auto;
    width: 100%;
    background: transparent;
}

.home .home-text h1 {
    font-size: var(--big-font);
    font-weight: 800;
    line-height: 1;
}

.home .home-text h2{
    max-width: 370px;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 2rem;
    margin-top: .4rem;
    font-size: 1rem;
}

.home .home-text p {
    max-width: 370px;
    font-weight: var(--p-font);
    line-height: 32px;
    margin-bottom: 3rem;
}

.home .home-text .call-to-action-row {
    margin-left: 52px;
    display: flex;
    justify-content: left;
    align-items: flex-start;
}

.home .home-text buy-now a, button{
    margin-left: 8px;
    background: var(--primary-color);
    padding: 8px 8px;
    border: 4px var(--primary-color) solid;
    color: var(--theme-white);
    border-radius: 50px;
    transition: var(--transition);
}

.home .home-text buy-now a,button:hover {
    background: var(--theme-white);
    color: var(--primary-color);
    border: 4px var(--theme-white) solid;
    border-radius: 50;
    transform: scale(1.1);
}

.home .home-text .buy-now-small button img{
    height: 1.5em;
    width: 1.5em;
    vertical-align: top;
    filter: var(--theme-white-filter);
}

.home .home-text .buy-now-small button:hover img {
    height: 1.5em;
    width: 1.5em;
    vertical-align: top;
    fill: var(--primary-color);
    filter: var(--primary-color-filter);
}

/* About */

.about p{
    text-align: center;
}

.about {
    padding: 85px 25% 65px;
}

/* Trailer */

.game-trailer {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    border-color: transparent;
    box-shadow: 0 0 10px var(--theme-black);
}

/* Games */

.games .game-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 2rem;
    margin-top: 30px;
}

.games .games-image img, video{
    height: auto;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 10px var(--theme-black);
}

/* Hide iOS Safari native play button overlay on muted autoplay videos */
.games .games-image video::-webkit-media-controls {
    display: none !important;
}
.games .games-image video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.games .games-text h3 {
    font-size: var(--game-title-font);
}

.games .games-text p {
    font-size: var(--p-font);
    max-width: 450px;
    margin-bottom: 1rem;
}

/* Footer */

footer {
    background-color: var(--theme-black);
    color: var(--theme-white);
    text-align: center;
    padding: 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
}

footer p{
    font-size: var(--p-font);
    width: 100%;
}

/* Responsiveness */

@media (max-width: 1680px) {
    header {
        padding: 10px 4%;
    }
    section {
        padding: 50px 4% 40px;
    }
    .home {
        padding-left: 10%;
        padding-right: 10%;
    }
    .home .home-content {
        gap: 1rem;
    }
}

@media (max-width: 1220px) {
    section {
        padding: 30px 10% 20px;
    }
    header .logo {
        width: 7%;
    }

}

@media (max-width: 800px) {
    footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    /* header .logo .logo-text {
        font-size: 0em;
    } */

    :root {
        /* Fonts */
        --big-font: 3.4rem;
        --h2-font: 2.3rem;
        --p-font: 0.9rem;
    }

    header .cta button {
        margin-left: 10px;
        margin-top: 0;
        padding: 9px 18px;
        border-radius: 30px;
    }

    header .logo {
        width: 15%;
    }

    .games .game-area {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2rem;
    }

    .games .game-area .games-image{
        order: 1;
    }

    .home .home-image{
        order: -1;
    }
    .home .home-text{
        text-align: center;
        width: 100%;
    }
    .home .home-text h2 {
        width: 100%;
        max-width: 620px;
    }
    .home .home-text p {
        width: 100%;
        max-width: 620px;
        font-weight: var(--p-font);
        line-height: 32px;
        margin-bottom: 0;
    }
    .home {
        width: 100%;
        align-items: center;
        margin-bottom: 100px;
    }

    .home .home-content {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 85px 10% 65px;
    }

    .home .home-text .buy-now a, button {
        margin-top: 20px;
        margin-left: 8px;
        font-size: 0;
        text-align: center;
        vertical-align: middle;
    }

    .home .home-text i{
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        vertical-align: middle;
        padding-top: .75rem;
    }

    .home .home-text img{
        font-size: 1rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .home .home-text .call-to-action-row {
        margin-left: 0px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 520px) {
    header .cta button {
        white-space: nowrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
