@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300&display=swap');
* {
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: #ffffff !important;
    font-size: 20px !important;
    background: url('../images/bg.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.col-6 {
    height: 250px;
}

/* -------------------- Custom input -------------------- */

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus {
    border-color: rgba(126, 239, 104, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(126, 239, 104, 0.6);
    outline: 0 none;
}

::placeholder {
    color: #ffffff !important;
    opacity: 1;
    /* Firefox */
    text-shadow: rgb(29, 113, 33) 0px 0px 0px, rgb(29, 113, 33) 1.75517px 0.958851px 0px, rgb(29, 113, 33) 1.0806px 1.68294px 0px, rgb(29, 113, 33) 0.141474px 1.99499px 0px, rgb(29, 113, 33) -0.832294px 1.81859px 0px, rgb(29, 113, 33) -1.60229px 1.19694px 0px, rgb(29, 113, 33) -1.97998px 0.28224px 0px, rgb(29, 113, 33) -1.87291px -0.701566px 0px, rgb(29, 113, 33) -1.30729px -1.5136px 0px, rgb(29, 113, 33) -0.421592px -1.95506px 0px, rgb(29, 113, 33) 0.567324px -1.91785px 0px, rgb(29, 113, 33) 1.41734px -1.41108px 0px, rgb(29, 113, 33) 1.92034px -0.558831px 0px;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #ffffff !important;
    text-shadow: rgb(29, 113, 33) 0px 0px 0px, rgb(29, 113, 33) 1.75517px 0.958851px 0px, rgb(29, 113, 33) 1.0806px 1.68294px 0px, rgb(29, 113, 33) 0.141474px 1.99499px 0px, rgb(29, 113, 33) -0.832294px 1.81859px 0px, rgb(29, 113, 33) -1.60229px 1.19694px 0px, rgb(29, 113, 33) -1.97998px 0.28224px 0px, rgb(29, 113, 33) -1.87291px -0.701566px 0px, rgb(29, 113, 33) -1.30729px -1.5136px 0px, rgb(29, 113, 33) -0.421592px -1.95506px 0px, rgb(29, 113, 33) 0.567324px -1.91785px 0px, rgb(29, 113, 33) 1.41734px -1.41108px 0px, rgb(29, 113, 33) 1.92034px -0.558831px 0px;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #ffffff !important;
    text-shadow: rgb(29, 113, 33) 0px 0px 0px, rgb(29, 113, 33) 1.75517px 0.958851px 0px, rgb(29, 113, 33) 1.0806px 1.68294px 0px, rgb(29, 113, 33) 0.141474px 1.99499px 0px, rgb(29, 113, 33) -0.832294px 1.81859px 0px, rgb(29, 113, 33) -1.60229px 1.19694px 0px, rgb(29, 113, 33) -1.97998px 0.28224px 0px, rgb(29, 113, 33) -1.87291px -0.701566px 0px, rgb(29, 113, 33) -1.30729px -1.5136px 0px, rgb(29, 113, 33) -0.421592px -1.95506px 0px, rgb(29, 113, 33) 0.567324px -1.91785px 0px, rgb(29, 113, 33) 1.41734px -1.41108px 0px, rgb(29, 113, 33) 1.92034px -0.558831px 0px;
}

.form-control {

    border-color: #215423 !important;
    background: rgba(0, 0, 0, 0) !important;
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #eef0f0 !important;
    font-family: 'Orbitron', sans-serif;
   font-size: 18px !important;
    padding: 18px;
    transition: all 0.3s ease;
   
}


.label-custom {
    text-transform: uppercase;
    background-image: linear-gradient(
        -225deg,
        #0d3b66 0%,    /* น้ำเงินเข้ม */
        #0074d9 25%,   /* น้ำเงินสด */
        #00d1b2 50%,   /* สีเขียวมรกต */
        #eef5f1 75%,   /* เขียวอ่อน */
        #ffffff 100%   /* สีเขียวเรืองแสง */
    ); /* ไล่เฉดสีสไตล์นีออน */
    background-size: 200% auto; /* ทำให้แบ็คกราวด์เคลื่อนไหว */
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text; /* สำหรับ WebKit */
    -webkit-text-fill-color: transparent; /* ให้ตัวอักษรโปร่งแสง */
    animation: textclip 2s linear infinite; /* แอนิเมชันเคลื่อนที่ของสี */
    display: inline-block;
    font-size: 32px;
}

/* แอนิเมชันที่ทำให้ตัวอักษรย่อขยายเบาๆ */

@keyframes textclip {
    0% {
       background-position: 0% center;
    }
    100% {
       background-position: 200% center;
    }
 }

/* -------------------- End custom input -------------------- */

/* -------------------- Animation -------------------- */
.animation img {
    -webkit-animation: scaleAndFlip 3s infinite ease-in-out; /* วนลูปใน 3 วินาที */
    animation: scaleAndFlip 3s infinite ease-in-out;
}

@-webkit-keyframes scaleAndFlip {
    0%, 25% {
        transform: scale(1); /* ขนาดปกติ */
        opacity: 0.9;
    }
    12.5% {
        transform: scale(1.05); /* ขยายเล็กน้อย */
        opacity: 1; /* เพิ่มความโปร่งใส */
    }
    50% {
        transform: scale(1.05); /* ค้างไว้ที่ขนาดขยาย */
    }
    75%, 100% {
        transform: scale(1) rotateY(360deg); /* หมุนในแนวนอนเหมือนตีลังกา */
    }
}

@keyframes scaleAndFlip {
    0%, 25% {
        transform: scale(1); /* ขนาดปกติ */
        opacity: 0.9;
    }
    12.5% {
        transform: scale(1.05); /* ขยายเล็กน้อย */
        opacity: 1; /* เพิ่มความโปร่งใส */
    }
    50% {
        transform: scale(1.05); /* ค้างไว้ที่ขนาดขยาย */
    }
    75%, 100% {
        transform: scale(1) rotateY(360deg); /* หมุนในแนวนอนเหมือนตีลังกา */
    }
}

/* -------------------- End animation -------------------- */

/* -------------------- Custom card -------------------- */

.card-custom {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0); /* เงาที่ทำให้การ์ดดูลอยขึ้นและนุ่มนวลขึ้น */
    transition: 0.3s;
    border: 1px solid #204b7d !important;
    background: rgb(0, 0, 0, 0%) !important;
    border-radius: 16px; /* มุมโค้งที่มากขึ้น */
    width: 120%;
    position: absolute; top: 40%; left: -10%; right: 150px; 
    padding: 20px; /* ระยะห่างภายในการ์ด */
    backdrop-filter: blur(10px); /* เอฟเฟกต์เบลอพื้นหลัง */
    
 
}
.card-custom:hover {
    box-shadow: 0 8px 40px rgba(90, 176, 187,80%); /* เพิ่มเงาเมื่อมีการเอาเมาส์ไปทับ */
    transform: translateY( -5px); /* เลื่อนการ์ดขึ้นเมื่อเอาเมาส์ไปทับ */
}

.card-custom-2 {
    box-shadow: 0 0px 20px 0 rgb(163, 227, 139, 50%);
    transition: 0.3s;
    border: 3px solid #397D20 !important;
    background: rgb(0, 0, 0, 95%) !important;
    border-radius: 1rem !important;
    width: 100%;
}

.card-custom .card-body {
    padding: 20px !important;
}

.card {
    background-color: rgba(0, 0, 0, 80%) !important; /* ความทึบของพื้นหลัง */
    border-radius: 15px; /* มุมโค้ง */
}

.card-progress {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 80%); /* เงาที่ทำให้การ์ดดูลอยขึ้นและนุ่มนวลขึ้น */
    transition: 0.3s;
    border: 1px solid #204b7d !important;
    background: rgb(0, 0, 0, 80%) !important;
    border-radius: 12px; /* มุมโค้งที่มากขึ้น */
    width: 100%;
    padding: 30px; /* ระยะห่างภายในการ์ด */
    backdrop-filter: blur(10px); /* เอฟเฟกต์เบลอพื้นหลัง */
 
}

/* -------------------- End custom card -------------------- */

/* -------------------- Custom button -------------------- */



/* -------------------- End custom button -------------------- */

.img-wrapper {
    width: 150px;
    height: auto;
    position: relative; top: -180px;
    margin-bottom: 3rem;
  
}

.progress-wrapper {
    
    position: relative;

}

.level-progress {
    width: 100%;
    height: 300px;
    position: relative;
}

.img-wrapper-progress {
    width: 100px;
    height: auto;
    margin-bottom: 3rem;
}



.circle-big {
    width: 230px;
    height: 230px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -105px;
    margin-top: -110px;
    border-radius: 50%;
    background-image: url('../images/circle_1.gif');
    background-size: 100% 100%; /* ปรับขนาดรูปภาพให้เท่ากับขนาดของ div */
    background-position: center; /* จัดตำแหน่งรูปให้อยู่กึ่งกลาง */
    background-repeat: no-repeat; /* ป้องกันไม่ให้รูปภาพซ้ำ */
 
    

 
 
}
.circle-bigbig {
    
    width: 210px;
    height: 210px;
    border: 4px solid rgba(0, 175, 255, 0.8);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -105px;
    margin-top: -100px;
    border-radius: 50%;
    animation: pulse 3s infinite; /* แอนิเมชันการเต้นของแสง */
    box-shadow: 0 0 30px rgba(0, 175, 255, 1), 0 0 60px rgba(0, 115, 200, 0.8);
    
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(0, 175, 255, 1), 0 0 60px rgba(0, 115, 200, 0.8);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 175, 255, 1), 0 0 120px rgba(0, 115, 200, 0.8);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 175, 255, 1), 0 0 60px rgba(0, 115, 200, 0.8);
    }
}



/*==============ANIMATIONS=================*/

/*==============ROTATE=====================*/

@-moz-keyframes rotate {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*==============ROTATE-REV=================*/

@-moz-keyframes rotate-rev {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(-360deg);
    }
}

@-webkit-keyframes rotate-rev {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(-360deg);
    }
}

@keyframes rotate-rev {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/*==============PULSE======================*/

@-moz-keyframes pulse {
    0% {
        -moz-transform: scale(0.1);
        opacity: 0.2;
    }
    50% {
        -moz-transform: scale(1);
        opacity: 0.8;
    }
    100% {
        -moz-transform: scale(0.1);
        opacity: 0.2;
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(0.1);
        opacity: 0.2;
    }
    50% {
        -webkit-transform: scale(1);
        opacity: 0.8;
    }
    100% {
        -webkit-transform: scale(0.1);
        opacity: 0.2;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.1);
        opacity: 0.2;
    }
}

.btnlogin {
    width: 180px;
    height: 70px;
    margin-left: -30px;
    background-image: url('../images/btnlogin.png');
    background-size: 100% 100%; /* ปรับขนาดรูปภาพให้เท่ากับขนาดของ div */
    background-position: center; /* จัดตำแหน่งรูปให้อยู่กึ่งกลาง */
    background-repeat: no-repeat; /* ป้องกันไม่ให้รูปภาพซ้ำ */
}

.btncode {
    width: 140px;
    height: 70px;
    margin-left: 20px;
    background-image: url('../images/btncode.png');
    background-size: 100% 100%; /* ปรับขนาดรูปภาพให้เท่ากับขนาดของ div */
    background-position: center; /* จัดตำแหน่งรูปให้อยู่กึ่งกลาง */
    background-repeat: no-repeat; /* ป้องกันไม่ให้รูปภาพซ้ำ */
}

.c-progress {
    position: absolute;
    height: 230px;
    width: 230px;
    cursor: pointer;
    top: 50%;
    left: 50%;
    margin-left: -105px;
    margin-top: -110px;
    
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 175, 255, 0.7); /* เพิ่มแสง */


}



.progress-text {
    width: 100%;
    position: absolute;
    top: 80px;
    text-align: center;
    font-size: 2em;
}

.progress-wrapper .card {
    width: 300px;
    color: #AFEC00 !important;
    font-weight: bold;
    font-size: 40px;
    border-top: 0px !important;
}

.progress-wrapper .card .card-body {
    padding: 10px;
}

.progress-wrapper .card .card-footer {
    border-top: 0px !important;
    font-size: 30px;
}

.time-wrapper {
    position: absolute;
    top: 60%;
    left: 80%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    padding: 15px;
    font-size: 45px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    width: 100%;
    text-align: center;
    margin-top: 120px;
    background-image: url('../images/time_reset.png');
    background-size: 100% 100%; /* ปรับขนาดรูปภาพให้เท่ากับขนาดของ div */
    background-position: center; /* จัดตำแหน่งรูปให้อยู่กึ่งกลาง */
    background-repeat: no-repeat; /* ป้องกันไม่ให้รูปภาพซ้ำ */

    
}

.time-wrapper p {
    font-size: 28px;
}





@keyframes animate1 {
    0% {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
    }
}



@keyframes animate2 {
    0% {
        transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        -moz-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
    }
}



@keyframes animate3 {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        -moz-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        -o-transform: translateX(-100%);
    }
}



@keyframes animate4 {
    0% {
        transform: translateY(100%);
        -webkit-transform: translateY(100%);
        -moz-transform: translateY(100%);
        -ms-transform: translateY(100%);
        -o-transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        -moz-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
    }
}

iframe {
    width: 100%;
    height: 800px;
    border: 1px solid #000000;
}

.changegame{
    width: 200px;
    height: 80px;
    margin-left: 55%;
    margin-top: 200px;
    background-image: url('../images/change_game.png');
    background-size: 100% 100%; /* ปรับขนาดรูปภาพให้เท่ากับขนาดของ div */
    background-position: center; /* จัดตำแหน่งรูปให้อยู่กึ่งกลาง */
    background-repeat: no-repeat; /* ป้องกันไม่ให้รูปภาพซ้ำ */
}
.box-back {
    position: absolute;
    top: 19%;
    left: 50%;
    margin-left: 45px;
    margin-top: 160px;
    font-size: 18px;
}

.circles {
    width: 230px;
    height: 230px;
    line-height: 200px;
    border-radius: 50%;
    font-size: 50px;
    text-align: center;
    background-image: url('../images/time.png');
    background-size: 100% 100%; /* ปรับขนาดรูปภาพให้เท่ากับขนาดของ div */
    background-position: center; /* จัดตำแหน่งรูปให้อยู่กึ่งกลาง */
    background-repeat: no-repeat; /* ป้องกันไม่ให้รูปภาพซ้ำ */
}


 /* a-------*/



 * {  /* Selects all elements */
    margin: 0;  /* Removes default margins */
    padding: 0;  /* Removes default padding */
    box-sizing: border-box;  /* Includes padding and border in element's total width and height */
    text-decoration: none;  /* Removes underline from all text */
    list-style: none;  /* Removes list styles */
}

body{  /* Selects all body elements */
    background-color: #171717;  /* Sets the background color */
    color: #2188e7;  /* Sets the text color */
    cursor: pointer;  /* Changes the cursor to a pointer */
}

.main{  /* Selects elements with class "main" */
    display: table;  /* Changes the display to table */
    height: 100vh;  /* Sets the height to 100% of the viewport height */
    width: 100%;  /* Sets the width to 100% */
}

.myCircle{  /* Selects elements with class "myCircle" */
    display: table-cell;  /* Changes the display to table-cell */
    vertical-align: middle;  /* Centers content vertically */
}   

.mainCircle{  /* Selects elements with class "mainCircle" */
    position: relative;  /* Sets the position to relative */
    top: 0;  /* Aligns the top edge with the top edge of its nearest positioned ancestor */
    height: 300px;  /* Sets the height */
    width: 300px;  /* Sets the width */
    margin: auto;  /* Centers the element */
    /* background-color: red; */  /* Commented out background color */
}

.maincontent{  /* Selects elements with class "maincontent" */
    position: absolute;  /* Sets the position to absolute */
    top: 0;  /* Aligns the top edge with the top edge of its nearest positioned ancestor */
    height: 100%;  /* Sets the height to 100% */
    width: 100%;  /* Sets the width to 100% */
    border-radius: 50%;  /* Rounds the corners */
    /* background-color: red;  Commented out background color */
}

.circlelogin {  /* Selects elements with class "circle" */
    background-color: rgba(0, 0, 0, 0);  /* Sets the background color to transparent */
    opacity: .9;  /* Sets the opacity */
    height: 300px;  /* Sets the height */
    width: 300px;  /* Sets the width */
    margin-top: 0 auto;  /* Centers the element vertically */
    box-shadow: 0 0 75px #2187e7;  /* Adds a shadow */
    border-radius: 300px;  /* Rounds the corners */
    animation: spinPlus 2s infinite ease-in-out;  /* Applies the animation */
}

@keyframes spinPlus {  /* Defines the animation */
    0%{
        transform: scale(1);  /* Starts the animation at normal size */
    } 50% {
        transform: scale(1.11);  /* Scales the element up halfway through the animation */
    } 100% {
        transform: scale(1);  /* Returns the element to normal size at the end of the animation */
    }
}


.circlelogin1 {  /* Selects elements with class "circle1" */
    background-color: rgba(0, 0, 0, 0);  /* Sets the background color to transparent */
    border: 5px solid rgba(0, 183, 229, 0.9);  /* Sets the border color and width */
    margin: 0 auto;  /* Centers the element horizontally */
    position: absolute;  /* Sets the position to absolute */
    top: 25px;  /* Positions the element 25px from the top */
    left: 25px;  /* Positions the element 25px from the left */
    height: 250px;  /* Sets the height */
    width: 250px;  /* Sets the width */
    border-radius: 250px;  /* Rounds the corners */
    border-left: 5px solid rgba(0, 0, 0, 0);  /* Sets the left border color and width */
    border-right: 5px solid rgba(0, 0, 0, 0);  /* Sets the right border color and width */
    box-shadow: 0px 0px 75px #2187e7;  /* Adds a shadow */
    animation: spinPlusOff 5s infinite ease-in-out;  /* Applies the animation */
}

@keyframes spinPlusOff {  /* Defines the animation */
    0%, 50%, 100% {
        transform: rotate(0deg) scale(1.1);  /* Starts and ends the animation with no rotation and slightly scaled up */
    }
    50% {
        transform: rotate(360deg) scale(1);  /* Rotates the element 360 degrees and scales it to normal size halfway through the animation */
    }
    50% {
        transform: rotate(-360deg) scale(1);  /* Rotates the element -360 degrees and scales it to normal size halfway through the animation */
    }
}



/*------------------------------------------------------*/

