html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body.swal2-shown {
    padding-right: 0 !important;
}

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

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

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

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

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

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

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

.font-PSL150pro {
    font-family: "PSL150pro", 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: "LINESeedSansTH", sans-serif;
    color: #fff;
    background: #000;

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

/* =========== SCROLLBAR ===========  */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

::-webkit-scrollbar-track {
    background: #afd5ff11;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #700000ce;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b30000ce;
}


/* =================
    Landingpage
   ================= */
.landingpageMainLayout {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;

    background: #000 url("../images/background/mainBg.png") center / cover no-repeat;
}

/* =========================
   Video Background
   ========================= */

.landingpageVideo {
    position: absolute;
    z-index: 0;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;

    opacity: 0;
    transition: opacity 1s ease;

    pointer-events: none;
}

/* Video โหลดพร้อมแล้ว */
.landingpageMainLayout.video-loaded .landingpageVideo {
    opacity: 1;
}

.landingpageVideoLoading {
    position: absolute;
    z-index: 5;
    background: #0000007a;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

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

    pointer-events: none;

    opacity: 1;
    transition: opacity 0.5s ease;
}

.landingpageMainLayout.video-loaded .landingpageVideoLoading {
    opacity: 0;
}

.landingpageVideoLoadingSpinner {
    width: 40px;
    height: 40px;

    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: landingpageVideoLoading 0.8s linear infinite;
}

@keyframes landingpageVideoLoading {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


.landingpageFooterObject {
    position: absolute;
    z-index: 2;
    bottom: 0px;
    left: 0px;

    width: 100%;
    height: 650px;

    background: linear-gradient(180deg, rgba(46, 113, 182, 0) 0%, rgba(0, 0, 0, 0.64) 50%, rgba(0, 0, 0, 0.82) 100%);
}

.landingpageContentMainLayout {
    position: relative;
    z-index: 3;

    width: 100%;
    min-height: 100dvh;
    padding: 50px;

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

.landingpageCharacter {
    position: absolute;
    z-index: 1;
    top: 0px;
    left: 0px;

    /* width: 100%; */
    height: 110%;
}

.landingpageLogo {
    width: 100%;
    max-width: 600px;
}

/* ====== Button ======= */
.landingpageButton {
    position: relative;

    width: 250px;
    height: 62px;

    padding: 5px 15px;

    border: 0;
    outline: none;

    background: url("../images/button/button.png") center / cover no-repeat;

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

    font-family: "PSL150pro", sans-serif;
    font-size: 28px;
    line-height: 28px;
    font-weight: 600;
    color: #fff;

    cursor: pointer;

    transform: scale(1);
    filter: brightness(1);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}



.landingpageButton::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 238, 170, 0.9) 50%,
            rgba(255, 255, 255, 0.15) 60%,
            transparent 80%);

    background-size: 200% 100%;
    background-position: -100% 0;

    -webkit-mask-image: url("../images/button/button.png");
    mask-image: url("../images/button/button.png");

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    pointer-events: none;

    opacity: 0;
}

.landingpageButton:hover {
    transform: scale(1.06);
    filter: brightness(1.12);
}

.landingpageButton:hover::before {
    opacity: 1;
    animation: buttonLight 0.7s ease forwards;
}


@keyframes buttonLight {
    from {
        background-position: -100% 0;
    }

    to {
        background-position: 200% 0;
    }
}



.landingpageButton:active {
    transform: scale(0.96) !important;
    filter: brightness(0.9);

    transition-duration: 0.05s;
}


.landingpageButton:active span {
    transform: translateY(1px);
}




.landingpageFooter {
    width: fit-content;
    min-width: 550px;
    min-height: 40px;
    padding: 5px 20px;

    background: linear-gradient(90deg, rgba(198, 140, 54, 0) 0%, rgba(198, 140, 54, 1) 20%, rgba(255, 255, 192, 1) 50%, rgba(198, 140, 54, 1) 80%, rgba(198, 140, 54, 0) 100%);
    color: #4E120A;

    font-size: 22px;
    line-height: 22px;
    font-weight: 600;

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

/* ====== MODAL ======= */
.modal-content.landingpageModalMain {
    background: transparent;
    border: 0px solid transparent;

    min-height: 100px;

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

.modalButtonClose {
    width: 40px;
    height: 40px;
    padding: 0px;
    border-radius: 50px;

    background: transparent;
    border: 0px solid transparent;

    transition:
        transform 0.5s ease,
        box-shadow 0.3s ease;
}

.modalButtonClose:hover {
    transform: rotate(90deg);
    box-shadow: 1px 1px 5px 2px #fff383;
}

.landingpageModalNavbarMainLayout {
    width: 650px;
    min-height: 45px;
    padding: 10px 0px;
    margin-bottom: 5px;

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

.landingpageModalContentMainLayout {
    width: 650px;
    height: 398px;

    background: #0000008f;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

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

.landingpageModalContentLayout {
    width: 650px;
    height: 398px;

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

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

}

.modalButton {
    position: relative;
    width: 280px;
    height: 45px;
    border: 0px solid transparent;
    padding: 5px 10px;

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

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

    font-size: 25px;
    line-height: 25px;
    font-family: "PSL150pro", sans-serif;
    color: #fff;

    transition:
        transform 0.5s ease,
        filter 0.3s ease;
}

.modalButton:hover {
    transform: scale(1.06);
    filter: drop-shadow(1px 1px 5px #fff383);
}

.modalButton:active {
    transform: scale(0.9);
}

.landingpageModalTitle {
    width: 100%;
    min-height: 40px;
    margin-bottom: 30px;

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

    font-family: "PSL150pro", sans-serif;
}

.landingpageModalTitle span {
    font-size: 40px;
    line-height: 40px;
    padding: 0px 10px;
}

.landingpageModalTitle img {
    width: 20px;
    height: 20px;
}