html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

body.modal-open {
    padding-right: 0 !important;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

#mill-debug-label {
    display: none !important;
}

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

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

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

.font-Classic_Robot_Condensed {
    font-family: "Classic_Robot_Condensed", 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%;
}

/* ==== 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: #67cfffce;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3ca7ffce;
}



/* ======================
        Navbar 
====================== */

.navbarMainLayout {
    position: fixed;
    right: 10px;
    /* top: 10px; */
    z-index: 1099;

    width: fit-content;
    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;

}

.navbarPlayerLayout {
    width: fit-content;
    min-width: 150px;
    min-height: 35px;
    padding: 5px 10px;
    border-radius: 2px;

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

    background: url("../images/background/btnPlayer.png");
    background-position: center;
    background-size: cover;
    box-shadow: inset 0px -1px 0px #406b9e, inset 0px 1px 0px #cee4ff;
}

.navbarLang_btn {
    border: 0px solid transparent;
    padding: 0px;
    background: transparent;

    width: 25px;
    height: 25px;

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

.navbarPlayer_btn {
    border: 0px solid transparent;
    padding: 0px;
    background: transparent;

    width: 25px;
    height: 25px;

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

.navbarPlayer_btn img,
.navbarLang_btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbarPlayer_btn:hover,
.navbarLang_btn:hover {
    transform: scale(1.05);
}

.navbarPlayer_btn:active,
.navbarLang_btn:active {
    transform: scale(1.00);
    border: 0px solid transparent;
}

.navbarPlayer_title {
    font-family: "Classic_Robot_Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;

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

    padding: 3px 5px;
}

/* ======================
        loadingOverlay 
====================== */
#loadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        linear-gradient(to bottom,
            rgba(74, 171, 255, 0.219),
            rgba(140, 215, 255, 0.205));
    backdrop-filter: blur(5px);

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

    transition: opacity .3s ease;
}

#loadingOverlay.fade-out {
    opacity: 0;
}

/* =========================
   BOX
========================= */

.ro-loading-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* =========================
   TEXT
========================= */

.ro-loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ro-loading-title {
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;

    text-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

/* =========================
   BAR
========================= */

.ro-loading-bar {
    width: 150px;
    height: 4px;

    border-radius: 999px;
    overflow: hidden;

    background: rgba(255, 255, 255, .25);

    position: relative;
}

.ro-loading-bar::after {
    content: '';

    position: absolute;
    top: 0;
    left: -40%;

    width: 40%;
    height: 100%;

    border-radius: 999px;

    background: rgba(255, 255, 255, .95);

    animation: loadingMove 1.2s ease infinite;
}

/* =========================
   ANIMATION
========================= */

@keyframes loadingMove {
    0% {
        left: -40%;
    }

    100% {
        left: 120%;
    }
}