html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* ==== Font ===== */
@font-face {
    font-family: "Steamed";
    src: url("../font/Steamed.otf") format("truetype");
    font-weight: 500;
    /* normal */
    font-style: normal;
}

.font-Steamed {
    font-family: "Steamed", sans-serif;
}

@font-face {
    font-family: "ZFTERMIN_";
    src: url("../font/ZFTERMIN_.ttf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-ZFTERMIN_ {
    font-family: "ZFTERMIN_", sans-serif;
}

@font-face {
    font-family: "PSL345pro";
    src: url("../font/PSL345pro.otf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-PSL345pro {
    font-family: "PSL345pro", sans-serif;
}

@font-face {
    font-family: "DBHelvethaicaX";
    src: url("../font/DBHelvethaicaX.ttf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-DBHelvethaicaX {
    font-family: "DBHelvethaicaX", sans-serif;
}

@font-face {
    font-family: "FCVisionCondensed";
    src: url("../font/FCVisionCondensed.otf") format("truetype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

.font-FCVisionCondensed {
    font-family: "FCVisionCondensed", sans-serif;
}

:root {
    --fs-h1: clamp(36px, 2.5vw + 24px, 80px);
    --fs-h2: clamp(30px, 2vw + 20px, 64px);
    --fs-h3: clamp(26px, 1.5vw + 20px, 52px);
    --fs-h4: clamp(23px, 1.2vw + 18px, 35px);
    --fs-h5: clamp(18px, 1vw + 16px, 28px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 20px);
    --fs-p: clamp(14px, 0.5vw + 14px, 17px);
    --fs-small: clamp(12px, 0.25vw + 12px, 14px);
}

html,
body {
    overflow-x: hidden !important;
}

body {
    position: relative;
    font-family: "Kanit", sans-serif;
    background: url("../images/background/main.png");
    background-position: top;
    background-size: cover;
    color: #fff;

    width: 100%;
    min-height: 100dvh;
}

/* ==== font ==== */

h1,
.h1 {
    font-size: var(--fs-h1);
}

h2,
.h2 {
    font-size: var(--fs-h2);
}

h3,
.h3 {
    font-size: var(--fs-h3);
}

h4,
.h4 {
    font-size: var(--fs-h4);
}

h5,
.h5 {
    font-size: var(--fs-h5);
}

h6,
.h6 {
    font-size: var(--fs-h6);
    line-height: 22px;
}

p,
.p {
    font-size: var(--fs-p);
}

small,
.small {
    font-size: var(--fs-small);
}

.ci-gray {
    color: #c7c7c7;
}

.ci-primary {
    color: #ffda60;
}

.ci-primary-800 {
    color: #f5bc00;
}

.ci-dark {
    color: #323232;
}

.ci-primary-900 {
    color: #ff7800;
}

/* ==== navbar ==== */
.navbar_Logo {
    position: fixed;
    z-index: 10;
    top: 20px;
    left: 20px;

    width: 200px;
    filter: drop-shadow(0px 0px 1px #000);
}

.navbar_mainLayout {
    position: fixed;
    z-index: 10;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);

    width: fit-content;
    min-width: 650px;
    max-width: 1200px;
    border-radius: 50px;
    padding: 10px;
    min-height: 60px;

    /* background: #1d1d1d; */
    background: #1d1d1dd4;
    border: 1px solid #cccccc;
    box-shadow: inset 1px 1px 10px 5px #0b0b0b;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.navbar_menu {
    width: fit-content;
    min-width: 140px;
    min-height: 45px;
    padding: 5px 10px;
    padding-bottom: 10px;
    border-radius: 50px;

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

    font-family: "Steamed", sans-serif;
    font-size: 25px;
    line-height: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4a4a4a;
    background: transparent;
    text-shadow:
        3px 3px 0 transparent,
        -3px 3px 0 transparent,
        3px -3px 0 transparent,
        -3px -3px 0 transparent,
        3px 0 0 transparent,
        -3px 0 0 transparent,
        0 3px 0 transparent,
        0 -3px 0 transparent;

    cursor: pointer;
    transition: all .5s;
}

.navbar_menu.xxl {
    width: fit-content;
    min-width: 220px;
}

.navbar_menu.xl {
    width: fit-content;
    min-width: 180px;
}

.navbar_menu:hover,
.navbar_menu.active {
    color: #ffffff;
    text-shadow:
        3px 3px 0 #633f13,
        -3px 3px 0 #633f13,
        3px -3px 0 #633f13,
        -3px -3px 0 #633f13,
        3px 0 0 #633f13,
        -3px 0 0 #633f13,
        0 3px 0 #633f13,
        0 -3px 0 #633f13;

    background: #fed250;
    border: 2px solid #633f13;
    box-shadow: inset 1px -2px 1px 1px #d7a81a, inset 2px 2px 1px 1px #ffffff80;
}

.navbar_soicalMainLayout {
    position: fixed;
    z-index: 1056;
    top: 30px;
    right: 20px;

    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.soical_menu {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url("../images/button/nav_soical.png");
    background-position: center;
    background-size: cover;

    cursor: pointer;
    transition: all .5s;
}

.soical_menu img {
    width: 40px;
    height: 40px;
    padding-bottom: 5px;

    filter: drop-shadow(0px 0px 0px #633f13)drop-shadow(1px 1px 2px #000000a9);
}


.soical_menu:hover {
    box-shadow: 0px 0px 10px #ffbb00d8;
}

.offcanvas.offcanvas-top {
    z-index: 1057;
}

/* ==== button ==== */
.btn {
    width: 230px;
    min-width: 230px;
    height: 49px;
    padding: 5px 20px;
    border: 0px solid transparent;
}

.btn.xxxl {
    width: 620px;
    min-width: 620px;
    height: 80px;
    padding: 20px;
}

.btn.xxl {
    width: 330px;
    min-width: 330px;
    height: 70px;
    padding: 20px;
}

.btn.xxl {
    width: 330px;
    min-width: 330px;
    height: 70px;
    padding: 20px;
}

.btn.primary {
    background: url("../images/button/button_primary.png");
    background-position: center;
    background-size: cover;
    filter: drop-shadow(1px 3px 1px #000000e1);
    color: #84510a;
    border: 0px solid;

    transition: all .5s;
}


.btn.secondary {
    background: url("../images/button/button_primary_02.png");
    background-position: center;
    background-size: cover;
    filter: drop-shadow(1px 3px 1px #000000e1);
    color: #84510a;
    border: 0px solid;

    transition: all .5s;
}

.btn.primary:hover,
.btn.secondary:hover {
    filter: drop-shadow(1px 2px 10px #ffc354);
}

.btn.icon {
    width: 50px;
    min-width: 50px;
    height: 50px;

    background: transparent;
    border: 0px solid transparent;

    font-size: 30px;
}

.btn.modal_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    background: #323232;
    color: #fff;
    font-size: 25px;
    border-radius: 50%;
}

/* ==== 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;
}

.loading-spinner {
    width: 120px;
    height: 120px;
    /* margin: 0 auto 15px;
    border: 6px solid #a09e1775;
    border-top: 6px solid #ffd412;
    border-radius: 50%; */
    /* animation: spin 1s linear infinite; */
}

@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;
}


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

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

/* ป้องกัน content กระโดดเวลาปิด/เปิด modal */
body.modal-open {
    padding-right: 0 !important;
}

/* ==== Cookie ====  */
.cookieMainLayout {
    width: 100%;
    max-width: 1200px;
    min-height: 100px;
    border-radius: 20px;
    padding: 20px;

    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    background: #1d1d1de5;
    border: 1px solid #cccccc;
    box-shadow: inset 1px 1px 10px 5px #0b0b0bde;

    display: flex;
    align-items: center;
    gap: 50px;
}

.cookie_title {
    color: #fff;
    text-shadow:
        3px 3px 0 #633f13,
        -3px 3px 0 #633f13,
        3px -3px 0 #633f13,
        -3px -3px 0 #633f13,
        3px 0 0 #633f13,
        -3px 0 0 #633f13,
        0 3px 0 #633f13,
        0 -3px 0 #633f13;
    text-transform: uppercase;
    font-size: 35px;
    font-weight: 800;
    line-height: 30px;
    font-family: "PSL345pro", sans-serif;
    letter-spacing: 2px;
}

.cookie_titleBtn {
    color: #fff;
    text-shadow:
        2px 2px 0 #633f13,
        -2px 2px 0 #633f13,
        2px -2px 0 #633f13,
        -2px -2px 0 #633f13,
        2px 0 0 #633f13,
        -2px 0 0 #633f13,
        0 2px 0 #633f13,
        0 -2px 0 #633f13;
    text-transform: uppercase;
    font-size: 25px;
    font-weight: 800;
    line-height: 25px;
    font-family: "PSL345pro", sans-serif;
    letter-spacing: 2px;
}

.cookie_link {
    color: #fff;
    width: 120px;
    min-width: 120px;

    transition: all .5s;
}

.cookie_link:hover {
    color: #fed250;
}

.cookieMainLayout {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookieMainLayout.hide {
    opacity: 0;
    visibility: hidden;
}


/* footer  */
.footerMainLayout {
    width: 100%;
    min-height: 150px;
    background: #000;
    padding: 20px;
    gap: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.footer_socialLayout {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 5px;
    font-size: 20px;

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

    color: #fff;
}

.footer_socialLayout.facebook {
    background: #315aaf;
}

.footer_socialLayout.youtube {
    background: #a12323;
}

.footer_socialLayout.discord {
    background: #3e46ac;
}

.footer_logo {
    width: 200px;
}

.footer_link {
    color: #c7c7c7;
    transition: all .5s;
}

.footer_linkHr {
    width: 2px;
    height: 20px;
    background: #c7c7c7;
    margin: 0 10px;
}

.footer_link:hover {
    color: #fff;
    transition: all .5s;
}

/* end-footer  */