/* ========================== */
/* MINI GAMES MAIN */
/* ========================== */

.mini-games-main{
    width: 100%;
    min-height: 75vh;
    padding: 60px 40px;
    background-color: var(--main-color);
}


/* ========================== */
/* PAGE TITLE */
/* ========================== */

.mini-games-title{
    width: 100%;
    max-width: 1250px;
    margin: 0px auto 40px auto;
}

.mini-games-title h1{
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 48px;
    font-weight: 500;
}

.mini-games-title p{
    margin-top: 5px;
    color: var(--text-hover-color);
    font-size: 15px;
}


/* ========================== */
/* GAMES GRID */
/* ========================== */

.games-grid{
    width: 100%;
    max-width: 1250px;
    margin: auto;

    display: grid;

    grid-template-columns:
    repeat(3, 1fr);

    gap: 25px;
}


/* ========================== */
/* GAME CARD */
/* ========================== */

.game-card{
    width: 100%;
    overflow: hidden;

    background-color:
    var(--surface-color);

    border:
    1px solid var(--boarder-color);

    border-radius: 12px;

    transition: 0.25s;
}

.game-card:hover{
    transform:
    translateY(-5px);

    border-color:
    var(--text-hover-color);
}


/* ========================== */
/* GAME IMAGE */
/* ========================== */

.game-image{
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color:
    var(--main-color);
}

.game-image img{
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: 0.3s;
}

.game-card:hover
.game-image img{
    transform:
    scale(1.03);
}


/* ========================== */
/* GAME INFO */
/* ========================== */

.game-info{
    width: 100%;
    padding: 20px;

    display: flex;
    flex-direction: column;
}

.game-info h2{
    color:
    var(--text-color);

    font-family:
    var(--heading-font);

    font-size: 28px;
    font-weight: 500;
}

.game-info p{
    min-height: 42px;

    margin-top: 8px;

    color:
    var(--text-hover-color);

    font-size: 14px;

    line-height: 1.5;
}


/* ========================== */
/* PLAY BUTTON */
/* ========================== */

.play-game-button{
    width: 100%;
    height: 42px;

    margin-top: 20px;

    display: flex;

    justify-content:
    center;

    align-items:
    center;

    background-color:
    var(--button-color);

    border-radius: 6px;

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.play-game-button:hover{
    background-color:
    var(--button-color-hover);
}


/* ========================== */
/* TABLET */
/* ========================== */

@media (max-width:1024px){

    .mini-games-main{
        padding:
        50px 30px;
    }

    .games-grid{
        grid-template-columns:
        repeat(2, 1fr);

        gap: 20px;
    }

    .mini-games-title h1{
        font-size: 42px;
    }

}


/* ========================== */
/* MOBILE */
/* ========================== */

@media (max-width:767px){

    .mini-games-main{
        padding:
        35px 15px;
    }

    .mini-games-title{
        margin-bottom:
        25px;
    }

    .mini-games-title h1{
        font-size: 36px;
    }

    .mini-games-title p{
        font-size: 13px;
    }

    .games-grid{
        grid-template-columns:
        1fr;

        gap: 18px;
    }

    .game-info{
        padding: 17px;
    }

    .game-info h2{
        font-size: 25px;
    }

}


/* ========================== */
/* SMALL MOBILE */
/* ========================== */

@media (max-width:480px){

    .mini-games-main{
        padding:
        30px 12px;
    }

    .game-info h2{
        font-size: 23px;
    }

}