/* Mobile & tablet responsive fixes for Template-1 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img,
picture img {
    max-width: 100%;
    height: auto;
}

/* â”€â”€ Topbar â”€â”€ */
@media (max-width: 991px) {
    .topbar-container .row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar-left-container,
    .topbar-right-container {
        width: 100%;
    }

    .topbar-left-section {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .topbar-left-section .topbar-item + .topbar-item {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .topbar-left-section .topbar-item a.telegram-btn span,
    .topbar-left-section .topbar-item .telegram-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .login-panel {
        justify-content: center;
        width: 100%;
    }

    .login-panel .login-button,
    .login-panel .register-button {
        width: auto;
        min-width: 80px;
        padding: 6px 16px;
    }
}

@media (max-width: 575px) {
    .topbar-left-section .topbar-item:nth-child(n+5) {
        display: none;
    }

    .topbar-left-section .topbar-item.language-selector-container,
    .topbar-left-section .topbar-item:last-child {
        display: flex;
    }
}

/* â”€â”€ Header & navigation menu â”€â”€ */
@media (max-width: 991px) {
    .site-header .container .row {
        flex-wrap: wrap;
    }

    .menu-slide {
        width: 100%;
        overflow: hidden;
    }

    .top-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .top-menu::-webkit-scrollbar {
        display: none;
    }

    .top-menu > li {
        flex: 0 0 auto;
        min-width: 72px;
        flex-basis: auto;
    }

    .top-menu > li > a {
        padding: 12px 6px;
        font-size: 10px;
    }

    .top-menu > li > a > img {
        height: 24px;
        width: 24px;
    }

    .top-menu .game-list {
        position: fixed;
        left: 0;
        right: 0;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1000;
    }

    .top-menu .game-list > li {
        flex-basis: 50%;
    }
}

/* â”€â”€ Banner carousel â”€â”€ */
@media (max-width: 767px) {
    .nav-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .nav-btn.main-prev {
        left: 8px;
    }

    .nav-btn.main-next {
        right: 8px;
    }

    .nav-btn img {
        width: 14px;
        height: 14px;
    }
}

/* â”€â”€ Jackpot section â”€â”€ */
@media (max-width: 991px) {
    .home-inner-container {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .home-progressive-jackpot {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
    }

    .home-progressive-jackpot .border-container {
        flex-direction: column;
        gap: 12px;
        border-radius: 20px;
    }

    .home-progressive-jackpot .jackpot-container {
        font-size: 22px;
        letter-spacing: 2px;
        padding: 8px;
    }

    .home-progressive-jackpot .jackpot-play-section {
        align-items: center;
        margin-left: 0;
    }

    .home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
        font-size: 18px;
        text-align: center;
    }

    .progressive-jackpot .jackpot-container {
        font-size: 18px;
        letter-spacing: 2px;
        padding: 0 16px;
        width: 100%;
    }
}

/* â”€â”€ Announcement ticker â”€â”€ */
@media (max-width: 767px) {
    .announcement-container {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
    }

    .announcement-container > [data-section="announcements"] {
        width: 100%;
    }
}

/* â”€â”€ Game lists â”€â”€ */
@media (max-width: 991px) {
    .game-list .game-item {
        width: calc((100% - (5px * 3 * 2)) / 3);
    }

    .home-game-list-container .container-content .game-list .game-item,
    .popular-game-title-container .container-content .game-list .game-item {
        width: calc((100% - (5px * 3 * 2)) / 3);
    }

    .large-game-list li,
    .large-game-list .game-provider-img {
        flex-basis: calc((100% - (10px * 2 * 2)) / 2);
    }
}

@media (max-width: 575px) {
    .game-list .game-item {
        width: calc((100% - (5px * 2 * 2)) / 2);
    }

    .home-game-list-container .container-content .game-list .game-item,
    .popular-game-title-container .container-content .game-list .game-item {
        width: calc((100% - (5px * 2 * 2)) / 2);
    }

    .large-game-list li,
    .large-game-list .game-provider-img {
        flex-basis: 100%;
        margin: 8px 0;
    }
}

/* â”€â”€ Popular games panel â”€â”€ */
@media (max-width: 991px) {
    .popular-games {
        flex-direction: column;
    }

    .popular-games [data-section="left"],
    .popular-games [data-section="right"] {
        width: 100%;
        margin-right: 0;
    }

    .popular-games .popular-game-list .game-item {
        width: 50%;
    }
}

/* â”€â”€ Sports section â”€â”€ */
@media (max-width: 991px) {
    .sports-platform {
        flex-direction: column;
    }

    .sports-platform [data-section="players"],
    .sports-platform [data-section="matches"] {
        width: 100%;
    }

    .hot-match-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .hot-match-container [data-team] {
        padding: 10px;
    }

    .sport-match-item {
        flex-direction: column;
        min-height: auto;
    }

    .sport-match-item .match-date,
    .sport-match-item .match-info-container {
        flex-basis: 100%;
    }
}

/* â”€â”€ Download APK section â”€â”€ */
@media (max-width: 767px) {
    .download-apk {
        flex-direction: column;
        text-align: center;
    }

    .download-apk > div {
        flex-basis: 100%;
        transform: none !important;
        opacity: 1 !important;
    }

    .download-apk .h2 {
        font-size: 22px;
    }

    .download-apk h3 {
        font-size: 18px;
    }

    .download-apk-info {
        flex-direction: column;
        gap: 12px;
    }

    .download-apk-info .download-apk-section {
        flex-basis: 100%;
    }
}

/* â”€â”€ Footer â”€â”€ */
@media (max-width: 767px) {
    .site-footer {
        text-align: center;
    }

    .footer-links > li {
        display: block;
        margin-bottom: 4px;
    }

    .footer-links > li + li > a {
        padding-left: 0;
        border-left: 0;
    }

    .supported-browser-container {
        justify-content: center;
        margin-top: 12px;
    }

    .hover-list {
        justify-content: center;
    }
}

/* â”€â”€ Modals â”€â”€ */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 10px;
        width: auto;
    }

    .modal-content {
        border-width: 3px;
    }

    .standard-inline-form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .standard-inline-form-group [data-section="input"],
    .standard-inline-form-group [data-section="display"],
    .standard-inline-form-group [data-section="button"] {
        width: 100%;
    }
}

/* â”€â”€ Container padding â”€â”€ */
@media (max-width: 767px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-content-container {
        padding: 16px 0;
    }
}