* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    /* --body-bg: #0d1042;
    --body-accent: #ff4747;
    --body-text: #fff;
    --body-hov: #ff6347;

    --nav-bg: rgba(13, 16, 66, 0.8); */

    --body-bg: #ece3b5;
    --body-accent: #c56945;
    --body-text: #261638;
    --body-hov: #c44817;

    --nav-bg: rgba(236, 227, 181, 0.8);
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    background-color: var(--body-bg);
    color: var(--body-text);
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    position: relative;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img{
    width: 100%;
    max-width: 60px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    list-style: none;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 10px 0;
    }

    .nav {
        display: none;
    }

    .nav.show {
        width: 100%;
        padding: 16px;
        position: absolute;
        top: 80px;
        left: 0;
        display: grid;
        z-index: 10;
        background-color: var(--nav-bg);
    }
}

.nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 10px;
    transition: color 0.2s ease-out;
}

.nav li a:hover {
    color: var(--body-accent);
}

.nav li a img {
    margin-left: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.brg {
    width: 32px;
    height: 32px;
    padding: 8px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    display: none;
}

@media (max-width: 768px) {
    .brg {
        display: flex;
    }
}

.brg div {
    width: 100%;
    height: 2px;
    background-color: var(--body-text);
    border-radius: 2px;
    transition: transform 0.2s ease-out;
}

.brg.active div:first-child {
    transform: translateY(7px) rotate(45deg);
}

.brg.active div:nth-child(2) {
    display: none;
}

.brg.active div:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.container {
    width: 100%;
    max-width: 1315px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
}

.banner {
    margin-top: 30px;
    background-image: url(../images/hero-bg.png);
    background-position: 75% center;
    background-size: cover;
    border-radius: 23px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, var(--nav-bg), transparent);
}

@media (max-width: 500px) {
    .banner {
        margin-top: 20px;
        padding: 40px 20px;
    }
}

.banner-subtitle {
    position: relative;
    z-index: 10;
    font-size: 20px;
    color: var(--body-text);
    font-weight: 400;
    margin-bottom: 25px;
    max-width: 400px;
}

.banner-title {
    position: relative;
    z-index: 10;
    font-size: 45px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--body-text);
    max-width: 400px;
    line-height: 105%;
}

@media (max-width: 500px) {
    .banner-title {
        font-size: 35px;
    }
}

.banner-title span {
    color: var(--body-accent);
}

.banner-link {
    position: relative;
    z-index: 10;
    font-size: 14px;
    color: var(--body-text);
    background-color: var(--body-accent);
    padding: 12px 30px;
    display: inline-block;
    border-radius: 25px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease-out;
}

.banner-link:hover {
    background-color: var(--body-hov);
}

.game {
    margin-top: 50px;
    position: relative;
}

@media (max-width: 768px) {
    .game {
        margin-top: 20px;
    }
}

.game-name {
    font-size: 48px;
    -webkit-text-stroke: 1px var(--body-accent);
    color: transparent;
}

@media (max-width: 500px) {
    .game-name {
        font-size: 36px;
    }
}

.game-content {
    max-width: 600px;
    width: 80%;
    margin: 0 auto;
    aspect-ratio: 1;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .game-content {
        width: 100%;
    }
}

.game-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}


.popular {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .popular {
        margin-top: 20px;
    }
}

.popular-title {
    font-size: 34px;
    font-weight: bold;
    color: var(--body-text);
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .popular-title {
        margin-bottom: 10px;
    }
}

.popular-title span {
    color: var(--body-accent);
}

.popular-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin-bottom: 20px;
}

.popular-list li {
    height: 100%;
}

@media (max-width: 768px) {
    .popular-list {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr;
        grid-auto-rows: 0;
        overflow: hidden;
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .popular-list {
        margin-bottom: 10px;
    }
}

.popular-item {
    display: block;
    height: 100%;
    padding: 15px;
    border-radius: 24px;
    color: var(--body-text);
    border: 1px solid var(--body-accent);
    transition: box-shadow 0.2s ease-out;
}

@media (max-width: 768px) {
    .popular-item {}
}

.popular-item:hover {
    box-shadow: 0 0 10px 0 var(--body-accent);
}

.popular-img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    -o-object-fit: contain;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 16px;
}

.popular-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.popular-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.popular-category {
    font-size: 15px;
    color: var(--body-text);
}

.popular-rating {
    font-size: 15px;
    padding-left: 20px;
    position: relative;
}

.popular-rating::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-image: url(../images/star.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.popular-link {
    display: block;
    width: -moz-max-content;
    width: max-content;
    margin: 0 auto;
    font-size: 14px;
    color: var(--body-text);
    background-color: var(--body-accent);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease-out;
}

.popular-link:hover {
    background-color: var(--body-hov);
}

footer {
    margin-top: 50px;
    margin-bottom: 20px;
}

footer p {
    text-align: center;
}

footer a {
    transition: color 0.2s ease-out;
}

footer a:hover {
    color: var(--body-accent);
}

/* 
---------------------------------------------
Pre-loader Style
--------------------------------------------- 
*/

.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.99);
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.js-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@-webkit-keyframes dot {
    50% {
        -webkit-transform: translateX(96px);
        transform: translateX(96px);
    }
}

@keyframes dot {
    50% {
        -webkit-transform: translateX(96px);
        transform: translateX(96px);
    }
}

@-webkit-keyframes dots {
    50% {
        -webkit-transform: translateX(-31px);
        transform: translateX(-31px);
    }
}

@keyframes dots {
    50% {
        -webkit-transform: translateX(-31px);
        transform: translateX(-31px);
    }
}

.preloader-inner {
    position: relative;
    width: 142px;
    height: 40px;
    background: transparent;
}

.preloader-inner .dot {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 12px;
    left: 15px;
    background: #4882fe;
    border-radius: 50%;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-animation: dot 2.8s infinite;
    animation: dot 2.8s infinite;
}

.preloader-inner .dots {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    margin-top: 12px;
    margin-left: 31px;
    -webkit-animation: dots 2.8s infinite;
    animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-left: 16px;
    background: #4882fe;
    border-radius: 50%;
}