@import url("https://fonts.googleapis.com/css2?family=Dongle&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Kodchasan:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Sniglet:wght@400;800&display=swap");

:root {
    --bs-primary: #1547b2;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ecc791;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    /* font  */
    --h1: clamp(32px, 4vw, 45px);
    --h2: clamp(28px, 3.5vw, 35px);
    --h3: clamp(24px, 3vw, 32px);
    --h4: clamp(20px, 2.5vw, 25px);
    --h5: clamp(18px, 2vw, 20px);
    --h6: clamp(16px, 1.8vw, 18px);
    --default: clamp(14px, 1.6vw, 16px);
    --small: clamp(12px, 1.4vw, 14px);
}

.text-warning {
    color: var(--bs-warning) !important;
}

body {
    position: relative;
    margin: 0;

    font-family: 'PSLThanuthong', sans-serif;
    font-size: var(--default);
    font-weight: 400;

    background: #000;
    color: #fff;

}


/* Loading Overlay Styles */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.733);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
}

#loadingOverlay.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.loading-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(27, 22, 21, 0.9) 0%, rgba(112, 37, 0, 0.9) 100%);
    border: 2px solid #f4c463a3;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(244, 196, 99, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 6px solid rgba(244, 196, 99, 0.3);
    border-top: 6px solid #f4c463;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(252, 226, 79, 1) 18%, rgba(255, 255, 255, 1) 44%, rgba(235, 175, 41, 1) 73%, rgba(255, 222, 172, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    width: 100%;
    height: 30px;
    background: linear-gradient(0deg, #1b1615ab 10%, #702500a6 90%);
    border: 1px solid #f4c463a3;
    border-radius: 5px;
}

/* dropdown  */
.dropdownLayout {
    width: 100%;
    min-width: 70px;
    height: 35px;

    background: linear-gradient(0deg, rgba(27, 22, 21, 1) 10%, rgba(112, 37, 0, 1) 90%);
    border: 1px solid #f4c463a3;
    border-radius: 3px;

    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.dropdownText {
    background: linear-gradient(180deg, rgba(252, 226, 79, 1) 18%, rgba(255, 255, 255, 1) 44%, rgba(235, 175, 41, 1) 73%, rgba(255, 222, 172, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 25px;
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.poringButton {
    width: 100px;
    position: absolute;
    z-index: 6;
    top: 130px;
    left: 20px;

    animation: pulseScale 2s infinite ease-in-out;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.poringButton:hover {
    filter: drop-shadow(2px 2px 12px #ffb400b3);
}

/* ฺBanner  */
.bannerContentLayout {
    position: relative;
    z-index: 4;

    width: 100%;
    max-width: 800px;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bannerContentCharacterLayout {
    position: relative;
    z-index: 4;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bannerContentMainLayout {
    position: relative;
    width: 100%;
    height: calc(100dvh - 50px);

    display: flex;
    align-items: center;
    justify-content: end;
}

.bannerLogoRcc {
    width: 600px;
    filter: drop-shadow(4px 4px 5px #000);
}

.bannerTitle {
    font-size: 80px;
    line-height: 55px;
    font-weight: 700;
    text-align: center;

    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(208, 186, 163, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    -webkit-text-stroke: 2px #491b00;
    filter: drop-shadow(4px 4px 5px #000000b6);
}

.bannerBtnLayout {
    width: 400px;
    height: 60px;

    background: url(../image/button/banner.png);
    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;

    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    transition: filter 0.3s ease;
}

.bannerBtnLayout:hover {
    filter: drop-shadow(1px 1px 10px #fdcd3dc5);
}

.bannerrBtnText {
    font-size: 40px;
    font-weight: 700;
    text-align: center;

    background: linear-gradient(180deg, rgba(252, 226, 79, 1) 18%, rgba(255, 255, 255, 1) 44%, rgba(235, 175, 41, 1) 73%, rgba(255, 222, 172, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    -webkit-text-stroke: 1px #491b00;
    filter: drop-shadow(1px 1px 3px #000000);
}

/* team  */
.teamMainLayout {
    width: 100%;
    height: 100%;
    min-height: 100dvh;

    background: url("../image/background/detail.png");
    background-position: top;
    background-size: cover;

    padding: 50px;

    display: flex;
    align-items: flex-start;
    justify-content: center
}

.teamContentLayout {
    width: 100%;
    max-width: 1300px;

    margin: 0 auto
}


.teamCardTitle {
    width: 100%;
    height: 300px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 55px;
    line-height: 40px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.teamCardImgFilter {
    filter: drop-shadow(1px 1px 10px #000);
}

/* <!-- BACKET --> */
.backetMainLayout {
    width: 100%;
    height: 100%;
    /* min-height: 100dvh; */

    background: url("../image/background/detail.png");
    background-position: top;
    background-size: cover;
    padding: 50px;

    display: flex;
    align-items: flex-start;
    justify-content: start
}

.backetContentMainLayout {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}



.backetLogo {
    width: 300px;
    min-width: 300px;
    filter: drop-shadow(1px 1px 10px #c77144);
}

/* Line  */
.line01 {
    width: 50px;
    height: 70px;
    background: transparent;
    position: absolute;
    top: 50px;
    left: 220px;
    border-top: 3px solid #978367;
    border-bottom: 3px solid #978367;
    border-right: 3px solid #978367;
}

.line02 {
    width: 60px;
    height: 190px;
    background: transparent;
    position: absolute;
    top: 120px;
    left: 275px;
    border-top: 3px solid #978367;
    border-bottom: 3px solid #978367;
    border-right: 3px solid #978367;
}

.line03 {
    width: 50px;
    height: 3px;
    background: #978367;
    position: absolute;
    top: 200px;
    left: 335px;
}

.line04 {
    width: 50px;
    height: 130px;
    background: transparent;
    position: absolute;
    top: 50px;
    left: 220px;
    border-top: 3px solid #978367;
    border-bottom: 3px solid #978367;
    border-right: 3px solid #978367;
}

.line05 {
    width: 105px;
    height: 3px;
    background: #978367;

    position: absolute;
    top: 110px;
    left: 270px;
}

.line06 {
    width: 80px;
    height: 380px;

    position: absolute;
    left: 0;
    top: 250px;

    border-top: 3px solid #978367;
    border-bottom: 3px solid #978367;
    border-right: 3px solid #978367;
}

.line07 {
    width: 50px;
    height: 3px;
    background: #978367;
    position: absolute;
    top: 54%;
    left: 80px;
    transform: translate(0%, 50%);
}

/* Scroll bar  */
#backetMainChart::-webkit-scrollbar {
    height: 8px;
    /* ความสูง scrollbar แนวนอน */
}

#backetMainChart::-webkit-scrollbar-track {
    background: transparent;
    /* พื้นหลัง scrollbar */
}

#backetMainChart::-webkit-scrollbar-thumb {
    background-color: #ecc791;
    /* สีแท่ง scrollbar */
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

#backetMainChart::-webkit-scrollbar-thumb:hover {
    background-color: #d1a35f;
}

/* modal  */
.modalOverLayLayout {
    position: fixed;
    inset: 0;
    width: 100%;


    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;

    pointer-events: none;
    transition: opacity 300ms;
    padding: 2.5rem;
}

.modalMainLayout {
    position: relative;
    transform: scale(0.95);
    transition: transform 300ms;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;
    padding: 30px;
    /* border-radius: 10px; */

    background: linear-gradient(0deg, #1b1615 10%, #702500 90%);
    border: 2px solid #f4c463a3;
    box-shadow: 1px 1px 15px #000;
}

.modalBtnClose {
    position: absolute;
    top: 0;
    right: 0;
    transform: rotate(90deg);
}

.modalContentLayout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ModalContentTitle {
    font-size: 55px;
    line-height: 35px;
    font-weight: 700;
    text-align: center;

    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(208, 186, 163, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px 5px #491b00);
}

#ModalDetail {
    font-family: 'Kanit', sans-serif;
}