html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

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

/* ==== Font ===== */
@font-face {
    font-family: "Gotham";
    src: url("../font/Gotham-Black.otf") format("opentype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

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

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

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

@font-face {
    font-family: "AGaramondPro";
    src: url("../font/adobe-garamond-pro/AGaramondPro-Bold.otf") format("opentype");
    font-weight: 800;
    /* normal */
    font-style: normal;
}

@font-face {
    font-family: "AGaramondPro";
    src: url("../font/adobe-garamond-pro/AGaramondPro-Regular.otf") format("truetype");
    font-weight: 700;
    /* normal */
    font-style: normal;
}

.font-AGaramondPro {
    font-family: "AGaramondPro", 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;
    color: #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 ===========  */
:root {
    --scrollbar-track: #442809;
    --scrollbar-thumb: #ad7934;
    --scrollbar-thumb-hover: #e6ad63;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

.btnTop {
    position: fixed;
    z-index: 10;
    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    border: 0px solid transparent;
    background: transparent;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s ease,
        filter 0.5s ease;
}

.btnTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.btnTop:hover {
    transform: translateY(-4px) scale(1.08);
    filter:
        brightness(1.08) drop-shadow(0 0 4px rgba(255, 220, 120, 0.7)) drop-shadow(0 0 10px rgba(255, 190, 70, 0.5));
}

.btnTop:active {
    transform: translateY(-1px) scale(0.99);
}

.btnTop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* GLOBAL ANIMATIONS LIBRARY */
/* เอฟเฟกต์ขยับ */
.glow-move {
    display: inline-block;
    animation:
        floatMove 4s infinite ease-in-out;
    will-change: transform;
}

@keyframes floatMove {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}



/* เอฟเฟกต์แสง */
.glow-effect2 {
    display: inline-block;
    animation: glowPulse2 3s infinite alternate ease-in-out;
}

@keyframes glowPulse2 {
    from {
        filter: drop-shadow(0 0 5px #ffdab080);
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 20px #ffcc40be);
        transform: scale(1.1);
    }
}


/* เอฟเฟกต์แสง */
.glow-effect3 {
    display: inline-block;
    animation: glowPulse3 2s infinite alternate ease-in-out;
}

@keyframes glowPulse3 {
    from {
        filter: drop-shadow(0 0 5px #ffffffef);
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 10px #ffffff);
    }
}

/* เอฟเฟกต์แสง */
.glow-effect4 {
    display: inline-block;
    animation: glowPulse4 3s infinite alternate ease-in-out;
}

@keyframes glowPulse4 {
    from {
        filter: drop-shadow(0 0 5px #8eacfff1);
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 20px #ffffff);
        transform: scale(1.1);
    }
}


/* เอฟเฟกต์ขยายใหญ่ขึ้น */
.glow-scale {
    display: inline-block;
    animation: scaleUpDown 5s infinite ease-in-out;
}

@keyframes scaleUpDown {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

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

.glow-effect5 {
    animation: glowGold2 2.5s ease-in-out infinite;
}

@keyframes glowGold2 {

    0%,
    100% {
        filter:
            drop-shadow(0 0 8px rgba(255, 191, 0, .5)) drop-shadow(0 0 15px rgba(255, 140, 0, .3));
    }

    50% {
        filter:
            drop-shadow(0 0 15px rgba(255, 215, 0, .8)) drop-shadow(0 0 30px rgba(255, 170, 0, .5));
    }
}

.glow-effect6 {
    display: inline-block;
    animation: glowPulse6 3s infinite alternate ease-in-out;
}

@keyframes glowPulse6 {
    from {
        filter: drop-shadow(0 0 5px #8eacff00);
        transform: scale(1);
    }

    to {
        filter: drop-shadow(1px 1px 10px #ffed9fd7) drop-shadow(1px 1px 20px #ffe572dc);
        transform: scale(1);
    }
}

.glow-move2 {
    display: inline-block;
    animation:
        floatMove2 4s infinite ease-in-out;
    will-change: transform;
}

@keyframes floatMove2 {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}