.item-1 {
    grid-area: 1 / 1 / 3 / 3 !important;
}

.item-2 {
    grid-area: 6/1/8/3
}

.ad-1 {
    grid-row: 4;
    grid-column: 1 / -1;
    width: 100%;
}

.ads-tips {
    color: #999;
    font-size: 12px;

}

.ad-300x250 {
    max-width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 500px) {
    .ad-1 {
        grid-row: 4;
        grid-column: 1 / -1;
        width: 100%;
    }


}

@media (min-width: 640px) {
    .ad-1 {
        grid-row: 4;
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .ad-1 {
        grid-row: 4;
        grid-column: 1 / -1;
        width: 100%;
    }

}

@media (min-width: 1024px) {
    .ad-1 {
        grid-row: 4;
        grid-column: 1 / -1;
        width: 100%;
    }

}

@media (min-width: 1280px) {
    .ad-1 {
        grid-row: 4;
        grid-column: 1 / -1;
        width: 100%;
    }


}

@media (min-width: 1536px) {
    .ad-1 {
        grid-row: 4;
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (min-width: 500px) {
    .item-1 {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .item-2 {
        grid-area: 4/3/6/5
    }


}

@media (min-width: 640px) {
    .item-1 {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .item-2 {
        grid-area: 3/3/5/5
    }

}

@media (min-width: 768px) {
    .item-1 {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .item-2 {
        grid-area: 3/4/5/6
    }


}

@media (min-width: 1024px) {
    .item-1 {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .item-2 {
        grid-area: 3/4/5/6
    }


}

@media (min-width: 1280px) {
    .item-1 {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .item-2 {
        grid-area: 2/5/4/7
    }


}

@media (min-width: 1536px) {
    .item-1 {
        grid-area: 1 / 1 / 3 / 3 !important;
    }

    .item-2 {
        grid-area: 2/6/4/8
    }
}


.game-list-2 {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(40, minmax(0, 1fr));
}

/* 8 items in the first row (40/8 = 5) */
.game-list-2 .game-item:nth-child(-n+8) {
    grid-column: span 5;
}

/* 10 items in the remaining rows (40/10 = 4) */
.game-list-2 .game-item:nth-child(n+9) {
    grid-column: span 4;
}

@media (max-width: 1200px) {
    .game-list-2 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .game-list-2 .game-item:nth-child(-n+8) {
        grid-column: span 3;
        /* 4 items per row */
    }

    .game-list-2 .game-item:nth-child(n+9) {
        grid-column: span 2;
        /* 6 items per row */
    }
}

@media (max-width: 768px) {
    .game-list-2 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .game-list-2 .game-item:nth-child(-n+8) {
        grid-column: span 3;
        /* 2 items per row */
    }

    .game-list-2 .game-item:nth-child(n+9) {
        grid-column: span 2;
        /* 3 items per row */
    }
}

@media (max-width: 480px) {
    .game-list-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-list-2 .game-item {
        grid-column: span 1 !important;
        /* 3 items per row */
    }
}

.game-list-2 .game-item {
    padding: 0;
}

/*******/
.game-home-layout {
    width: 100%;
    padding: 20px;
    margin: auto;
}


/***footer***/

footer {
    background-color: #f1f2f2;
    position: relative;
    height: auto;
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding: 15px;
}

.footer-content {
    padding-top: 22px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .links {
    text-align: center;
}

footer .links a {
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
}


footer a {
    margin: 0 10px;
    color: #0445bf;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.introduce {
    color: #000000;
    display: block;
    text-align: center;
    position: relative;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
}

#disclaimer {
    margin-bottom: 2.2rem;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, .2470588235)
}

#disclaimer .disclaimer-card {
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, .25)
}

#disclaimer .disclaimer-card h5 {
    height: 5rem;
    font-size: 16px;
    background-color: #fbfbfb;
    padding-left: 3rem;
    box-sizing: border-box;
    line-height: 5rem;
    border-bottom: 1px solid #e6e6e6
}

#disclaimer .disclaimer-card .disclaimer-text {
    width: 100%;
    background-color: #fff;
    padding: 2rem 3rem;
    box-sizing: border-box
}

#disclaimer .disclaimer-card .disclaimer-text p {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 2.1rem;
    color: #666
}

#disclaimer .disclaimer-card .disclaimer-text p:not(:last-of-type) {
    padding-bottom: 8px
}

#disclaimer .disclaimer-card .disclaimer-text p a {
    text-decoration: none;
    color: #00c9a9
}



/* Styling for top 8 items */
.game-list-2 .game-item:nth-child(-n+8) .game-title {
    font-size: 18px;
}

/* Red play button for top 8 */
.game-list-2 .game-item:nth-child(-n+8)::after {
    background-color: #ff4757;
}

.game-list-2 .game-item:nth-child(-n+8):hover::after {
    background-color: #ff2e43;
}

/* Purple play button for the rest */
.game-list-2 .game-item:nth-child(n+9)::after {
    background-color: #7b61ff;
}

.game-list-2 .game-item:nth-child(n+9):hover::after {
    background-color: #6a4bff;
}

@media (max-width: 768px) {
    .game-item::after {
        width: 32px;
        height: 32px;
        background-size: 16px;
        top: 10px;
        right: 10px;
    }
    
    .game-item .game-title {
        font-size: 14px !important;
        bottom: 10px;
        left: 10px;
        right: 46px; /* Adjust spacing for the smaller play button */
    }
}

@media (max-width: 480px) {
    .game-item::after {
        width: 24px;
        height: 24px;
        background-size: 12px;
        top: 8px;
        right: 8px;
    }
    
    .game-item .game-title {
        font-size: 12px !important;
        bottom: 8px;
        left: 8px;
        right: 36px; /* Adjust spacing for the smaller play button */
    }
}