@charset "utf-8";
/* CSS Document */
/* Kanit Font */
@import url('https://fonts.googleapis.com/css?family=Kanit:200,200i,300,300i,400,400i,500,500i,600,600i&display=swap');

* {
    font-family: 'Kanit', sans-serif;
}
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 75px; /* Margin bottom by footer height */
    /* height: 100%; */
    background-color: #ecc06a;
    background-repeat: no-repeat;
    background-position: top center;
    overflow-x: hidden;
    overflow-y: hidden;
}
.livechat {
    /* height: 120%; */
    background: url(../images/bg-2.jpg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}
.landing-section {
    position: relative;
    /* z-index: 1; */
}
.background-layer-1 {
    background: url(../images/bg-2.jpg) no-repeat 50% 100%;
    bottom: 0px;
    background-size: cover;
    background-position: top center;
    position: absolute;
    width: 103%;
    height: 100vh;
    left: -1%;
    top: -1%;
}
.background-layer-footer {
    position: absolute;
    bottom: 0px;
    background-image: url(../images/wood-bottom.png);
    width: 100%;
    height: 211px;
    background-position: top center;
    /* z-index: -1; */
}
.landing-content {
    /* width: 100%; */
    position: relative;
    z-index: 1;
    /* overflow-y: hidden;
    overflow-x: visible; */
}
.ngb-logo {
    padding-left: 25px;
    padding-right: 25px;
    margin-top: 30px;
}
.title-1 {
    margin-top: 3px;
    margin-bottom: -16px;
}
.vdo-youtube {
    position: relative;
    z-index: 1;
}
.vdo-youtube {
    margin-top: 30px;
    text-align: center;
}
.vdo-youtube .btn {
    outline: none;
    position: relative;
    padding: 16px;
}
.vdo-youtube .btn .frame-gif {
    box-shadow: 4px 4px 3px rgba(0,0,0,.4);
}
img.vdo-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    width: 682px;
}
.btn video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    width: 682px;
}
.vdo-youtube .btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}
.vdo-youtube .btn span img {
    opacity: 0.8;
    transform: scale(100%);
    transition: 0.2s;
}
.vdo-youtube .btn:hover span img {
    transform: scale(95%);
    transition: 0.2s;
}
.btn.focus, .btn:focus {
    outline: 0;
    -webkit-box-shadow: 0 0 0 0px rgba(2,117,216,.25);
    box-shadow: 0 0 0 0px rgba(2,117,216,.25);
}
.all-game-btn {
    margin-top: 12px;
    position: relative;
    z-index: 2;
    animation-delay: 1s;
    padding-left: 20px;
    padding-right: 20px;
}
.btn-style {
    margin-left: 6px;
    margin-right: 6px;
}
.btn-style img {
    transition: 0.2s;
}
.btn-style img:hover {
    filter: brightness(155%);
    transform: scale(105%);
}
.nbg-char {
    position: relative;
    z-index: 2;
}
.char-1 {
    width: 80%;
    top: -130px;
    left: -380px;
    position: absolute;
}
.char-2 {
    width: 80%;
    top: -130px;
    right: -380px;
    position: absolute;
}
.sticky-btn-box {
    position: relative;
    right: -10px;
    margin-bottom: 7px;
    padding: 6px 16px 4px 6px;
    background-color: rgba(255,255,255,.5);
    box-shadow: 0px 3px 3px rgba(0,0,0,.3);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    transition: 0.2s;
}
.sticky-btn-box:hover {
    /* margin-right: 10px; */
    right: -5px;
}
.sticky-box {
    /* background-image: url(../images/sticky-bottom-nav-2.png); */
    /* width: 218px; */
    /* height: 252px; */
    right: 0;
    top: 380px;
    position: absolute;
    z-index: 3;
}
.banner-btn {
    display: block;
    margin-top:0px;
    /* margin-left: auto; */  
    /* margin-right: auto; */
    width: 170px;
    height: 54px;
}
.sticky-box {
    animation-delay: 1.2s;
}
.banner-btn:hover img {
    filter: brightness(120%);
}
.live-chat {
    /* background-image: url(../images/live-chat.png); */
    width: 221px;
    height: 183px;
    right: 10px;
    bottom: -5px;
    position: fixed;
    z-index: 3;
    transition: 0.2s;
}
.live-chat:hover {
    bottom: 0px;
}
.live-chat:hover img {
    filter: brightness(110%);
}
.redbull-banner {
    padding: 3px 6px 7px 6px;
}
.redbull-banner a {
    position: relative;
    top: -10px;
}
.livechat-selcet h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}
.livechat-selcet {
    margin-top: 40px;
    padding: 40px 40px 30px 40px;
    background-color: rgba(255,255,255,.8);
    border-bottom: 4px solid #7272c6;
    box-shadow: 0px 3px 6px rgba(0,0,0,.3);
}
.livechat-selcet a {
    margin-left: 10px;
    margin-right: 10px;
    display: block;
    margin-bottom: 20px;
}
.livechat-selcet a:hover img {
    filter: brightness(120%);
}





footer {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 75px; /* Set the fixed height of the footer here */
    /* background-color: #f5f5f5; */
}
footer p {
    padding-top: 5px;
    margin-bottom: 6px;
    text-align: center;
    font-size: 14px;
    color: #FFF;
}
.bg-parallax {
    height: 100%;
}



/* Live Chat BG */
.livechat .ngb-logo {
    margin-top: 130px;
}
.livechat footer {
    bottom: 0;
}
.background-layer-footer.live-footer {
    bottom: 0;
}

/* Language */

.lang-position {
    /* padding: 0px 7px 0px 7px; */
    position: fixed;
    top: 0;
    right: 10px;
    z-index: 3;
    background-color: rgba(255,255,255,.25);
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    box-shadow: 0px 3px 0px rgba(0,0,0,.10);
}
.lang-position .fixed-lang a {
    font-size: 12px;
    font-weight: 500;
    color: #101010;
    text-decoration: none;
    display: block;
}
.lang-position .fixed-lang .active a {
    background-color: #ecc06a;
    color: #101010 !important;
    /* border-bottom-left-radius: 3px; */
    cursor: default;
}

.th-lang a {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-top: 3px;
    border-bottom-left-radius: 3px;
}
.en-lang a{
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-top: 3px;
    border-bottom-right-radius: 3px;
}
.th-lang:hover {
    background-color: #ffe4b0;
    border-bottom-left-radius: 3px;
}
.en-lang:hover {
    background-color: #ffe4b0;
    border-bottom-right-radius: 3px;
}
.lang-position .fixed-lang a img {
    padding-right: 2px;
    width: 30px;
    position: relative;
    top: -1px;
}
/* ========================== */
/* ====== Media Query ====== */
/* ======================== */


@media (max-width: 1199.98px) {
    body {
        overflow-y: visible;
    }
    .btn-style {
        margin-bottom: 10px;
    }
    .char-1 {
        width: 60%;
        top: -40px;
        left: -320px;
        position: absolute;
    }
    .char-2 {
        width: 60%;
        top: -70px;
        right: -220px;
        position: absolute;
    }
    img.vdo-gif {
        width: 775px;
    }
    .btn video {
        width: 775px;
    }
}

@media (max-width: 991.98px) {
    .landing-section {
        z-index: 1;
    }
    .livechat .ngb-logo {
        margin-top: 40px;
    }
    .bg-parallax {
        display: none;
    }
    body {
        background: url(../images/bg-2.jpg);
        background-position: top center;
        background-attachment: fixed;
    }
    .sticky-box {
        position: static;
        width: auto;
        height: auto;
        background-image: none;
    }
    .banner-btn {
        position: static;
        width: auto;
        height: auto;
        margin-top: 30px;
        margin-left: 6px;
        margin-right: 6px;
    }
    .pre-register {
        /* margin-bottom: 15px !important; */
    }
    .char-1 {
        left: -220px;
    }
    .redbull-banner .banner-btn {
        position: relative;
        top: -16px;
    }
    .sticky-btn-box {
        position: relative;
        right: 0px;
        margin-bottom: 7px;
        padding: 0;
        background-color: rgba(255,255,255,0);
        box-shadow: 0px 3px 3px rgba(0,0,0,0);
        transition: 0.2s;
    }
    .sticky-btn-box:hover {
        right: 0;
    }
    footer {
        bottom: -30px;
    }
    .live-chat {
        width: auto;
        height: auto;
        right: 10px;
        bottom: 10px;
        position: fixed;
        z-index: 3;
        transition: 0.2s;
    }
    .live-chat:hover {
        bottom: 10px;
    }
    .vdo-youtube .btn {
        padding: 6px;
    }
    img.vdo-gif {
        padding: 12px;
        width: auto;
    }
    .btn video {
        padding: 12px;
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    body {
        margin-bottom: 96px; /* Margin bottom by footer height */
        background-color: #ecc06a;
        background: url(../images/bg-2.jpg);
        background-position: top center;
        background-attachment: fixed;
        overflow-y: visible;
    }
    .ngb-logo {
        margin-top: 50px;
    }
    .vdo-youtube {
        /* display: none; */
    }
    .vdo-youtube .btn span img {
        width: 60%;
    }
    .vdo-youtube .btn {
        padding: 6px;
    }
    img.vdo-gif {
        padding: 12px;
        width: auto;
    }
    .nbg-char {
        display: none;
    }
    .all-game-btn {
        margin-top: 30px;
        margin-bottom: 20px;
        animation-delay: 0.3s;
    }
    .banner-btn {
        margin-top: 0;
    }
    .btn-style {
        /* width: 50%; */
        /* margin-bottom: 10px; */
    }
    .background-layer-footer {

    }
    .background-layer-footer {
        height: 220px;
        bottom: 0;
        z-index: -1;
    }
    footer {
        margin-top: 96px;
        bottom: 0px;
        height: 96px;
    }
}

@media (max-width: 575.98px) {
    .sticky-box {
        margin-top: 10px;
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 60px;
    }
    .all-game-btn {
        margin-top: 30px;
    }
}
@media (max-width: 520px) {
    .redbull-banner .banner-btn {
        top: 0;
    }
}

/* Height */
@media (max-height: 1080px) {
    .background-layer-footer {
        bottom: 0px;
    }
    footer {
        bottom: 0px;
    }
    .background-layer-1 { 
        /* height: 1000px; */
    }
}
@media (max-height: 897px) {
    body {
        overflow-y: visible;
    }
    .background-layer-1 { 
        /* background-size: cover;
        background-attachment: fixed; */
        /* height: 1050px; */
        height: 1050px;
        background-size: cover;
    }
    .background-layer-footer {
        bottom: -158px;
    }
    footer {
        bottom: -150px;
    }
}
@media (max-width: 1024px) and (max-height: 768px) {
    .background-layer-1 { 
        /* display: none; */
        height: 1050px;
    }
}
@media (max-width: 768px) and (max-height: 1024px) {
    .landing-section {
        position: relative;
        z-index: 1;
    }
    .landing-content {
        overflow-x: hidden;
    }
}
@media (max-height: 897px) and (max-width: 360px) {
    /* .background-layer-footer {
        bottom: -114px;
    }
    footer {
        bottom: -100px;
    } */
}