:root {
    --color-card: #FF4B00;
    --color-rgb-orange: #ff4b0014;
    --color-rgb-orange-two: rgba(255, 75, 0, 1);
    --color-main: #212020;
    --color-form-control: #31312e;
    --color-grey: #ff310061;
    --color-rgb-fade: rgba(254, 74, 1, 0.2);
}

.amount-box {
    font-size: 17px !important;
}

.amount-box .amount {
    font-size: 21px !important;
}

.bg-gradient-main {
    background: linear-gradient(90deg, var(--color-rgb-orange-two) 35%, rgba(194, 255, 0, 0) 100%) !important;
}

.bg-custom-gradient {
    background-image: linear-gradient(180deg, var(--color-card), var(--color-rgb-fade)) !important;

}

@keyframes flipV {
    50% {
        transform: rotateX(180deg);
    }

    to {
        transform: rotateX(360deg);
    }
}

@keyframes flipH {
    50% {
        transform: rotatex(180deg);
    }

    to {
        transform: rotatex(180deg);
    }
}

@keyframes swing {
    0% {
        transform: rotateZ(0deg) translate(0, 0);
    }

    20% {
        transform: rotateZ(20deg) translate(15px, -5px);
    }

    40% {
        transform: rotateZ(-10deg) translate(-15px, 2px);
    }

    60% {
        transform: rotateZ(11deg) translate(10px, -1px);
    }

    80% {
        transform: rotateZ(0deg) translate(0, 0);
    }

}

@keyframes rotatingcrown {
    0% {
        transform: translate(0) rotate(0)
    }

    50% {
        transform: translateY(-3%) rotate(5deg)
    }

    75% {
        transform: translateY(-3%) rotate(-5deg)
    }

    to {
        transform: translate(0) rotate(0)
    }

}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(-10px);
    }
}

a:hover .game-image {
    animation: rotatingcrown 1s ease-in-out infinite !important;
    transition: all .1s ease !important;

}

.bg-gradient-bar {
    background: linear-gradient(90deg, #ff7e5f, #feb47b) !important;
    /* Example gradient */
}




.custom-file-container__custom-file__custom-file-control {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    height: calc(2.25rem + 2px);
    padding: .5rem .75rem;
    overflow: hidden;
    line-height: 1.5;
    color: #c4c0c0 !important;
    user-select: none;
    background-color: var(--color-form-control) !important;
    background-clip: padding-box;
    border: none !important;
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;


}

.custom-file-container__custom-file__custom-file-control__button {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6;
    display: block;
    height: calc(2.25rem + 2px);
    padding: .5rem .75rem;
    line-height: 1.25;
    color: white !important;
    background-color: var(--color-card) !important;
    border-left: none !important;
    box-sizing: border-box;
    border-top-left-radius: 25px;
    ;
}

body {
    min-height: 100% !important;
    position: relative !important;
    z-index: -1 !important;
}

.modal-content {
    background: rgba(0, 0, 0, 0.5) !important;

    backdrop-filter: blur(10px) !important;
}

a:hover {
    text-decoration: none !important;
}



.swal2-show {
    -webkit-animation: swal2-show .3s;
    animation: swal2-show .3s;
    background: rgba(22, 22, 21, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
    border-radius: 25px !important;
}

.swal2-success-circular-line-left {
    display: none;
}

.swal2-success-line-tip {
    display: none;
}

.swal2-success-circular-line-right {
    display: none;
}

.swal2-success-fix {
    display: none;
}

.swal2-title {
    color: white;
}

.swal2-content {
    color: white;
}

.swal2-styled.swal2-confirm {
    background: #22c55e;
    border-radius: 25px;
    border: none;
}




.image-black {
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
}

.text-main {
    color: var(--color-card) !important;
    top: 20px !important;
    font-size: 30px !important;
    z-index: 99999 !important;
    bottom: -20px !important;
    font-weight: bold;
}

#sidebar1 {
    background-color: #171717 !important;
    /* border-top-right-radius: 30px !important; */
    border-radius: 30px !important;
    border-right: 2px solid rgba(128, 128, 128, 0.26) !important;
    border-top: 2px solid rgba(128, 128, 128, 0.26) !important;
    border-left: 2px solid rgba(128, 128, 128, 0.26) !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE/Edge */
    /* box-shadow: rgba(255, 75, 0, 1) 1.95px 1.95px 2.6px; */
    /* box-shadow: rgba(255, 75, 0, 0.2) 5px 0px 8px; */
    /* background: linear-gradient(90deg, #222126 35%, #141318 100%) !important; */

}

.divider {
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1 !important;
    border-bottom: 1px solid rgba(51, 41, 94, 0.5) !important;
    ;
}

.divider:not(:empty)::before {
    margin-right: .25em !important;
}

.divider:not(:empty)::after {
    margin-left: .25em !important;
}

.bg-gradient-grey {
    background: linear-gradient(90deg, #222126 35%, #141318 100%) !important;

}

.tab-history,
indigo {
    background: none;
    border: 1px solid rgba(57, 49, 108, 0.8);
}

.bg-grey {
    background: #222222 !important;
}

.md-tabs .nav-item.open .nav-link,
.md-tabs .nav-link.active {
    background-image: linear-gradient(180deg, var(--color-card), var(--color-rgb-fade)) !important;
    border-radius: 10px;
}

.paginate_button {
    border: 1px solid rgba(57, 49, 108, 0.8);
    background: rgba(57, 49, 108, 0.8);
}


.bg-main_two {
    background: var(--color-card) !important;
}

.bg-rgb-black {
    background-color: rgba(19, 19, 19, 0.5) !important;
    /* backdrop-filter: blur(7px) !important; */
}

.bg-main {
    background: var(--color-main) !important;
    color: white !important;
}

.bg-orange {
    background: var(--color-card) !important;
    color: white !important;
}

.bg-form-control {
    background: var(--color-form-control) !important;
    border: none !important;
}

.bg-orange-rgb {
    background: var(--color-rgb-fade) !important;
    color: var(--color-card) !important;
    border: none;
}

.text-orange {
    color: var(--color-card) !important;
}

.bg-rgb-green {
    background: rgba(20, 143, 45, 0.055) !important;
    color: rgb(20, 143, 45, 1) !important;
}

.bg-rgb-red {
    background: rgb(220, 53, 69, 0.2) !important;
    color: rgba(220, 53, 69, 1) !important;
}

.bg-rgb-yellow {
    background: rgb(255, 192, 8, 0.2) !important;
    color: rgb(255, 192, 8, 1) !important;
}

table.dataTable tbody tr {
    background-color: none !important;
}

.bg-rgb-primary {
    background: rgba(8, 144, 255, 0.2) !important;
    color: rgb(8, 123, 255) !important;
}

.bg-rgb-orange {
    background: var(--color-rgb-orange) !important;
}

.bg-nav-color {
    backdrop-filter: blur(0px) !important;
    background: #131313a6 !important;
}

.form-control {
    background: var(--color-form-control) !important;
    border: none !important;
    color: white !important;
}

.desktop-preview {
    display: table !important;
}

.responsive-preview {
    display: none !important;
}

.bg-login {
    /* background: rgba(215, 100, 247, 0.1) !important; */
    background: #1313134f !important;
    /* backdrop-filter: blur(10px) !important; */
    /* border: 2px solid rgba(222, 129, 247, 0.2) !important; */
}

.bg-button {
    background: var(--color-card);
    background: linear-gradient(135deg, var(--color-card), #852f0a) !important;
}

.border-purple {
    border: 1px solid rgba(160, 104, 207, 0.3) !important;
}

.border-orange {
    border: 1px solid rgba(255, 75, 0, 0.2) !important;
}

.border-main {
    border: 1px solid rgba(128, 128, 128, 0.26) !important;
}

.bg-main_two {
    border: 1px solid rgba(128, 128, 128, 0.26) !important;
}

.progress-bar {
    background: linear-gradient(90deg, #FFFF79, #EAA722) !important;
    height: 12px !important;
    text-align: center !important;
    color: gray !important;

}

.progress {
    height: 12px !important;

}


.bg-rgb-red {
    background: rgb(220, 53, 69, 0.2) !important;
    color: rgba(220, 53, 69, 1) !important;
}

.bg-rgb-purple_two {
    background: rgba(217, 170, 255, 0.2) !important;
    color: white !important;
}

.text-purple {
    color: rgba(160, 104, 207, 1.0) !important;
}

.bg-rgb-purple {
    background: rgba(160, 104, 207, 0.1) !important;
}

.logo-tab {
    display: auto !important;
}

@media (min-width: 820px) {
    .sidebar-pc {
        font-size: 10px !important;
        width: 500px !important;

    }

}

.flex-column-none {
    display: none !important;
    /* ซ่อนองค์ประกอบที่มีคลาสนี้ */
}



@media (max-width: 768px) {
    .desktop-preview {
        display: none !important;
    }

    .responsive-preview {
        display: table !important;
        overflow-x: auto !important;
        background: none !important;
    }

    .logo-tab {
        display: none !important;
    }

    .content-side {
        margin-top: 20px !important;
    }

    .sidebar-pc {
        font-size: 10px !important;
        padding-left: 20px !important;

    }



    nav-tabs .nav-item.show .link-nav,
    .nav-tabs .link-nav.active {
        font-size: 20px !important;
    }

    .nav-tabs {
        font-size: 20px !important;
    }

    .game-search {
        width: 50% !important;
    }


    .img-tab {
        width: 70% !important;
    }

    .text-game {
        font-size: 30px !important;
        text-align: center !important;
    }

    .body-header {
        text-align: center !important;
    }

    .text-header {
        width: 100% !important;
    }

    .sidebar-mobile {
        width: 53px !important;
        height: 40px !important;
        border-radius: 10px !important;
        margin-left: 3px !important;
        margin-bottom: 15px !important;
        /* ปรับตรงนี้แทน */

    }

    .badge-online {
        display: none !important;
    }


}

.sidebar-mobile {

    margin-bottom: 10px !important;
}


nav-tabs .nav-item.show .link-nav,
.nav-tabs .link-nav.active {
    color: white !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid var(--color-card) !important;
    font-weight: bold !important;
}

nav-tabs .nav-item.show .link-nav,
.nav-tabs .link-nav:hover {
    color: white !important;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid var(--color-card) !important;
}

.nav-pills .nav-item .nav-link {
    white-space: nowrap !important;
}

/* สำหรับแถบแท็บ */
.nav-tabs-container {
    overflow-x: auto !important;
    /* เพื่อให้สามารถเลื่อนแท็บในแนวนอนบนมือถือได้ */
    -webkit-overflow-scrolling: touch !important;
    /* เพิ่มสัมผัสแบบอินเนอร์สครอลสำหรับมือถือ */
}

.nav-tabs {
    white-space: nowrap !important;
    /* ไม่ให้แท็บตัดบรรทัด */
    display: flex !important;
    flex-wrap: nowrap !important;
}

.nav-tabs .nav-link {
    flex: 0 0 auto !important;
    /* ป้องกันการย่อขนาด */
}

nav-tabs .nav-item.show .link-nav,
.nav-tabs .link-nav {
    color: #7d75a8 !important;
    background: none !important;
    border: none !important;
    font-weight: bold !important;
}

.nav-tabs {
    background: none !important;
    border: none !important;
}

.game-search:active {
    border: 1px solid red !important;
}

.game-search:focus {
    border: 1px solid red !important;
}

.min-h-screen {
    min-height: 100vh !important;
    /* 100% ของความสูงของ viewport */
}

.save-game {
    position: absolute !important;
    right: 0 !important;
}

.col-sm-fixed {
    flex: 0 0 8.333% !important;
    max-width: 250px !important;
    min-width: 100px !important;
}

.sidebar-pc {

    padding-top: -50px !important;
    margin-left: -7px !important;
    width: 50% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;

}



.text-game {
    font-size: 18px !important;
}

.flex-auto {
    flex: 1 1 50% !important;
    min-width: 50% !important;
}

@media (max-width: 576px) {
    .card-img {
        max-width: 100% !important;
        height: auto !important;
    }

    .text-center {
        font-size: 14px !important;
    }
}


.card-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* ไม่ให้บรรทัดห่อกลับ */
    overflow-x: auto !important;
    /* ให้เลื่อนได้ในแนวนอน */
    padding: 1rem !important;
}

.card-item {
    flex: 0 0 calc(10% - 1rem) !important;
    /* กว้าง 25% และลบระยะห่าง */
    margin-right: 1rem !important;
    /* ช่องว่างระหว่างการ์ด */
    background: none !important;
}

.card-item:last-child {
    margin-right: 0 !important;
    /* เอาช่องว่างออกจากการ์ดสุดท้าย */
}

.card-img-top {
    width: 100% !important;
    height: auto !important;
    /* ปรับขนาดภาพให้พอดี */
}

/* Media Query สำหรับหน้าจอขนาดเล็ก */
@media (max-width: 768px) {
    .card-item {
        flex: 0 0 calc(45% - 1rem) !important;
        /* กว้าง 33.33% เมื่อหน้าจอขนาดเล็ก */
    }
}

.background-image {
    position: relative !important;
    background-image: linear-gradient(rgba(54, 44, 100, 0.5), rgba(0, 0, 0, 0.9)), url("https://p4.wallpaperbetter.com/wallpaper/843/546/469/photography-effects-pens-letter-wallpaper-preview.jpg") !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 100% !important;
}

.btn-custom {
    background-image: linear-gradient(180deg, #100d26, #201a4c) !important;
    border: none !important;
    border-radius: 15px !important;
}

.btn-coin {
    background: rgba(96, 96, 96, 0.188) !important;
    backdrop-filter: blur(10px) !important;
    border: none !important;
}

.body-header {
    text-align: left !important;
}

@media (min-width: 768px) and (max-width: 991px) {

    /* Show 4th slide on md if col-md-4*/
    .carousel-inner .active.col-md-4.carousel-item+.carousel-item+.carousel-item+.carousel-item {
        position: absolute !important;
        top: 0 !important;
        right: -33.3333% !important;
        /*change this with javascript in the future*/
        z-index: -1 !important;
        display: block !important;
        visibility: visible !important;
        padding: 0px !important;
        width: 100% !important;

    }
}

@media (min-width: 576px) and (max-width: 768px) {

    /* Show 3rd slide on sm if col-sm-6*/
    .carousel-inner .active.col-sm-6.carousel-item+.carousel-item+.carousel-item {
        position: absolute !important;
        top: 0 !important;
        right: -50% !important;
        /*change this with javascript in the future*/
        z-index: -1 !important;
        display: block !important;
        visibility: visible !important;
        width: 100% !important;

    }
}

.nav-tab-two {
    background: none !important;
}

::-webkit-scrollbar {
    border-radius: 10px !important;
    height: 0px !important;
    width: 1px !important;
}

::-webkit-scrollbar-thumb {
    background: var(--color-card) !important;
    border-radius: 10px !important;
    outline: 1px solid var(--color-card) !important;
}


.badge-container {
    position: absolute !important;
    right: 10px !important;
}

.badge-top-right {
    margin-top: 10px !important;
    opacity: 0 !important;
    transition: opacity 1s !important;
    font-size: 5px !important;
}

.badge {
    font-size: 1rem !important;
    /* ขนาดตัวอักษร */
    padding: 0.5rem 1rem !important;
    /* ขนาดของพื้นหลัง */
}

.tab-pane.hid {
    display: none !important;
}

.tab-pane.hid.active {
    display: block !important;
}

.btntra {
    background: transparent !important;
    border: none !important;
}

@media (max-width: 768px) {
    .sidebar-mobile {
        width: 100% !important;
    }

    input.text-center {
        font-size: 25px !important;
    }
}

@media (max-width: 576px) {
    input.text-center {
        font-size: 25px !important;
    }
}

.f-5 {
    font-size: 25px !important;
}

.loader-logo {
    animation: anigirl 8s ease 0s infinite normal none;
}

@keyframes anigirl {
    0.0% {}

    100% {}

    49.6% {
        transform: translate(0px, 0px) scale(1.2);
    }
}

.loading-page {
    position: relative;
}

/* html {
    background: var(--color-main) !important;
} */


body::before {
    content: "";
    top: 0;
    left: 0;
    width: 100% !important;
    min-height: 100vh !important;
    backdrop-filter: blur(17px) !important;
    /* background: linear-gradient(rgb(33 32 32 / 95%), rgb(0 0 0 / 91%)) !important; */
    position: fixed;
    z-index: -1;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
}


@media (min-width: 769px) {
    .fix-nav-bottom {
        width: 50% !important;
    }
}

.livechat-box,
.open-chat {
    bottom: 4rem;
}