@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: 100px;
    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 {
    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 */

.home {
    position: relative;
    width: 100%;
    height: 75vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
}

.home .home-image img{
    height: auto;
    width: 100%;
    background: radial-gradient(var(--primary-color-dark) 0%, var(--primary-color-light) 10%, var(--theme-white) 65%);
}

.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 .socials{
    align-items: center;
    justify-content: space-evenly;
    line-height: 5;
}

.home .home-text .socials .description-text{
    font-size: 0;
}

.home .home-text .socials .fa-brands{
    color: var(--theme-black);
    margin-right: 25px;
    transition: var(--transition);
}

.home .home-text .socials .fa-brands:hover{
    color: var(--primary-color);
    margin-right: 25px;
    transform: scale(1.2);
}

.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(--primary-color) 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: center;
    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);
}

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

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

.games .games-text a button{
    background: var(--primary-color);
    border-radius: 30px;
    padding: 10px 15px;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.games .games-text a button:hover{
    background: var(--theme-white);
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
}

/* 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;
    }
}

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

}

@media (max-width: 1100px){
    .home .home-text .socials .fa-brands {
        margin-right: 15px;
    }
}

@media (max-width: 900px){
    .home .home-text .socials .fa-brands {
        margin-right: 10px;
    }
}

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

@media (max-width: 700px) {
    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: center;
        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 h5 {
        width: 100%;
        max-width: 620px;
        font-weight: 500;
        line-height: 32px;
        margin-bottom: 1rem;
    } 
    .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%;
        height: 65vh;
        grid-template-columns: 1fr;
        align-items: center;
        margin-bottom: 100px;
    }

    .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;
    }

    .home .home-text .socials .fa-brands {
        margin-right: 10px;
    }
}
