﻿html {
    user-select: none;
    overflow-x:hidden;
}

/* Handle */
body::-webkit-scrollbar-thumb, .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

body::-webkit-scrollbar, .dropdown-menu::-webkit-scrollbar {
    width: 5px;
    scrollbar-width: thin;
}

.sidemenu_body::-webkit-scrollbar {
    width: 2px;
}

.sidemenu_body::-webkit-scrollbar-track {
    background: var(--default-color);
}

.sidemenu_body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Cambia da 100% a 100vh */
    width: 100%;
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    background-color: var(--body-color);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container {
    flex: 1;
    max-width: 1920px;
    padding: 116px 20px 30px;
    width: 100%;
    /**/
    position: relative; /* Aggiungi questo */
    min-height: calc(100vh - 200px); /* Aggiungi questo per garantire spazio sufficiente */
}

@media screen and (max-width: 1200px) {
    .container {
        padding-top: 0;
        padding-left: 0px;
        padding-right: 0px;
        margin-top: -30px;
    }
}

@media screen and (min-width: 1201px) {
    .container:has(> .game_desktop) {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 12px;
    }
}

/* Let the provider fill the viewport space left by the actual navigation/footer. */
.wrapper:has(> .container > .sportsbook_page) {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

.wrapper:has(> .container > .sportsbook_page) > .header.desktop {
    position: relative;
    height: auto;
    flex-shrink: 0;
}

.wrapper:has(> .container > .sportsbook_page) > .screen,
.wrapper:has(> .container > .sportsbook_page) > .footer_shell {
    flex-shrink: 0;
}

.wrapper:has(> .container > .sportsbook_page) > .footer_shell {
    margin-top: 0;
}

.wrapper:has(> .container > .sportsbook_page) .sub_header {
    margin-bottom: 0;
}

.container:has(> .sportsbook_page) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

.p-0{
    padding:0!important;
}

.header {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    filter: drop-shadow(0 -1px 3px #1d2534);
    height: 60px;
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 58px auto;
    grid-template-rows: 58px auto;
    grid-template-areas: 'empty1 logo top empty2' 'empty1 links links empty2';
    -ms-grid-columns: 12px 164px 1fr 20px;
    grid-template-columns: 12px 164px 1fr 20px;
    background-color: var(--body-color);
}

@media screen and (min-width: 1920px) {
    .header {
        -ms-grid-columns: minmax(0,1fr)minmax(210px,210px) minmax(992px,1650px) minmax(0,1fr) !important;
        grid-template-columns: minmax(0, 1fr) minmax(210px, 210px) minmax(992px, 1650px) minmax(0, 1fr) !important;
    }
}

@media screen and (min-width: 1440px) {
    .header {
        height: auto;
        grid-template-areas:
            'empty logo top empty2'
            'empty logo links empty2';
        -ms-grid-columns: auto minmax(227px,227px) minmax(992px,1570px) 30px;
        grid-template-columns: auto minmax(227px, 227px) minmax(992px, 1570px) 30px;
    }
}

.logo {
    grid-area: logo;
    background-repeat: no-repeat;
    background-position: top 0 left 0;
    margin-left: 10px;
    margin-top: 0;
    background-size: 100px auto;
    width: 180px;
    height: 58px;
    background-size: contain;
}

@media screen and (min-width: 1440px) {
    .logo {
        background-size: 200px auto;
        background-position: top 0 left 0;
        background-size: contain;
        height: 100px;
        width: 200px;
        margin-top: 6px;
        cursor: pointer;
    }
}

.header_top {
    grid-area: top;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-right: 10px;
}

@media screen and (min-width: 1400px) {
    .header__top {
        padding-left: 31px;
    }
}

.header_left {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.header_right{
    float: right;
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.reminder {
    position: relative;
    padding-left: 8px;
    padding-right: 16px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2));
    background-color: var(--primary-color);
    -webkit-clip-path: polygon(0 0,calc(100% - 8px) 0,calc(100% - 8px) 6px,100% 50%,calc(100% - 8px) calc(100% - 6px),calc(100% - 8px) 100%,0 100%);
    clip-path: polygon(0 0,calc(100% - 8px) 0,calc(100% - 8px) 6px,100% 50%,calc(100% - 8px) calc(100% - 6px),calc(100% - 8px) 100%,0 100%);
}

    .reminder span {
        font-size: 12px;
        color: var(--primary-text-color);
        line-height: 28px;
        font-weight:400;
    }

.nav_area {
    grid-area: links;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    justify-content: end;
    padding-left: 1px;
    padding-right: 1px;
}


/*Card Area */
.banner_main {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 40px 18px;
    background-position: center;
}

.banner_overlay {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(100% 55% at 50% 50%, rgba(11, 18, 34, 0.2) 0, #2E2E2E 100%);
}

.card_area {
    z-index: 5;
    height: 800px;
    padding: 40px 14px 50px;
    -ms-flex-pack: center;
    justify-content: center;
    background-image: url(../img/banner/background.webp);
    background-size: 2308px auto;
    background-position: center;
    background-repeat: no-repeat;
    left: 50%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    margin-top: 0;
    max-width: 1920px;
}

@media screen and (min-width: 1400px) {
    .banner_main {
        height: 760px;
        padding: 40px 30px 50px;
    }
}

@media screen and (max-width: 1200px) {
    .banner_main{
        flex-direction:column;
    }

    .card_area {
        background-image: none;
        height: 500px;
    }
}

/*Promo */
.promotion_area {
    overflow: hidden;
    padding: 40px 10px;
}

@media screen and (max-width: 1400px) {

    .col-e-lg-12 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .promotion_area {
        gap: 40px;
    }

}

/*Page Casino */
.game_hall-sidebar {
    width: calc(25% - 20px);
    margin: 0 10px;
    padding-bottom: 115px;
    padding-top: 20px;
}

.game_hall-content {
    width: calc(75% - 20px);
    margin: 0 10px;
    padding-top: 17px;
}

@media (max-width: 1200px) {
    .game_hall-sidebar {
        display: none;
    }

    .game_hall-content {
        width: 100%;
        margin: 0;
        padding: 17px 20px;
    }
}

.games_category {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-right: 7px;
    font-weight:400;
}

.category {
    font-size: 20px;
    line-height: 23px;
    text-transform: uppercase;
    color: var(--text-color);
    display: inline-block;
    padding: 5px 0;
    background-image: linear-gradient(to top,var(--tertiary-color),var(--tertiary-color));
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 2px;
}

.game_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    max-width: 100%;
    gap: 1rem;
}

@media (max-width: 992px) {

    .game_grid {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    }
}

    /*Footer*/
    .footer_link {
        font-size: 14px;
        line-height: 19px;
        text-decoration: none;
        color: var(--text-color);
        min-height: 20px;
        font-weight: 400;
    }

    .footer_link:hover {
        color: var(--primary-color);
    }

    .footer_link:not(:first-child) {
        margin-top: 20px;
    }

    .area_button .btn-variant_small {
        width: 120px !important;
    }

    /* Register Login page */
    .flex_container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        height: 100%;
        font-weight: 400;
    }

    .col_left,
    .col_right {
        flex: 0 0 calc(50% - 0.5rem);
        padding: 1.5rem;
        border-radius: 8px;
    }

    .col_left {
        padding-top: 0rem;
    }

    .col_right {
        padding: 0;
    }

    .input_container {
        position: relative;
        width: 100%;
        max-width: 632px;
        min-height: 100%;
        margin: 0 auto;
        padding: 128px 0 128px;
    }

    .input_header {
        font-weight: 400;
    }

        .input_header.have-border {
            border-bottom: solid 2px var(--secondary-color);
            padding-bottom: 22px;
            margin-bottom: 24px;
        }

    .title {
        font-size: 30px;
        line-height: 120%;
        color: var(--text-color);
        width: 55%;
    }

    .header_links {
        margin-top: -26px;
        font-size: 14px;
        line-height: 120%;
        text-align: end;
        color: var(--text-color);
        overflow: hidden;
        float: right;
        width: 45%;
    }

        .header_links a {
            font-size: 19px;
            text-decoration: underline;
            margin-left: 4px;
            color: var(--secondary-color);
            cursor: pointer;
            font-size: 22px;
            line-height: 120%;
        }

    .btn_area {
        padding-top: 70px;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -ms-flex-align: center;
        align-items: center;
    }

    .link {
        font-size: 20px;
        line-height: 20px;
        text-transform: uppercase;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -ms-flex-align: center;
        align-items: center;
        cursor: pointer;
    }

    .btn_area-i .link {
        color: var(--secondary-color);
    }

        .btn_area-i .link:hover {
            color: var(--secondary-color);
        }


    .bg_image {
        height: 100%;
        width: 100%;
        max-width: 900px;
        max-height: 750px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    @media (min-width: 1201px) {
        .wrapper:has(> .container > .auth_layout) {
            min-height: 100dvh;
            overflow-x: clip;
        }

        .wrapper:has(> .container > .auth_layout) > .header.desktop {
            position: sticky;
            height: auto;
            flex-shrink: 0;
        }

        .wrapper:has(> .container > .auth_layout) > .footer_shell {
            margin-top: 0;
            flex-shrink: 0;
        }

        .container:has(> .auth_layout) {
            display: flex;
            flex-direction: column;
            min-height: 0;
            max-width: none;
            margin: 0;
            padding: 0;
        }

        .auth_layout {
            flex: 1;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 0;
            height: auto;
        }

        .auth_layout > .col_left,
        .auth_layout > .col_right {
            flex-basis: 50%;
            min-width: 0;
        }

        .auth_layout > .col_left {
            display: flex;
            align-items: center;
        }

        .auth_layout .input_container {
            min-height: 0;
        }

        .auth_layout > .col_right {
            position: relative;
            overflow: hidden;
            border-radius: 0;
        }

        .auth_layout .bg_image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            max-height: none;
            background-size: auto 100%;
            background-position: right bottom;
        }
    }

    @media (max-width: 1200px) {
        .col_left {
            flex: 0 0 100%;
        }

        .col_right {
            display: none;
        }

        .input_container {
            width: 90%;
            padding: 60px 0 60px;
        }

        .title {
            width: 100%;
            font-size: 25px;
            text-align: center;
        }

        .header_links {
            position: absolute;
            bottom: 0;
            text-align: center;
            width: 100%;
        }

            .header_links a {
                font-size: 18px;
            }
    }

    @media (max-width: 768px) {

        .btn_area {
            flex-direction: column-reverse;
            gap: 20px;
        }

        .btn_area-i {
            width: 100%;
            display: flex;
            justify-content: center;
        }

            .btn_area-i .link {
                font-size: 15px;
            }
    }

    /* PROMO AREA */

.promo_list {
    display: grid;
    gap: 16px; /*
    grid-template-columns: repeat(auto-fit, minmax(min(234px, 100%), 1fr));*/
    grid-template-columns: repeat(auto-fit, minmax(min(max(18%, 234px), 100%), 1fr));
    margin-top:20px;
    margin-bottom:20px;
}

/**/
    .mobile {
        display: none;
    }

    @media screen and (max-width: 1200px) {
        .desktop {
            display: none !important;
        }

        .mobile {
            display: block !important;
        }
    }
