* {
    touch-action: manipulation;
}

body{
    font-family: "Noto Sans Thai", sans-serif;
    /* font-family: "Sarabun", sans-serif; */
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:"wdth" 100;
    background-color:black;
    background:url(https://imagedelivery.net/g1yWpHq5ZqQxQIXvcCDaOA/51e0ced5-a1e0-4b57-ec68-f819a7f16700/public) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center center !important;
    padding-top:65px;
}
body.no-scroll {
    overflow: hidden;
}
input.form-control , input.form-control:focus{
    font-size: 16px;
    width: 100%;
    padding: 8px;
    padding-left: 35px;
    border: none;
    border-radius: 10px;
    background: transparent;
    border: none;
    border-radius: 10px;
    position: relative;
    border: 1px solid #7d7d7d;
    box-shadow: 3px 3px 5px black;
    color: white;
}

.bootstrap-timepicker-widget {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}
.bootstrap-timepicker-widget .hour, 
.bootstrap-timepicker-widget .minute, 
.bootstrap-timepicker-widget .second {
    background-color: #444;
    color: #fff;
    border: none;
}
.bootstrap-timepicker-widget a {
    color: #fff;
}
.bootstrap-timepicker-widget a:hover {
    color: #ddd;
}
.bootstrap-timepicker-widget table td input {
    background-color: #555;
    color: #fff;
    border: 1px solid #666;
}
.bootstrap-timepicker-widget .fas.fa-sort-down , .bootstrap-timepicker-widget .fas.fa-sort-up {
    color: #aaa; /* Default light gray color */
}

/* Change the color on hover */
.bootstrap-timepicker-widget .fas.fa-sort-down:hover , .bootstrap-timepicker-widget .fas.fa-sort-up:hover {
    color: #ddd; /* Lighter gray on hover */
}

.bootstrap-timepicker-widget a {
    color: #ccc !important; /* Light gray */
    text-decoration: none !important;
}

/* Link color on hover */
.bootstrap-timepicker-widget a:hover {
    color: #aaa !important; /* Slightly darker gray on hover */
    background-color: transparent !important;
}


a {
    text-decoration: none;
}
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
    outline: none;
}
.slick-item{
    width: 400px;
}  


.gridgame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}
.ingridgame{
    width: 100%;
}

.iningridgame{
    width: 100%;
    padding:0 5px;
}
.iningridgame img{
    width: 100%;
    transition: all .3s;
    cursor: pointer;
}

.iningridgame img:hover{
    transform:scale(1.05);
}

    
.x-header {
    background: linear-gradient(180deg, #545454, #000000) !important;
    box-shadow: 0 0 10px #000;
    max-height:65px;
    min-height:65px;
}
.web-logo{
    height: 22px;
    width:auto;
}
#sidebar{
    width:135px;
    min-width:135px;
    background:linear-gradient(180deg, rgb(19 19 19) 46%, rgb(17 17 17) 90%) !important
}
#menu{
    /* width:135px;
    min-width:135px; */
    background:linear-gradient(180deg, rgb(19 19 19) 46%, rgb(17 17 17) 90%) !important;
    right:0;
    /* top:0; */
    z-index: 1;
    width:100%;
    display: none;
}
#menu.toggle{
    display: flex;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=UTF8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"%3E%3Cpath stroke="white" stroke-width="3" stroke-linecap="round" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
  }
  
.menu-list{
    padding-left:20px;padding-right:20px;
    cursor: pointer;
}
.menu-list:hover{
    background:rgba(255,255,255,0.2);
}
#sidebar::before{
    background: linear-gradient(45deg, transparent 0%, #e7d39d 50%, transparent 100%);
    width: 2px;
    height: 2px;
    position: absolute;
    right: 0;
    top: 50%;
    height: 100%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    content: "";
}
#menu::before{
    background: linear-gradient(45deg, transparent 0%, #e7d39d 50%, transparent 100%);
    width: 2px;
    height: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    height: 100%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    content: "";

}
.slick-carousel::before{
    background: linear-gradient(45deg, transparent 0%, #e7d39d 50%, transparent 100%);
    width: 100%;
    height: 2px;
    position: absolute;
    right: 0;
    bottom: 0;
    /* height: 100%; */
    /* -webkit-transform: translateY(-50%);
    transform: translateY(-50%); */
    content: "";
}

#sidebar::after {
    width: 2px;
    height: 2px;
    position: absolute;
    right: 0;
    top: 50%;
    height: 38%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    content: "";
    mix-blend-mode: screen;
    box-shadow: 0 0 25px #e7d39d33, 0 0 45px #e7d39d33, 0 0 55px #e7d39d33, 0 0 65px #e7d39d33, 0 0 75px #e7d39d33, 0 0 85px #e7d39d33;
    z-index: 9999999999;
}
.btn{
    border-radius:90px !important;
    position: relative;
}
.btn::before{
    background: linear-gradient(45deg, transparent 0%, #e7d39d 50%, transparent 100%);
    width: 100%;
    height: 2px;
    left:50%;
    transform: translate(-50%);
    -webkit-transform: translate(-50%);
    position: absolute;
    top:-4px;
    mix-blend-mode:screen;
    content: "";
}
.btn::after{
    background: linear-gradient(45deg, transparent 0%, #e7d39d 50%, transparent 100%);
    width: 100%;
    height: 2px;
    left:50%;
    transform: translate(-50%);
    -webkit-transform: translate(-50%);
    position: absolute;
    bottom:-4px;
    mix-blend-mode:screen;
    content: "";
}
.btn.gold{
    background:linear-gradient(180deg, #e7d39d, #b19560), linear-gradient(180deg, #e7d39d, #b19560);
}
.btn.dark{
    background: linear-gradient(180deg, #585858, #292929), linear-gradient(180deg, #585858, #292929);
}
.content{
    width:100%
}
.subpage{
    display: none;
}
.content-area{
    display: none;
    max-height:728px;
    overflow-y: scroll;
}

.marquee {
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}
.nav-link {
    width: fit-content;
    max-width: 85px;
    height: 85px;
    padding: 0 2px 2px;
    background-origin: border-box;
    background-clip: content-box,border-box;
    background-image: linear-gradient( 180deg, #3a3a3a, #101010), linear-gradient( 180deg, #e7d39d, #151515);
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    text-align: center;
    margin-right: 10px;
    font-size: 12px;
    transition: all .3s;
    cursor: pointer;
}

.nav-link:hover,.side-link:hover{
    background: linear-gradient(180deg, #e7d39d, #b19560) !important;
}

.side-link{
    box-shadow: 0 9px 11px rgb(0 0 0 / 64%) !important;
    background: linear-gradient(180deg, #393939, #292929) !important;
    border-radius: 12px;
    min-width:88px;
    min-height:88px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
}
@keyframes marquee {
    from {
        left: 100%;
    }
    to {
        left: -100%;
    }
}

/* SM++ */
@media (min-width: 576px) {
    
    #menu {
        max-width:400px;
    }
    body.no-scroll {
        overflow: auto;
    }
    
    
}
/* MD++ */
@media (min-width: 768px) {
    .x-header {
        max-height:75px;
        min-height:75px;
    }
    .web-logo{
        height: 51px;
    }
    .marquee {
        animation: marquee 30s linear infinite;
    }
    body{
        padding-top:75px;
    }
    .gridgame{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
      }      
}
/* LG++ */
@media (min-width: 992px) {
    .content{
        width:calc(100% - 135px);
        margin-left:135px;
    }
    .content-area{
        max-height:initial;
        overflow-y:hidden;
    }
    .gridgame{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        width: 100%;
    }   
}
/* XL++ */
@media (min-width: 1200px) {
    .gridgame{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        width: 100%;
    }   

}
/* XXL++ */
@media (min-width: 1400px) {

}




.ui-datepicker {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.ui-datepicker-header {
    background-color: #444 !important;
    color: #fff !important;
    border-bottom: 1px solid #555 !important;
}

.ui-datepicker-title {
    color: #fff !important;
}

.ui-datepicker th {
    color: #aaa !important;
}

.ui-datepicker td a, 
.ui-datepicker td span {
    color: #fff !important;
    background-color: transparent !important;
}

.ui-datepicker td a:hover {
    background-color: #555 !important;
    color: #fff !important;
}

.ui-datepicker-current-day a {
    background-color: #555 !important;
    color: #fff !important;
}

.ui-datepicker-buttonpane {
    background-color: #444 !important;
    border-top: 1px solid #555 !important;
}

.ui-datepicker-buttonpane button {
    background-color: #555 !important;
    color: #fff !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.ui-datepicker-buttonpane button:hover {
    background-color: #666 !important;
}

.ui-datepicker .ui-datepicker-today a {
    background-color: gold !important;
    color: #000 !important;
}

/* Add hover effect for the current day */
.ui-datepicker .ui-datepicker-today a:hover {
    background-color: #ffd700 !important;
    color: #000 !important;
}

/* Highlight the selected day with a blue background */
.ui-datepicker .ui-datepicker-current-day a,
.ui-datepicker .ui-datepicker-calendar td a.ui-state-active {
    background-color: blue !important;
    color: #fff !important;
}

/* Hover effect for the selected day */
.ui-datepicker .ui-datepicker-calendar td a.ui-state-active:hover {
    background-color: #1e90ff !important; /* Dodger blue on hover */
    color: #fff !important;
}


/* Dark mode for SweetAlert2 */
.swal2-popup {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border: 1px solid #444 !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

.swal2-title {
    color: #fff !important;
}

.swal2-html-container {
    color: #ccc !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-checkbox input,
.swal2-radio input {
    background-color: #444 !important;
    color: #fff !important;
    border: 1px solid #666 !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: #bbb !important;
}

/* .swal2-confirm,
.swal2-cancel {
    background-color: #555 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.swal2-confirm:hover,
.swal2-cancel:hover {
    background-color: #666 !important;
} */

.swal2-icon {
    color: #fff !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #4caf50 !important;
}

.swal2-icon.swal2-error {
    background-color: #d32f2f !important;
}

.swal2-icon.swal2-warning {
    background-color: #ffa000 !important;
}

.swal2-html-container a {
    color: #fff !important; /* White color for links */
    text-decoration: underline !important; /* Optional: to make links more distinguishable */
}

.swal2-html-container a:hover {
    color: #ddd !important; /* Slightly lighter color on hover */
}
