html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

p,
a span {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

p,
a {
    display: block;
    max-width: 100%;
}

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


/* ==== 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: "FCVision";
    src: url("../font/FCVision.otf") format("truetype");
    font-weight: 500;
    /* normal */
    font-style: normal;
}

.font-FCVision {
    font-family: "FCVision", 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, 23px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 20px);
    --fs-p: clamp(14px, 0.5vw + 14px, 16px);
    --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-gray-500 {
    color: #949494;
}

.ci-primary {
    color: #ffda60;
}

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

.ci-dark {
    color: #323232;
}

.ci-primary-850 {
    color: #ffae00;
}

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

.ci-blue {
    color: #2196f3;
}

.ci-brown {
    color: #8f4300;
}

.indent-first {
    text-indent: 50px;
}

/* =========================
   BUTTON
========================== */
.btn {
    width: 230px;
    min-width: 230px;
    height: 49px;
    padding: 5px 20px;
    border: 0px solid transparent;
    font-family: "FCVision", sans-serif;
}

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

.btn.xxl {
    width: 460px;
    min-width: 460px;
    height: 59px;
    padding: 5px 10px;
}

.btn.sm {
    width: 190px;
    min-width: 190px;
    height: 40px;
    padding: 5px 10px;
}

.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 0.5s;

    align-items: center;
    justify-content: center;
}

.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 0.5s;
}

.btn.primary:hover,
.btn.secondary:hover,
.btn.topup: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%;
}

.btn.topup {
    width: 150px;
    min-width: 150px;
    height: 150px;
    border-radius: 30px;

    background: linear-gradient(0deg, #ffd044 50%, #fff29f 100%);
    border: 2px solid #703d16;
    box-shadow: 0px 3px 5px 1px #000000cc, inset 0px -3px 0px 1px #da8e37a1, inset 3px 2px 0px 1px #ffffff8e;

    transition: all 0.5s;

}

.btn span {
    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: 18px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 2px;
}

.btn.xxl span {
    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: 28px;
    font-weight: 800;
    line-height: 28px;
    /* letter-spacing: 5px; */
    font-family: "FCVisionCondensed", sans-serif;
}

.btn.sm span {
    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: 20px;
    font-weight: 800;
    line-height: 20px;
    /* letter-spacing: 5px; */
    font-family: "FCVisionCondensed", sans-serif;
}

.btn.topup span {
    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;
    /* letter-spacing: 5px; */
    font-family: "FCVisionCondensed", sans-serif;
}

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

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


/* =========================
   INPUT
========================== */
/* Custom radio buttons */
.radio {
    width: 100%;
    max-width: 650px;
    height: 60px;

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

.radio.xl input[type="radio"]+label {
    width: 100%;
    max-width: 550px;
    font-size: 16px;
    line-height: 20px;
}

input[type="radio"]+label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 40px;

    font-size: 22px;
    height: 100%;
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: start;

    color: #323232;
}

input[type="radio"]+label:before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    margin-right: 14px;
    position: absolute;
    /* top: -3px; */
    left: 0;
    border: 1px solid #dfce89;
    background-color: #fdfdeb;
    border-radius: 50%;
}

input[type="radio"] {
    display: none !important;
}

input[type="radio"]:checked+label:after {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    left: 5px;

    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dfce89;
    border: 1px solid #dfce89;
}

input {
    width: 100%;
    padding: 10px 20px;
    height: 60px;
    border-radius: 15px;

    background: #f9f2c8;
    border: 1px solid #f9f2c8;

    color: #141414;
    font-size: 18px;
}

input::placeholder {
    color: #3232329c;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input:focus-visible {
    outline: none;
}

/* =========================
   TAG STATUS
========================== */
.tagMainLayout {
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.tagMainLayout.primary {
    color: #2196f3;
    background: #c0e3fe;
}

.tagMainLayout.info {
    color: #00aa9c;
    background: #c0fefb;
}

.tagMainLayout.green,
.tagMainLayout.success {
    color: #2f980a;
    background: #cefdca;
}

.tagMainLayout.purple {
    color: #865ce2;
    background: #e9ddfd;
}

.tagMainLayout.danger {
    color: #d85d5a;
    background: #ffcecd;
}

.tagMainLayout.warning {
    color: #ea9e0b;
    background: #ffe8ba;
}

.tagMainLayout.pink {
    color: #d161d4;
    background: #edcef5;
}

.tagMainLayout.yellow {
    color: #aea027;
    background: #f5f6cc;
}

.tagMainLayout.gray {
    color: #939292;
    background: #d8d8d8;
}

/* =========================
   TEXT LINE CLAMP
========================== */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layoutLink {
    display: block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layoutLink_02 {
    display: block;
    max-width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}