﻿.page {
    padding-top: 130px;
    min-height: 80vh;
}

#top-banner {
    height: 420px;
    width: 100%;
    background: maroon;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-filter-container {
    overflow: auto hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    overflow-x: -moz-hidden-unscrollable;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    margin-top: 15px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .tabs-filter-container::-webkit-scrollbar {
        display: none
    }

.scroll-arrow {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: none;
    background: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,.15);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .5;
    z-index: 100;
    transition: opacity .2s;
}

    .scroll-arrow:hover {
        opacity: .9
    }

    .scroll-arrow[hidden] {
        display: none
    }

    .scroll-arrow.left {
        left: 5px
    }

    .scroll-arrow.right {
        right: 5px
    }

.lobby-tabs-filter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .lobby-tabs-filter a {
        cursor: pointer;
        transition-property: color, background;
        transition-duration: .2s;
        transition-timing-function: ease;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 42px;
        font-size: 14px;
        padding: 0 16px;
        color: #fff;
        background: #ffffff1a;
    }

        .lobby-tabs-filter a.active {
            background: #fff3;
        }

.providers-filter {
    margin-top: 15px;
    display: flex;
    position: relative;
    align-items: center;
    gap: 6px;
}

    .providers-filter::before {
        font-family: "Font Awesome 5 Free";
        position: absolute;
        left: 6px;
        top: 6px;
        content: "\f0b0";
        font-weight: 900;
        font-size: 16px;
        color: #fff;
        width: 16px;
        height: 16px;
    }

    .providers-filter .select2-container--default .select2-selection--multiple {
        background-color: #ffffff1a;
        border: 1px solid #aaa;
        border-radius: 4px;
        cursor: text;
    }

    .providers-filter input.select2-search__field::placeholder {
        color: #fff !important;
        padding: 0 5px 0 25px
    }

#search-controls {
    flex-grow: 1;
}

.casino-games-search {
    position: relative;
    width: 100%;
    top: unset;
    margin-bottom: 0;
}

    .casino-games-search input {
        width: 100%;
    }

    .casino-games-search .main-btn {
        position: absolute;
        width: 32px;
        height: 31px;
        top: 1px;
        right: 1px;
        margin: auto;
        z-index: 35;
        background: #fff;
        color: #000;
        border: none;
        padding: 0;
    }


.lobby-grid {
    display: grid;
    margin-top: 15px;
    grid-gap: 8px;
    grid-auto-flow: dense;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(6, 1fr);
}

.lobby-item {
    display: block;
    position: relative;
    min-height: 120px;
}

    .lobby-item:before {
        content: "";
        display: block;
    }

    /*.lobby-item.size-1x1:before, .lobby-item.size-2x2:before {
        padding-bottom: 100%;
    }*/

    .lobby-item.size-1x2 {
        grid-row: span 2;
    }

        .lobby-item.size-1x2:before {
            padding-bottom: calc(200% + 16px);
        }

    .lobby-item.size-2x1 {
        grid-column: span 2;
    }

        .lobby-item.size-2x1:before {
            padding-bottom: calc(50% - 8px);
        }

    .lobby-item.size-2x2 {
        grid-area: span 2 / span 2;
    }

.li-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.lobby-item figure {
    color: #fff;
    position: relative;
    height: 100%;
    margin: 0;
    cursor: pointer;
    outline: none;
}

.lobby-item .thumb {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    border: 1px solid #000;
    background: rgba(0, 0, 0, .8);
}

.lobby-item:hover .thumb {
}

.thumb img {
    object-fit: cover;
    object-position: center;
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
}

.lobby-item .hover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, visibility;
    transition-duration: .2s;
    transition-timing-function: ease;
    z-index: 2;
}


.lobby-item:hover .hover {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(180deg, #0009, #000);
    z-index: 1;
    border: 1px solid #c8102e;
}



.lobby-item .hover p {
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 42px;
    font-weight: 700;
}

.play-btn {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    min-height: 2.2857142857em;
    padding-top: .32em;
    padding-bottom: .32em;
    font-size: 13px;
    font-weight: 700;
    color: lightgreen;
    width: 100%;
    max-width: 400px;
}

    .play-btn i {
        font-size: 48px;
    }

    .play-btn > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        align-items: center;
        text-transform: initial;
    }


.lobby-badge {
    opacity: 1;
    visibility: visible;
    transition-property: opacity, visibility;
    transition-duration: .2s;
    transition-timing-function: ease;
}

.lobby-item:hover .lobby-badge {
    opacity: 0;
    visibility: hidden;
}

.lobby-badge > div {
    display: flex;
    position: absolute;
    padding: 4px;
    align-items: flex-start;
    gap: 4px;
    overflow: hidden;
    flex-wrap: wrap;
}

    .lobby-badge > div > div {
        position: relative;
        z-index: 1;
        padding: 0 4px;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border-radius: 6px;
        background: #000c;
        pointer-events: none;
        -webkit-user-select: none;
        user-select: none;
        text-align: center;
        font-size: 11px;
        font-style: normal;
        font-weight: 700;
        text-transform: uppercase;
    }

.lobby-badge .hot {
    border: 1px solid #ffd81e;
    color: #ffd81e;
}

.lobby-badge .new {
    border: 1px solid #3fe8ff;
    color: #3fe8ff;
}


.table {
margin-bottom: auto
}


@media (min-width: 1200px) {
    body.other-body {
        background-color: #191919;
        background-image: none;
        overflow-x: hidden;
    }

    .lobby-grid {
        grid-gap: 16px;
    }

    .lobby-item.size-1x2:before {
        padding-bottom: calc(200% + 16px);
    }

    .lobby-item.size-2x1:before {
        padding-bottom: calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .page {
        padding-top: 0;
        margin-top: -20px;
    }

    #top-banner {
        width: calc(100% + 30px);
        margin-left: -15px;
    }

    .scroll-arrow {
        display: none !important;
    }
}


@media screen and (min-width:991px) and (max-width:1199px) {
    .lobby-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    #top-banner {
        height: calc(240px + 180*(100vw - 600px) / 680);
    }
}

@media screen and (min-width:768px) and (max-width:990px) {
    .lobby-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    #top-banner {
        height: calc(240px + 180*(100vw - 600px) / 680);
    }
}


@media screen and (min-width:481px) and (max-width:767px) {
    .lobby-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .providers-filter {
        flex-direction: column;
        gap: 10px;
    }

        .providers-filter > * {
            width: 100% !important;
        }

    .casino-games-search {
        padding: 0;
    }
}

@media screen and (min-width:360px) and (max-width:480px) {
    .lobby-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lobby-item {
        min-height: 80px;
    }


    .providers-filter {
        flex-direction: column;
        gap: 10px;
    }

        .providers-filter > * {
            width: 100% !important;
        }

    .casino-games-search {
        padding: 0;
    }

    .tabs-filter-container {
        margin-right: -15px;
        margin-left: -15px;
        padding: 0 15px;
    }
}

@media (max-width:359px) {
    .lobby-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .providers-filter {
        flex-direction: column;
        gap: 10px;
    }

        .providers-filter > * {
            width: 100% !important;
        }

    .casino-games-search {
        padding: 0;
    }

    .tabs-filter-container {
        margin-right: -15px;
        margin-left: -15px;
        padding: 0 15px;
    }
}
