@media (max-width: 1800px) {

    .custom-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        grid-auto-rows: unset;
    }
}

@media (max-width: 1440px) {
    .game-left-sidebar {
        display: none;
    }

    .game-iframe-play-contain {
        max-width: calc(100% - 316px);
    }

    .second_container,
    .third_container,
    .bottom-footer {
        max-width: 190px;
        width: 100%;
        height: auto;
    }

    .alt-pattern {
        grid-template-columns: repeat(8, 1fr);
    }


    .game-bottom {
        grid-template-columns: repeat(7, 1fr);
    }

    .footer-container {
        flex-wrap: wrap;
    }

    .first_contaioner {
        max-width: 100%;
    }
}

@media (max-width: 1199px) {

    .second_container,
    .third_container,
    .bottom-footer {
        max-width: 28%;
    }

    .alt-pattern {
        grid-template-columns: repeat(7, 1fr);
    }

    .game-bottom {
        grid-template-columns: repeat(6, 1fr);
    }
}


@media (max-width: 1024px) {
    .game-ads-right {
        display: none;
    }

    .game-iframe-play-contain {
        max-width: 100%;
    }

    .alt-pattern {
        grid-template-columns: repeat(6, 1fr);
    }

    li.cards_item {
        width: 50%;
    }
}

@media (max-width: 991px) {
    .header-search.header-search-center {
        max-width: 100%;
    }

    .responsive-nav-bar,
    .responsive-site-header,
    .responsive-nav-bar-close {
        display: block;
    }

    .header-left {
        width: 100%;
        height: auto;
        gap: 20px;
        flex-direction: column;
    }

    .header-logo-section {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 20px;
    }

    .responsive-nav-bar-close {
        height: auto;
    }

    .gamiio-suheader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 999;
        align-items: flex-start;
        padding: 20px;
        flex-direction: column;
    }

    .responsive-nav-bar-close {
        margin-left: auto;
        margin-right: 0;
    }

    .header-search.header-search-center {
        order: unset;
    }

    .header-left .main-navigation {
        width: 100%;
        height: auto;
    }

    .header-left .main-navigation ul {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        flex-direction: column;
        width: 100%;
    }

    .gamiio-menu-bar {
        transform: translateX(-100%);
        transition: 0.3s ease;
    }

    .gamiio-menu-bar.menu-open {
        transform: translateX(0);
    }

    .game_sidebar {
        left: -100%;
    }

    .game_sidebar.active {
        left: 0;
    }

    .main_game_contain {
        padding-left: 20px;
    }

    footer.site-footer {
        padding-left: 20px;
        margin-bottom: 30px;
    }

    .game-bottom {
        grid-template-columns: repeat(5, 1fr);
    }

    .alt-pattern {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .top-left-circle {
        width: 250px;
        height: 250px;
        top: -10px;
        left: -10px;
    }

    .game-frame {
        height: 500px;
    }

    .single-game-contain {
        padding: 15px 15px 10px;
    }

    .single-game-contain h2 {
        font-size: 22px;
    }

    .newsletter-form p {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        height: auto;
    }

    .newsletter-form p .wpcf7-form-control-wrap {
        background-color: #1c1f2e;
        max-width: 100%;
        width: 100%;
        height: 56px;
        border-radius: 12px;
        padding: 10px 16px;
    }

    .newsletter-form p .wpcf7-form-control-wrap input {
        width: 100%;
        height: 100%;
    }

    .newsletter-form button {
        width: 100%;
        height: auto;
    }

    .newsletter-form {
        background-color: transparent;
        padding: 0;
    }

    .alt-pattern {
        grid-template-columns: repeat(4, 1fr);
    }

    .single-game-contain h1 {
        font-size: 28px;
    }


    .game-ads-bottom-container .advertisement-label {
        position: unset;
        transform: unset;
    }

}

@media (max-width: 600px) {
    .game-frame {
        height: 400px;
    }

    .game-bottom {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .first_contaioner,
    .second_container,
    .third_container,
    .footer-newsletter,
    .bottom-footer {
        max-width: 100%;
    }

    .first_contaioner p {
        margin-top: 15px;
    }

    .second_container h2,
    .third_container h2,
    .footer-newsletter h2,
    .bottom-footer h2 {
        margin-bottom: 15px;
    }

    .game-iframe-play:-webkit-full-screen .game-frame {
        height: calc(100vh - 30px);
    }

    .alt-pattern {
        grid-template-columns: repeat(3, 1fr);
    }

    li.cards_item {
        width: 100%;
        padding: 10px 0px;
    }
}

@media (max-width: 450px) {
    .game-frame {
        height: 300px;
    }

    .overlay-card img {
        max-width: 90px;
    }

    .overlay-card h2 {
        font-size: 18px;
        margin: 8px 0px;
    }

    #playBtn {
        font-size: 16px;
        max-width: 160px;
        width: 100%;
        height: 42px;
    }

    .game-bottom {
        grid-template-columns: repeat(3, 1fr);
    }
}