body {
    font-family: "Noto Sans Thai", sans-serif !important;
}

h1 {
    font-size: 25px;
    color: #FFE604;
}

h2 {
    font-size: 23px;
    color: #FFE604;
}

h3 {
    font-size: 20px;
    color: #FFE604;
}

h4 {
    font-size: 16px;
    color: #FFE604;
}

p {
    font-size: 14px;
}



/* navbar */
.navbar-custom {
    background-image: linear-gradient(360deg, #000000, #550000);
    background-color: #400000;
    padding: 10px 0;
    height: 99px;
    border-bottom: 2px solid #FFBF00;
}

.navbar-custom .container-custom {
    max-width: 1619px;
}

.navbar-custom .navbar-nav .nav-link {
    color: #fff;
    font-size: 20px;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: #ffc107;
}

.navbar-custom .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-custom .navbar-brand img {
    height: 50px;
}

.btn-login {
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    border: 1.5px solid #FFB804;
    background-image: linear-gradient(0deg, #000000, #331422);
}

.btn-login:hover {
    background-image: linear-gradient(45deg, #FF453E, #FFBF00);
    border: 1.5px solid #FFB804;
    color: #000;
}

.btn-register {
    color: #000;
    border-radius: 20px;
    padding: 8px 20px;
    background-image: linear-gradient(270deg, #FF453E, #FFBF00);
    border: 1.5px solid #FFB804;
    animation: 1.6s playShadow ease-out infinite;
}

.btn-register:hover {
    background-color: #000;
    color: #ffc107;
}

.nav-item img {
    height: 30px;
    margin-right: 5px;
}

#swgame-logo {
    position: absolute;
    width: 160px;
    margin-left: -81px;
    transform: scale(1.1);
    top: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

#swgame-logo.sticky-logo {
    transform: scale(1);
    top: -8px;
}

.nav-link:hover {
    color: yellow;
}

.nav-link img {
    transition: transform 0.3s;
}

.nav-link:hover img {
    transform: rotate(-15deg);
}

.btn-register-m {
    max-width: 90px;
    padding: 8px 5px;
    float: right;
    margin-right: -15px;
    font-size: 14px;
}

/* สำหรับหน้าจอขนาดกลางขึ้นไป (md) */
@media (min-width: 768px) {

    #swgame-logo {
        transform: scale(1.5);
    }

    h1 {
        font-size: 38px;
        color: #FFE604;
    }

    h2 {
        font-size: 34px;
        color: #FFE604;
    }

    h3 {
        font-size: 32px;
        color: #FFE604;
    }

    h4 {
        font-size: 20px;
        color: #FFE604;
    }

    p {
        font-size: 16px;
    }

    .btn-register-m {
        max-width: unset;
        padding: 8px 20px;
        float: none;
        margin-right: auto;
        font-size: 16px;
    }
}

/* สำหรับหน้าจอขนาดใหญ่ขึ้นไป (lg) */
@media (min-width: 992px) {}


.navbar-toggle .icon-bar {
    background-image: linear-gradient(270deg, #FF453E, #FFBF00);
    border: 1.5px solid #FFB804;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 26px;
    height: 6px
}

.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 5px
}

.navbar-toggle {
    border: none;
    background: 0 0 !important
}

.navbar-toggle:hover {
    background: 0 0 !important
}

.navbar-toggle .icon-bar {
    width: 45px;
    transition: all .2s;
    border-radius: 2px;
}

.navbar-toggle .top-bar {
    transform: rotate(45deg);
    transform-origin: 10% 10%
}

.navbar-toggle .middle-bar {
    opacity: 0
}

.navbar-toggle .bottom-bar {
    transform: rotate(-45deg);
    transform-origin: 19% 90%
}

.navbar-toggle.collapsed .top-bar {
    transform: rotate(0)
}

@keyframes expandContract {
    0% {
        width: 30px;
    }

    50% {
        width: 20px;
    }

    100% {
        width: 30px;
    }
}

.navbar-toggle.collapsed .middle-bar {
    opacity: 1;
    width: 30px;
    animation: expandContract 0.5s infinite;
}

.navbar-toggle.collapsed .bottom-bar {
    transform: rotate(0);
}

.navbar-toggle .bottom-bar {
    width: 45px
}

@keyframes playShadow {
    0% {
        box-shadow: 0 0 0 0px rgba(239, 35, 60, 0.3), 0 0 0 0px rgba(239, 35, 60, 0.2);
        transform: scale(1);
    }

    18% {
        box-shadow: 0 0 0 0px rgba(239, 35, 60, 0.3), 0 0 0 0px rgba(239, 35, 60, 0.2);
    }

    35% {
        transform: scale(1.08);
    }

    76% {
        transform: scale(0.96);
    }

    100% {
        box-shadow: 0 0 0 16px rgba(255, 217, 0, 0.014), 0 0 0 27px rgba(239, 35, 60, 0);
        transform: scale(1);
    }
}

@keyframes rotateLoop {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.navbar-mobile {
    height: 68px;
    background-image: linear-gradient(360deg, #000000, #550000);
    position: fixed;
    z-index: 1000;
    display: flex;
    width: 100%;
    color: #FFFFFF;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    bottom: 0;
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
    padding-top: 6px;

    .nav-link {
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .centerhome {
        background-image: linear-gradient(180deg, #FE3F42, #B22222);
        border-top-right-radius: 48px;
        border-top-left-radius: 48px;
        margin-top: -25px;
        padding-bottom: 25px;
    }

    .rotate-loop {
        animation: rotateLoop 1s infinite;
    }
}

@media (min-width: 768px) {
    .navbar-mobile {
        display: none;
    }
}



.offcanvas-backdrop.show {
    opacity: 0;
}

#offcanvasSidenave {
    background: unset;

    .offcanvas-background {
        opacity: 0.8;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: black;
        z-index: 1040;
    }

    .offcanvas-body,
    .offcanvas-header {
        position: relative;
        z-index: 1050;
        width: 100vw;
    }

    .offcanvas-header {
        padding-bottom: 0;
        .btn-close {
            background-color: #7D7D7D;
            opacity: 1;
            filter: invert(1);
            border-radius: 30px;
        }
    }

    .offcanvas-body {
        padding-top: 0;

        .box-1 {
            display: flex !important;
            align-items: center;
            justify-content: center;
            gap: 10px;

            a,
            button {
                color: black;
                width: 181px;
                font-size: 18px;
                border-radius: 15px;
                position: relative;
                border: unset;
                padding: 15px 0px;
                font-weight: bold;
                height: 90px;
                text-decoration: unset;
            }

            .game {
                background: linear-gradient(to bottom, #ffffff, #ffffff, #ff6666);
            }

            .add {
                background: linear-gradient(to bottom, #FFBF00, #FFBF00, #FF453E);
            }

            a::before,
            button::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-image: url(/wp-content/themes/swagme/image/pattern-1.png);
                background-repeat: repeat;
                pointer-events: none;
            }

            a::after,
            button::after {
                content: "";
                position: absolute;
                bottom: -4px;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(to bottom, #d10000, #900000);
                border-radius: 15px;
                z-index: -1;
            }
        }


        .box-2,
        .box-3 {
            display: flex !important;
            align-items: center;
            justify-content: center;
            gap: 10px;

            a,
            button {
                color: black;
                height: 60px;
                width: 181px;
                font-size: 18px;
                border-radius: 11px;
                position: relative;
                border: unset;
                padding: 15px 0px;
                font-weight: normal;
                background: linear-gradient(to bottom, #ffffff, #FFF3F3, #FFD1D1);
                padding-left: 75px;
                text-align: start;
                text-decoration: unset;
                img {
                    position: absolute;
                    left: 0;
                    bottom: 0;
                }
            }

            a::before,
            button::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
        }

    }

}
#ez-toc-container{
    width: 100%;
}