/* easyWheel และ CSS เดิมของคุณ */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px 0 var(--sub-opa-50);
    }

    40%,
    60% {
        box-shadow: 0 0 30px 10px var(--sub-opa-25);
    }
}

@media only screen and (max-width: 992px) {
    .nav-item {
        border-right: none !important;
    }

    .nav-item.first {
        border-left: none !important;
    }
}

.header-top {
    background-color: var(--sub);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.bg-main {
    color: var(--font);
    background-color: var(--main) !important;
}

.bg-main-gra {
    color: var(--font);
    background: linear-gradient(90deg, var(--main) 0%, var(--sub) 100%) !important;
    border: none !important;
}

.border-main {
    border: 2px solid var(--main);
}

.border-top-main {
    border-top: 5px solid var(--main);
}

.border-main-gra {
    border: 2px solid;
    border-image-source: linear-gradient(90deg, var(--main) 0%, var(--sub) 100%);
    border-image-slice: 1;
}

.text-main {
    color: var(--main) !important;
}

.text-sec {
    color: var(--sub) !important;
}

.text-font {
    color: var(--font) !important;
}

.btn-up:hover {
    transform: translateY(-10px);
    transition: 0.4s;
}

.underline-active {
    display: inline-block;
    text-decoration: none;
}

.underline-active::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--main);
    transition: width .3s;
}

.not-dec {
    text-decoration: none;
}

.bg-hallo {
    background: linear-gradient(180deg, rgba(51, 54, 62, 0.9) 73%, rgba(88, 93, 106, 0.6) 100%), url("https://i.ibb.co/ct3xJRM/wallpapersden-com-batman-dark-theme-1920x1080.jpg");
    background-size: cover !important;
    background-position: center;
    background-attachment: fixed;
    height: auto;
}

.page-wrapper {
    background-color: transparent;
    background-image: url("");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.m-cent {
    margin: 0% auto !important;
}

.text-strongest {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

.text-nav {
    color: #c2c9da !important;
}

.border-pro {
    background: #18243d;
    border: 1px solid #000;
}

.border-spe {
    background: #233458;
    border: 1px solid #000;
}

.border-main {
    border-color: var(--main) !important;
}

h4 {
    width: 100%;
    text-overflow: ellipsis;
}

.underline-active:hover::after {
    width: 100%;
}

.wheel_hover {
    transition: 0.3s ease-in-out;
}

.wheel_hover:hover {
    transform: scale(1.05);
}

* {
    font-family: 'Kanit', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 200;
}

hr {
    border-top: 2px solid var(--main);
    opacity: 1;
}

.banner {
    background: url("<?php echo $config['bg'];?>");
    background-position: 0% 25%;
    background-size: cover !important;
    padding: 35px;
    height: auto;
}

.bg-new-dark {
    background-color: #18243d;
}

.top-spe {
    border-top: 2px solid #000;
}

.bottom-spe {
    border-bottom: 2px solid #000;
}

.btn-pro-hover:hover {
    background-color: #233458 !important;
    color: var(--main);
    transition: 0.4s;
}

.hover-nav:hover {
    color: #000 !important;
    transition: 0.4s;
}

.bg-main {
    color: var(--font);
    background-color: var(--or);
}

.text-strong {
    font-weight: 800;
}

.bottom-new-dark {
    border: 2px solid var(--border-dark);
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-50px);
    }

    100% {
        transform: translatey(0px);
    }
}

.wheel-hover:hover {
    transform: scale(1.05);
}

.bg-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn-menu:hover {
    transform: scale(1.1);
    transition: 0.4s;
}

.img-radius {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.bg-pro {
    background-color: var(--new-gray);
    color: #fff !important;
}

.main-badge {
    padding-left: 20px;
    padding-right: 20px;
    background-color: var(--or);
    border-radius: 10px;
}

.statistic-hover:hover {
    transform: scale(1.05);
}

.border-sta {
    border: 2px solid var(--dark-light);
}

.bg-nav-bar {
    background-color: #000;
}

.float-ani {
    animation: float 4s ease-in-out infinite;
}

.bg-yw-gra {
    background: linear-gradient(0deg, rgba(99, 11, 11, 1) 0%, rgba(255, 38, 38, 1) 90%);
}

.bg-yw-gra-flip {
    background: linear-gradient(180deg, rgba(99, 11, 11, 1) 0%, rgba(255, 38, 38, 1) 90%);
}

.btn-contain .card-body img {
    margin-bottom: 20px;
}

.btn-or-gra {
    background: linear-gradient(90deg, rgba(80, 93, 255, 1) 0%, rgba(106, 180, 255, 1) 100%);
}

.bottom-or {
    border-bottom: 3px solid rgba(255, 38, 38, 1);
    border-radius: 6px;
}

.border-wrap {
    border-style: solid;
    border-width: 5px;
    border-image: linear-gradient(rgba(244, 125, 51, 1), rgba(255, 234, 30, 1)) 1;
    border-radius: 10px;
}

.text-or {
    color: var(--or);
}

.btn-hover-action-red:hover {
    filter: grayscale(50%);
    transition: 0.7s;
}

.border-or {
    border: 3px solid rgba(255, 38, 38, 1) !important;
}

hr {
    opacity: 1.0;
    border-top: 2px solid rgb(255, 255, 255);
}

:root {
    --or: #c2c9da;
    --pro: #585d6a;
    --border-dark: rgba(51, 54, 62, 1);
    --new-dark: rgba(38, 41, 47, 1);
    --new-gray: rgb(242, 242, 242);
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --sec-color: #ff94b1;
    --dark-light: rgb(169, 174, 186);
    --sub-opa-50: rgba(255, 255, 255, 0.5);
    /* เพิ่มตัวแปรนี้หากยังไม่มี */
    --sub-opa-25: rgba(255, 255, 255, 0.25);
    /* เพิ่มตัวแปรนี้หากยังไม่มี */
}

/* พื้นหลังสี่เหลี่ยมเคลื่อนไหว */
body {
    background-color: #1a1a1a; /* พพื้นหลังสีดำเข้ม */
    position: relative; /* เพื่อให้สี่เหลี่ยมวางตำแหน่งสัมพันธ์กับ body */
    /* ลบ overflow: hidden เพื่อให้สามารถเลื่อนหน้าเว็บได้ */
}

.background-square {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3); /* สีขาวโปร่งใส */
    border-radius: 20px; /* มุมโค้งมน */
    z-index: -1; /* อยู่ด้านหลังเนื้อหาเพื่อป้องกันการซ้อนทับ */
}

/* สี่เหลี่ยมขนาดใหญ่และเล็กสลับกัน */
.background-square:nth-child(odd) {
    width: 150px;
    height: 150px;
}

.background-square:nth-child(even) {
    width: 50px;
    height: 50px;
}

/* ตำแหน่งเริ่มต้นสำหรับสี่เหลี่ยมหลายตัว */
.background-square:nth-child(1) {
    left: 10%;
    top: -150px;
}

.background-square:nth-child(2) {
    left: 30%;
    top: -150px;
}

.background-square:nth-child(3) {
    left: 50%;
    top: -150px;
}

.background-square:nth-child(4) {
    left: 70%;
    top: -150px;
}

.background-square:nth-child(5) {
    left: 90%;
    top: -150px;
}

.background-square:nth-child(6) {
    left: 20%;
    top: -150px;
}

.background-square:nth-child(7) {
    left: 40%;
    top: -150px;
}

.background-square:nth-child(8) {
    left: 60%;
    top: -150px;
}