@font-face {
  font-family: "DB Sai Krok X";
  src: url("../fonts/DB SaiKrok X v3.2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    font-family: 'DB Sai Krok X', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.main {
    display: flex;
    flex-direction: column;;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: url("../images/ImageTargetFinal.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.glass {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.ads {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    /*background-image: url("../images/NEX_sale_04.png");*/
    /*background-image: url("../images/NEX_ads_07.png");*/
    /*background-image: url("../images/NEX_ads_08.png");*/
    background-image: url("../images/ads.jpg");
    /*background-size: contain;*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 4;
    /*cursor: pointer;*/
}

.start-button {
    display: flex;
    position: absolute;
    bottom: 60px;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.start-button div {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 0px 35px;
    background: linear-gradient(#2867a3, #5488af);
    align-items: center;
    justify-content: center;
    border: 3px solid #5bb4e7;
    border-radius: 10px;
    box-shadow: 0 0 10px #1d97ff;
    cursor: pointer;
}

.start-button div:hover {
    border: 3px solid #86e4fb;
}

.start-button span {
    font-size: 35px;
}

.start-button img {
    width: 10px;
    height: 15px;
    padding: 0px;
    filter: none;
}

.popup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 80%;
    max-width: 512px;
    padding: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: rgba(107, 156, 255, 0.35);
    border: 2px solid #6b9cff;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.popup img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(#3f5464 2px 2px 0px);
    padding-bottom: 15px;
}

.title {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.title img {
    width: 50px;
    height: 50px;
    padding: 0px;
    filter: drop-shadow(#3f5464 2px 2px 0px);
}

.title span {
    font-size: 80px;
    text-shadow: #3f5464 2px 2px 0px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.content-element {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    color: #fff;
    align-items: top;
    justify-content: start;
}

.content-element img {
    width: 25px;
    height: 25px;
    padding: 0px;
    filter: none;
}

.content-element span {
    font-size: 30px;
}

.popup-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.popup-bottom div {
    display: flex;
    flex-direction: row;
    gap: 5px;
    padding: 0px 35px;
    background: linear-gradient(#2867a3, #5488af);
    align-items: center;
    justify-content: center;
    border: 3px solid #5bb4e7;
    border-radius: 10px;
    box-shadow: 0 0 10px #1d97ff;
    cursor: pointer;
}

.popup-bottom div:hover {
    border: 3px solid #86e4fb;
}

.popup-bottom span {
    font-size: 35px;
}

.popup-bottom img {
    width: 10px;
    height: 15px;
    padding: 0px;
    filter: none;
}

svg.progress-ring {
    width: 100%;     /* กินเต็ม container */
    height: 100%;
    transform: rotate(-90deg);
    display: block;  /* กำจัดช่องว่างล่าง */
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
    transform-origin: 50% 50%;
    fill: transparent;
    stroke: #86ccfb;
    stroke-width: 1;
    filter: url(#glow);
}

svg.progress-ring-mini {
    width: 100%;     /* กินเต็ม container */
    height: 100%;
    transform: rotate(-90deg);
    display: block;  /* กำจัดช่องว่างล่าง */
}

.progress-ring__circle_mini {
    transition: stroke-dashoffset 1s linear;
    transform-origin: 50% 50%;
    fill: transparent;
    stroke: #00aaff;
    stroke-width: 4;
    filter: url(#glow2);
}

/*.progress-bg {
    stroke: #e0e0e0;
    filter: none;
}*/

.start-timer {
    display: flex;
    width: 65%;
    max-width: 512px;
    aspect-ratio: 1 / 1;
    /*background-color: rgba(107, 156, 255, 0.35);
    border: 2px solid #6bb0ff;*/
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.start-timer div {
    position: absolute;
    width: 110%;
    max-width: 550px;
    aspect-ratio: 1 / 1;
    /*background-image: url("../images/mainUI_countdown_002.png");
    background-size: contain;*/
    /*border: 3px solid #96c7ff;*/
    border-radius: 50%;
    /*box-shadow: inset 0 0 20px #1990ff, 0 0 20px #1990ff, inset 0 0 10px #1990ff, 0 0 10px #1990ff, inset 0 0 10px #1990ff, 0 0 10px #1990ff;*/
}

.start-timer img {
    position: absolute;
    /*height: 9%;*/
    width: 100%;
    max-width: 512px;
    aspect-ratio: 1 / 1;
}

.start-timer span {
    position: absolute;
    font-size: 300px;
    color: #fff;
}

.timeout-popup {
    display: flex;
    width: 70%;
    /*max-width: 512px;*/
    aspect-ratio: 1 / 1;
    /*background-color: rgba(107, 156, 255, 0.35);*/
    /*background-image: url("../images/mainUI_timeout_001.png");
    background-size: contain;*/
    /*border: 2px solid #6bb0ff;*/
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.timeout-popup img {
    position: absolute;
    /*height: 9%;*/
    width: 100%;
    max-width: 512px;
    aspect-ratio: 1 / 1;
    opacity: 0.5;
}

.timeout-popup div {
    position: absolute;
    width: 78%;
    /*max-width: 550px;*/
    aspect-ratio: 1 / 1;
    /*border: 3px solid #96c7ff;*/
    border-radius: 50%;
    /*box-shadow: inset 0 0 20px #1990ff, 0 0 20px #1990ff, inset 0 0 10px #1990ff, 0 0 10px #1990ff, inset 0 0 10px #1990ff, 0 0 10px #1990ff;*/
}

.timeout-popup span {
    position: absolute;
    padding: 90px;
    padding-top: 100px;
    font-size: 130px;
    text-align: center;
    line-height: 90px;
    color: #fff;
}

.game-ui {
    width: 100%;
    height: 100%;
    z-index: 3;
}

.start-timer-mini {
    display: flex;
    position: absolute;
    height: 12%;
    max-height: 124px;
    aspect-ratio: 1 / 1;
    top: 50px;
    left: 30px;
    /*background-color: rgba(107, 156, 255, 0.35);*/
    /*background-image: url("../images/icons/mainUI_gameplay_time_001.png");
    background-size: contain;*/
    /*border: 2px solid #6bb0ff;*/
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 3;
}

.start-timer-mini div {
    display: flex;
    position: absolute;
    width: 112%;
    aspect-ratio: 1 / 1;
    /*border: 3px solid #96c7ff;*/
    border-radius: 50%;
    /*background-image: url("../images/icons/mainUI_gameplay_time_002.png");
    background-size: contain;*/
    /*box-shadow: inset 0 0 10px #1990ff, 0 0 10px #1990ff, inset 0 0 5px #1990ff, 0 0 5px #1990ff, inset 0 0 5px #1990ff, 0 0 5px #1990ff;*/
    align-items: center;
    justify-content: center;
}

.start-timer-mini img {
    position: absolute;
    /*height: 9%;*/
    width: 100%;
    height: 100%;
    /*aspect-ratio: 1 / 1;*/
}

.start-timer-mini span {
    position: absolute;
    font-size: 60;
    padding-bottom: 10px;
}

.start-timer-mini sub {
    font-size: 18px;
    padding-top: 40px;
    z-index: 3;
}

.cursor-center {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.cursor-center img {
    height: 45%;
    /*aspect-ratio: 1 / 1;*/
}

.game-ui-bottom {
    display: flex;
    flex-direction: row;
    gap: 2px;
    position: absolute;
    bottom: 40px;
    left: 0px;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.game-ui-bottom div {
    display: flex;
    width: 17%;
    max-width: 124px;
    aspect-ratio: 1 / 1;
    /*background: linear-gradient(rgba(40,103,163, 0.5), rgba(84,136,175, 0.5));*/
    background: linear-gradient(rgba(32, 51, 104, 0.5), rgba(13, 110, 179, 0.5));
    border: 2px solid #86e4fb;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
}

.game-ui-bottom div img {
    width: 80%;
    height: 80%;
}

.game-button {
    display: flex;;
    position: absolute;
    bottom: 150px;
    right: 15px;
    width: 15%;
    max-width: 98px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(rgba(40,103,163, 0.5), rgba(84,136,175, 0.5));
    border: 2px solid #86e4fb;
    align-items: center;;
    justify-content: center;;
    border-radius: 50%;
    cursor: pointer;
}

.game-button img {
    width: 70%;
    aspect-ratio: 1 / 1;
    z-index: 3;
}

.game-button div {
    position: absolute;
    width: 110%;
    height: 110%;
    aspect-ratio: 1 / 1;
    border: 3px solid #00ff55;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.game-button:hover {
    border: 2px solid #c6f4ff;
}

.game-button .alert {
    position: absolute;
    width: 120%;
    height: 120%;
    aspect-ratio: 1 / 1;
    border: 3px solid #5bcbe7;
    box-shadow: 0 0 10px #1db7ff, inset 0 0 10px #1db7ff;
    border-radius: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    animation: alertBlink 0.5s ease-in-out infinite;
}

@keyframes alertBlink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #1df7ff, inset 0 0 10px #1df7ff;
    }
    50% {
        opacity: 0.2;
        box-shadow: 0 0 20px #1dddff, inset 0 0 20px #1dddff;
    }
}

#container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
	height: 100vh;
	overflow: hidden;
    z-index: 1;
}

.alpha-disabled {
    opacity: 0.5;
}

.hidden {
    display: none;
}