/* ==========================================================
   The Casual Gamers
   Landing Page
   ========================================================== */

/* ==========================================================
   Variables
   ========================================================== */

:root {

    --background: #090909;
    --background-light: #151515;

    --white: #ffffff;
    --text: #d8d8d8;

    --rust: #cf332d;
    --redm: #7b3fe4;

    --border: rgba(255,255,255,.08);

    --shadow:
        0 20px 40px rgba(0,0,0,.50);

    --transition: .35s ease;

}


/* ==========================================================
   Reset
   ========================================================== */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: "Inter", sans-serif;
    color: var(--white);

    background:
        url("../img/background.png")
        center center / cover
        fixed
        no-repeat;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

}


/* ==========================================================
   Background Overlay
   ========================================================== */

.background-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.72);

    z-index: -1;

}


/* ==========================================================
   Hero
   ========================================================== */

.hero {

    width: 100%;

    text-align: center;

    padding:

        60px
        20px
        45px;

}


.logo {

    width: 100%;
    max-width: 520px;

    user-select: none;

}


.tagline {

    margin-top: 22px;

    font-size: 1.35rem;
    letter-spacing: 6px;

    color: var(--text);

}


.hero h1 {

    margin-top: 28px;

    font-family: "Bebas Neue", sans-serif;

    font-size: 3.5rem;

    letter-spacing: 5px;

    color: var(--white);

}


/* ==========================================================
   Game Selection
   ========================================================== */

.game-selection {

    width: min(1500px, 94%);

    margin: 0 auto 60px;

    display: grid;

    grid-template-columns:

        repeat(2, 1fr);

    gap: 35px;

}


/* ==========================================================
   Cards
   ========================================================== */

.game-card {

    position: relative;

    height: 620px;

    overflow: hidden;

    border-radius: 18px;

    border: 2px solid var(--border);

    text-decoration: none;

    color: var(--white);

    background-size: cover;
    background-position: center center;

    transition: var(--transition);

    box-shadow: var(--shadow);

}


.rust {

    background-image:
        url("../img/rust.png");

}


.redm {

    background-image:
        url("../img/redm.png");

}


/* ==========================================================
   Card Overlay
   ========================================================== */

.card-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(

            to top,

            rgba(0,0,0,.92),

            rgba(0,0,0,.18) 60%

        );

}


/* ==========================================================
   Card Content
   ========================================================== */

.card-content {

    position: absolute;

    left: 40px;
    right: 40px;
    bottom: 40px;

    z-index: 5;

}


.card-content h2 {

    font-family: "Bebas Neue", sans-serif;

    font-size: 6rem;

    letter-spacing: 3px;

}


.card-content p {

    margin:

        12px
        0
        30px;

    font-size: 1.35rem;

    color: #e8e8e8;

}


/* ==========================================================
   Buttons
   ========================================================== */

.enter-button {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding:

        16px
        32px;

    border-radius: 10px;

    font-weight: 700;

    color: white;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.rust-button {

    background: var(--rust);

}


.redm-button {

    background: var(--redm);

}


.arrow {

    transition: var(--transition);

}


/* ==========================================================
   Hover
   ========================================================== */

.game-card:hover {

    transform:

        translateY(-8px)
        scale(1.02);

}


.game-card:hover .arrow {

    transform:

        translateX(6px);

}


.rust:hover {

    border-color: var(--rust);

    box-shadow:

        0 0 35px rgba(207,51,45,.35);

}


.redm:hover {

    border-color: var(--redm);

    box-shadow:

        0 0 40px rgba(138, 43, 226, .40);

}

/* ==========================================================
   Discord Section
   ========================================================== */

.discord-section {

    width: min(1500px, 94%);

    margin: 0 auto 70px;

}


.discord-card {

    display: flex;

    align-items: center;

    gap: 30px;

    width: 100%;

    padding:

        28px
        36px;

    text-decoration: none;

    color: var(--white);

    border: 2px solid #5865F2;

    border-radius: 18px;

    background:

        rgba(18,18,18,.80);

    backdrop-filter:

        blur(8px);

    transition:

        all .35s ease;

    box-shadow:

        var(--shadow);

}


.discord-card:hover {

    transform:

        translateY(-5px);

    box-shadow:

        0 0 40px rgba(88,101,242,.45);

}


.discord-icon {

    flex-shrink: 0;

    width: 64px;

    height: 64px;

    color: #5865F2;

    transition:

        all .35s ease;

}


.discord-icon svg {

    width: 100%;

    height: 100%;

}


.discord-content {

    flex: 1;

}


.discord-content h3 {

    font-family:

        "Bebas Neue",
        sans-serif;

    font-size: 2.4rem;

    letter-spacing: 2px;

    margin-bottom: 8px;

    transition:

        color .35s ease;

}


.discord-content p {

    color: var(--text);

    line-height: 1.7;

    font-size: 1.05rem;

    transition:

        color .35s ease;

}


.discord-arrow {

    font-size: 3rem;

    font-weight: bold;

    color: #5865F2;

    transition:

        all .35s ease;

}


.discord-card:hover .discord-content p {

    color: #f0f0f0;

}

.discord-card:hover .discord-arrow {

    transform:

        translateX(12px);

}


/* ==========================================================
   Footer
   ========================================================== */

footer {

    width: 100%;

    padding:

        25px
        20px
        45px;

    text-align: center;

    color: #b8b8b8;

    font-size: .95rem;

}


footer p {

    margin-top: 8px;

}


/* ==========================================================
   Animations
   ========================================================== */

.hero {

    animation:

        fadeDown .8s ease;

}


.game-card {

    animation:

        fadeUp .9s ease;

}


.discord-card {

    animation:

        fadeUp 1.1s ease;

}


@keyframes fadeDown {

    from {

        opacity: 0;

        transform:

            translateY(-25px);

    }

    to {

        opacity: 1;

        transform:

            translateY(0);

    }

}


@keyframes fadeUp {

    from {

        opacity: 0;

        transform:

            translateY(40px);

    }

    to {

        opacity: 1;

        transform:

            translateY(0);

    }

}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1200px) {

    .game-selection {

        gap: 25px;

    }

}


@media (max-width: 900px) {

    .hero {

        padding:

            45px
            20px
            35px;

    }

    .hero h1 {

        font-size: 2.8rem;

    }

    .tagline {

        font-size: 1rem;

        letter-spacing: 4px;

    }

    .game-selection {

        grid-template-columns: 1fr;

    }

    .game-card {

        height: 500px;

    }

    .card-content {

        left: 30px;
        right: 30px;
        bottom: 30px;

    }

    .card-content h2 {

        font-size: 4.5rem;

    }

    .card-content p {

        font-size: 1.15rem;

    }

    .discord-card {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }

    .discord-arrow {

        display: none;

    }

}


@media (max-width: 600px) {

    .logo {

        max-width: 340px;

    }

    .hero h1 {

        font-size: 2.2rem;

    }

    .card-content h2 {

        font-size: 3.5rem;

    }

    .enter-button {

        width: 100%;

        justify-content: center;

    }

}