/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.navbar {
    background-image: linear-gradient(to bottom, rgb(211, 0, 0), rgb(99, 0, 0));
}

/* ==========================================================================
   Modals
   ========================================================================== */
#promoModal .modal-footer {
    background: rgba(180, 113, 20, 0.9);
}

/* ==========================================================================
   Close Icon
   ========================================================================== */
.close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 9999;
    color: #fff;
    font-size: 1.5rem;
}

/* ==========================================================================
   Golden Button
   ========================================================================== */
.golden-button {
    touch-action: manipulation;
    display: inline-block;
    outline: none;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
    border: none;
    border-radius: 0.3em;
    height: 2.75em;
    line-height: 2.5em;
    text-transform: uppercase;
    padding: 0 3em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(110, 80, 20, 0.4),
        inset 0 -2px 5px 1px rgba(139, 66, 8, 1),
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    background-image: linear-gradient(160deg, #a54e07, #b47e11, #fef1a2, #bc881b, #a54e07);
    border: 1px solid #a55d07;
    color: rgb(120, 50, 5);
    text-shadow: 0 2px 2px rgba(250, 227, 133, 1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-size: 100% 100%;
    background-position: center;
}

.golden-button:focus,
.golden-button:hover {
    background-size: 150% 150%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19),
        0 6px 6px rgba(0, 0, 0, 0.23),
        inset 0 -2px 5px 1px #b17d10,
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
    border: 1px solid rgba(165, 93, 7, 0.6);
    color: rgba(120, 50, 5, 0.8);
}

.golden-button:active {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
        0 3px 6px rgba(110, 80, 20, 0.4),
        inset 0 -2px 5px 1px #b17d10,
        inset 0 -1px 1px 3px rgba(250, 227, 133, 1);
}

/* ==========================================================================
   Fixed Background
   ========================================================================== */
.fixed-bg {
    position: fixed;
    width: 100%;
    z-index: -1;
    min-height: 100vh;
    top: 0;
    left: 0;
    background: url("/images/huay-bg-rs.jpg") no-repeat top center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/* ==========================================================================
   CS Button Line
   ========================================================================== */
.cs-button-line {
    background-color: #00c300;
    border: 1px solid #00c300;
    color: #fff;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.cs-button-line:hover,
.cs-button-line:focus,
.cs-button-line:active {
    background-color: #00a700;
    border-color: #00a700;
    color: #fff;
}

.cs-button-line svg {
    fill: #fff;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ==========================================================================
   Login Box
   ========================================================================== */
.login-box {
    border: 2px solid #d32f2f !important;
    border-radius: 10px;
    background-color: #fff;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    -webkit-box-shadow: 0px 0px 4px 2px rgba(211, 47, 47, 0.75);
    -moz-box-shadow: 0px 0px 4px 2px rgba(211, 47, 47, 0.75);
    box-shadow: 0px 0px 4px 2px rgba(211, 47, 47, 0.75);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.page-footer {
    background-image: linear-gradient(to bottom, rgb(211, 0, 0), rgb(99, 0, 0));
}

/* ==========================================================================
   Links (Slide Games & Login Form)
   ========================================================================== */
#slide-games .swiper-slide a,
#login-form a {
    text-decoration: none;
}

#slide-games .swiper-slide a .slider-title {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Login Box Display Control
   ========================================================================== */
#loginbox {
    display: none;
}

/* ==========================================================================
   Container
   ========================================================================== */
.cs-container-rich {
    max-width: 1400px;
}

/* ==========================================================================
   Modal Login (Desktop)
   ========================================================================== */
.modal-login-desktop {
    background: transparent linear-gradient(135deg, rgba(139, 66, 8, 1) 0%, rgba(129, 3, 4, 0.9) 40%) 0% 0% no-repeat padding-box;
    border-radius: 10px;
    background-size: cover;
}

.modal-login-desktop .help-block {
    color: red;
}

/* ==========================================================================
   Main Slider
   ========================================================================== */
#main-slider {
    border-radius: 1rem;
}

/* ==========================================================================
   Floating Contact
   ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #00a700;
    /* สีพื้นหลัง */
    color: #fff;
    padding: 15px 15px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    text-decoration: none;
}

/* Floating Contact Close Button */
.floating-contact .close-btn {
    position: absolute;
    top: -18px;
    right: -8px;
    border: none;
    background: none;
    color: #000;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    padding: 2px 6px;
}

.floating-contact .close-btn:focus,
.floating-contact .close-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Swiper & Slider Images
   ========================================================================== */
.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

#slide-games .swiper-slide .slider-img,
.signup-page .hero-img {
    border-radius: 0.5rem;
    overflow: hidden;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

/* ==========================================================================
   Lotto Prize
   ========================================================================== */
.lotto-prize .card-header {
    background-image: linear-gradient(to right, #810304, #E50909);
}

.lotto-prize-rs {
    color: #8f0405;
    border: 1px solid #ccc;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.7rem;
    border-radius: 0.4rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
/* For Mobile Small Devices */
@media (max-width: 576px) {

    .nav-login-btn,
    .nav-login-reg {
        display: none !important;
    }

    /* แสดงในโทรศัพท์ */
    .mb-display-block {
        display: block !important;
    }
}

/* For Tablets */
@media (max-width: 768px) {
    #loginbox {
        display: block;
    }
}