html,
body {
  font-family: 'Your Doodle Font', 'Milk Tea', sans-serif;
  color: #0c34a4;
  background-color: black;
  -webkit-touch-callout: none;
}

@font-face {
  font-family: 'Your Doodle Font';
  font-style: normal;
  font-weight: 400;
  src: local('Your Doodle Font'), url('../font/Your Doodle Font.woff') format('woff');
}

@font-face {
  font-family: 'Radio Space';
  font-style: normal;
  font-weight: 400;
  src: local('Radio Space'), url('../font/Radiof.woff') format('woff');
}

@font-face {
  font-family: 'Radio Space Condensed';
  font-style: normal;
  font-weight: 400;
  src: local('Radio Space Condensed'), url('../font/Radiofc.woff') format('woff');
}

@font-face {
  font-family: 'Radio Space Italic';
  font-style: italic;
  font-weight: 400;
  src: local('Radio Space Italic'), url('../font/Radiofi.woff') format('woff');
}

@font-face {
  font-family: 'Radio Space Bold';
  font-style: normal;
  font-weight: 700;
  src: local('Radio Space Bold'), url('../font/Radiofb.woff') format('woff');
}

@font-face {
  font-family: 'Radio Space Bold Italic';
  font-style: italic;
  font-weight: 700;
  src: local('Radio Space Bold Italic'), url('../font/Radiofbi.woff') format('woff');
}

@font-face {
  font-family: 'Milk Tea';
  font-style: normal;
  font-weight: 400;
  src: local('Milk Tea'), url('../font/milk-tea-normal.woff') format('woff');
}

@font-face {
  font-family: 'Baby Doll';
  font-style: normal;
  font-weight: 400;
  src: local('Baby Doll'), url('../font/Baby-Doll.woff') format('woff');
}

@font-face {
  font-family: 'ARLRDBD';
  font-style: normal;
  font-weight: 400;
  src: local('Your Doodle Font'), url('../font/ARLRDBD.woff') format('woff');
}

@font-face {
  font-family: 'FC Friday Medium';
  font-style: normal;
  font-weight: normal;
  src: url('../font/FC-Friday-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'FC Friday Medium ltalic';
  font-style: normal;
  font-weight: normal;
  src: url('../font/FC-Friday-Medium-Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Super Playful';
  font-style: normal;
  font-weight: normal;
  src: url('../font/Super-Playful.ttf') format('truetype');
}

@font-face {
  font-family: 'Zyzol';
  font-style: normal;
  font-weight: normal;
  src: url('../font/Zyzol.woff') format('truetype');
}

@font-face {
  font-family: 'Playful';
  font-style: normal;
  font-weight: normal;
  src: url('../font/Playful.woff') format('truetype');
}

@font-face {
  font-family: 'Dinofans';
  font-style: normal;
  font-weight: normal;
  src: url('../font/Dinofans.woff') format('truetype');
}

#loading-canvas {
  background-color: black;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.black-preload {
  position: fixed;
  top: 0;
  left: 0;
  transform: scaleX(200%) translateX(-20%);
  background: rgb(0, 0, 0);
  background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
  background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  width: 100%;
  height: 100%;
  /* background-position: center;
  background-repeat: no-repeat;
  background-size: cover; */
  animation: cut-right-out 2s;
  animation-delay: 2s;
  animation-fill-mode: forwards;
  z-index: 99999;
}

.media-preload {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 0px;
  height: 0px;
  overflow: hidden;
}

.preload-image {
  top: 40%;
  width: 50%;
  height: 50%;
  object-fit: contain;
  object-position: bottom;
}

.preload-text {
  top: 70%;
  width: 40%;
  height: 10%;
  object-fit: contain;
  object-position: top;
}

.preload-text-progress {
  animation: progress-anim 5s linear;
  top: 70%;
  width: 40%;
  height: 10%;
  object-fit: contain;
  object-position: top;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.full-width {
  width: 100%;
}

.full-height {
  height: 100%;
}

*:focus {
  outline: none;
}

#main-map {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#main-map-content {
  position: absolute;
  left: 0;
}

#main-map-bg {
  width: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: top center;
}

#login-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  animation-fill-mode: forwards;
  max-height: 100vh;
}

#login-bg {
  width: 700px;
  object-position: center;
  object-fit: contain;
  transition: 1s;
}

#login-bg-hand {
  position: absolute;
  width: 700px;
  object-position: center;
  object-fit: contain;
}

#login-form {
  top: 370px;
  width: 320px;
  transition: 1s;
}

#login-button {
  bottom: -40%;
}

#login-button img {
  width: 90px;
}

#login-canvas-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  animation-fill-mode: forwards;
  max-height: 100vh;
}

#login-bg-2 {
  width: 550px;
  object-position: center;
  object-fit: contain;
}

#login-bg-hand-2 {
  position: absolute;
  width: 700px;
  object-position: center;
  object-fit: contain;
}

#login-form-2 {
  top: 280px;
  width: 300px;
}

#login-form-2 .mb-3 {
  margin: 0px !important;
  margin-top: 10px !important;
}

#login-button-2 {
  bottom: -40%;
}

#login-button-2 img {
  width: 90px;
}

.login-bullets {
  text-align: right;
  position: relative;
}

.login-bullets a {
  position: relative;
  width: 100%;
}

.login-bullets img {
  object-fit: cover;
  width: 30px;
  height: 30px;
}

.form-label {
  padding-left: 20px;
  margin-bottom: 0px !important;
}

.light-blue-text {
  color: #3096ff;
  text-decoration: none !important;
  transition: 0.5s;
}

#register-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  animation-fill-mode: forwards;
  max-height: 100vh;
}

#register-bg {
  width: 730px;
  object-position: center;
  object-fit: contain;
  transition: 1s;
}

#register-form {
  top: 370px;
  width: 320px;
  position: relative;
  transition: 1s;
}

#register-button {
  bottom: -25%;
}

#register-button img {
  width: 90px;
}

#register-close-button {
  position: absolute;
  top: -100px;
  right: -125px;
}

#register-close-button img {
  width: 40px;
}

#register-rabbit {
  position: absolute;
  bottom: -120px;
  right: -420px;
  width: 500px;
}

#register-upload-avatar {
  position: absolute;
  top: -170px;
  left: -175px;
}

#register-upload-avatar img {
  width: 170px;
}

#register-upload-browse {
  position: absolute;
  top: -140px;
  left: -160px;
  width: 140px;
  height: 140px;
  opacity: 0;
}

#register-uploaded-avatar {
  position: absolute;
  top: -121px;
  left: -140px;
  width: 101px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
}

#forget-pass-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
  animation-fill-mode: forwards;
  max-height: 100vh;
}

#forget-pass-canvas h1 {
  color: #5093f4;
  padding-left: 20px;
  margin-bottom: 20px;
}

#forget-pass-canvas h6 {
  color: #AAAAAA;
  padding-left: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

#forget-pass-canvas label {
  color: grey;
}

#forgot-pass-lock-icon {
  height: 80px;
  width: 100%;
  object-fit: contain;
}

#forget-pass-bg {
  width: 730px;
  object-position: center;
  object-fit: contain;
  transition: 1s;
}

#forget-pass-form {
  top: 275px;
  width: 450px;
  position: relative;
  transition: 1s;
}

#forget-pass-button {
  bottom: -40%;
}

#forget-pass-back {
  width: 100%;
  text-align: right;
}

#forget-pass-back a {
  color: orange;
  text-decoration: none;
}

#forget-pass-back a:hover {
  color: grey;
}

#forget-pass-button img {
  width: 120px;
}

#forget-pass-close-button {
  position: absolute;
  top: -35px;
  right: -30px;
}

#forget-pass-close-button img {
  width: 40px;
}

#forget-pass-green {
  position: absolute;
  bottom: -120px;
  left: -310px;
  width: 300px;
}

#forget-pass-upload-avatar {
  position: absolute;
  top: -170px;
  left: -175px;
}

#forget-pass-upload-avatar img {
  width: 170px;
}

#forget-pass-upload-browse {
  position: absolute;
  top: -140px;
  left: -160px;
  width: 140px;
  height: 140px;
  opacity: 0;
}

#forget-pass-uploaded-avatar {
  position: absolute;
  top: -121px;
  left: -140px;
  width: 101px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
}

#login-canvas input,
#register-canvas input,
#forget-pass-canvas input {
  border-radius: 50px;
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.2);
  color: #0c34a4;
}

.form-check-input {
  vertical-align: baseline !important;
  border-radius: 4px !important;
  box-shadow: 0px 0px 0px 0px black !important;
  width: 20px;
  height: 20px;
  margin-right: 5px !important;
}

#start-scene-canvas {
  position: absolute;
  top: 45%;
  height: 100vh;
  width: 150vh;
  max-width: 100vw;
  max-height: 1000px;
}

#start-scene-monster-1 {
  position: absolute;
  height: 20%;
  width: 40%;
  min-width: 200px;
  top: 10%;
  left: 5%;
  object-fit: contain;
  animation: start-scene-monster-width-loop-top-15 4s infinite;
}

#start-scene-monster-2 {
  position: absolute;
  height: 35%;
  width: 40%;
  min-width: 200px;
  top: 10%;
  right: 5%;
  object-fit: contain;
  animation: start-scene-monster-width-loop-top 4.5s infinite;
}

#start-scene-monster-3 {
  transform: rotate(-15deg);
  position: absolute;
  height: 35%;
  width: 40%;
  min-width: 200px;
  bottom: 10%;
  left: 5%;
  object-fit: contain;
  animation: start-scene-monster-width-loop-bottom 3.5s infinite;
}

#start-scene-monster-4 {
  transform: rotate(10deg);
  position: absolute;
  height: 35%;
  width: 40%;
  min-width: 200px;
  bottom: 10%;
  right: 5%;
  object-fit: contain;
  animation: start-scene-monster-width-loop-bottom 3s infinite;
}

#start-scene-monster-5 {
  position: absolute;
  height: 50%;
  width: 70%;
  min-width: 200px;
  object-fit: contain;
  animation: start-scene-monster-width-loop-middle 5s infinite;
}

#start-scene-text {
  position: fixed;
  bottom: 0px;
  width: 100%;
  max-width: 300px;
}

#main-town-canvas {
  position: absolute;
  bottom: -200%;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.main-town-content-wrapper {
  position: absolute;
  bottom: 0;
  width: 100vw;
  height: 42.62574595vw;
  max-height: 100vh;
  overflow-x: visible;
  overflow-y: visible;
}

#town-bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
}

.main-town-content {
  position: relative;
  width: 100vw;
  height: 42.62574595vw;
  overflow-y: visible;
}

.main-map-island {
  position: absolute;
}

.main-map-bubble {
  position: absolute;
  width: 9%;
  height: 10%;
  overflow: hidden;
  /* background-color: #FF000088; */
  background-image: url("../img/bubbles/bubble.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #6763e1;
  pointer-events: none;
  animation: main-map-bubble 1s linear infinite;
}

.main-map-bubble p {
  position: absolute;
  top: 39%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.7vw;
  line-height: 1;
}

.ok-button:active {
  content: url("../img/login/ok-btn-pressed.png");
}

.close-button:active {
  content: url("../img/register/close-button-pressed.png");
}

#main-map-ui-top-left {
  color: white;
  position: fixed;
  left: 60px;
  top: 40px;
  transition: 1s;
}

#main-map-ui-top-left-content {
  padding-left: 80px;
  padding-top: 10px;
  width: 300px;
  height: 82.099827882px;
  background: url(../img/main-map/ui/transbar.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

#main-map-ui-top-left-content p {
  padding: 0;
  margin: 0;
}

#main-map-ui-top-left-username-text {
  font-weight: bold;
  font-size: 20px;
}

#main-map-ui-top-left-level-text {
  font-weight: bold;
  font-size: 14px;
  margin-top: -8px !important;
}

#main-map-ui-top-left-travelled-text {
  font-weight: bold;
  font-size: 9px;
  margin-top: -5px !important;
  width: 100%;
}

#main-map-ui-top-left-travelled-progress-text {
  text-align: right;
  font-weight: bold;
  font-size: 9px;
  margin-top: -12.5px !important;
  width: 90%;
}

#main-map-ui-top-left-content-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
}

#main-map-ui-top-left-profile-image {
  position: absolute;
  left: -30px;
  top: -23px;
  width: 110px;
  height: 110px;
}

#main-map-ui-top-left-profile-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
}

#main-map-ui-top-left-expand {
  position: absolute;
  top: 93%;
  left: 30px;
  width: 240px;
  /* max-height: 0; */
  transition: 0.5s;
  opacity: 0;
  background: #00000066;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 20px;
  font-size: 0px;
  border-radius: 0 0 10px 10px;
  color: #FFFFFF00;
}

#main-map-ui-top-left-expand span {
  color: #fffaaa;
}

#main-map-ui-top-left-expand-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
}

#main-map-ui-top-left-progress-bar {
  background: url(../img/main-map/ui/blank-bar.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 20px;
  width: 203.703703704px;
  margin-top: -7px;
}

#main-map-ui-top-left-progress-bar-inner {
  background: url(../img/main-map/ui/rainbow-bar.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 0%;
  height: 100%;
  position: relative;
  transition: width 2s;
}

.slider-pointer {
  position: absolute;
  right: 0;
  bottom: 3px;
  width: 15px;
}

#main-map-ui-top-left-content:hover>#main-map-ui-top-left-expand {
  /* max-height: 500px; */
  opacity: 1;
  font-size: 12px;
  color: #FFFFFF;
  transition: 0.5s;
}

.invalid-form-warning {
  position: absolute;
  color: red;
  font-size: 12px;
  padding-left: 20px;
}

.course-desc-canvas {
  top: 40%;
}

#course-desc-bg {
  width: 700px;
}

#lesson-scroll-list {
  /* background-color: red; */
  position: absolute;
  height: 56.5%;
  width: 36%;
  overflow-y: scroll;
  overflow-x: hidden;
  right: 11%;
  bottom: 7%;
}

.town-lock-info {
  position: absolute;
  height: 56.5%;
  width: 40%;
  overflow-y: hidden;
  overflow-x: hidden;
  right: 10%;
  bottom: 7%;
  transform: scale(0.9);
  display: none;
}

.town-lock-course-detail-button:active {
  content: url("../img/townlock/course-detail-p.png");
}

.town-lock-reviews-button:active {
  content: url("../img/townlock/reviews-p.png");
}

.town-lock-promotion-button:active {
  content: url("../img/townlock/promotion-p.png");
}

.town-lock-register-button:active {
  content: url("../img/townlock/regis-p.png");
}

/* width */
#lesson-scroll-list::-webkit-scrollbar {
  height: 70%;
  width: 15px !important;
  overflow: visible;
}

/* Track */
#lesson-scroll-list::-webkit-scrollbar-track {
  background-color: #f25432;
  border-radius: 20px;
  /* border-color: white; */
  border-color: #fff1ec;
  border-style: solid;
  border-width: 5px;
  /* box-shadow: 0px 0px 0.1px 0.1px #f25432; */
  overflow: visible;
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Handle */
#lesson-scroll-list::-webkit-scrollbar-thumb {
  background-image: url("../img/course-desc-popup/scrollthrumb.png");
  background-position: top;
  background-repeat: no-repeat;
  background-size: contain;
  transform: scale(1.5) !important;
  overflow: visible;
}

#lesson-scroll-list-thumb-overlay {
  position: absolute;
  background-image: url("../img/course-desc-popup/scrollthrumb.png");
  background-position: top;
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1.5);
}

.lesson-item {
  position: relative;
  width: 100%;
  padding: 7.5%;
  margin-left: 5px;
  overflow-x: visible;
  cursor: default;
}

.lesson-item img {
  width: 100%;
}

.lesson-item p {
  font-size: 20px;
  color: #0c4158;
  /* min-width: 100%; */
  left: 55%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  color: white;
  white-space: nowrap;
  overflow: hidden;
}

.progress-bar {
  background-color: #00000000 !important;
}

.item-progress-bar {
  position: absolute !important;
  transform: scale(0.3);
  top: -60px !important;
  left: -75px !important;
}

.course-desc-canvas .lesson-title {
  position: absolute;
  right: 16.25%;
  top: 27.25%;
  width: 34.5%;
  height: 26px;
  overflow: hidden;
  color: white;
}

.course-desc-canvas .lesson-title span {
  position: absolute;
  text-align: center;
  font-size: 25px;
  height: 100%;
  white-space: nowrap;
  -moz-animation: lessonName 5s linear infinite alternate;
  -webkit-animation: lessonName 5s linear infinite alternate;
  animation: lessonName 5s linear infinite alternate;
  left: 50%;
}

.lesson-options-panel {
  position: absolute;
  width: 47%;
  height: 8%;
  bottom: 2%;
  left: 0;
  text-align: center;
}

.lesson-options-panel img {
  height: 100%;
}

.lesson-building-icon-panel {
  position: absolute;
  width: 41%;
  height: 90%;
  left: 13px;
  bottom: 5%;
}

.lesson-building-icon-panel div {
  position: relative;
  width: 100%;
  height: 100%;
}

#lesson-building-icon-pic {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
}

#lesson-building-icon-lock {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 50px;
}

#close-lesson-desc-button {
  position: absolute;
  width: 50px;
  top: 27%;
  right: 9%;
  cursor: pointer;
}

.opacity-mask {
  position: fixed;
  opacity: 0.5;
  background-color: black;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
}

.pointer-cursor {
  cursor: pointer !important;
}

#open-side-menu-button {
  position: fixed;
  height: 7%;
  top: 20px;
  right: 20px;
  cursor: pointer;
  animation: fade-in 3s;
}

#open-side-menu-button:active {
  filter: brightness(0.8);
}

#close-side-menu-button {
  position: absolute;
  height: 6vh;
  top: 2vh;
  right: 39vh;
  cursor: pointer;
}

#close-side-menu-button:active {
  filter: brightness(0.8);
}

#side-menu-bg {
  position: absolute;
  height: 100%;
  right: 0;
  top: 0;
  animation: side-bar-slide-in 0.5s;
}

#side-menu-bg-img {
  height: 100%;
}

#side-menu-mask {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: #00000088;
  top: 0;
  left: 0;
}

.side-menu-list {
  position: absolute;
  width: 80%;
  height: 67%;
  top: 13%;
  right: 2%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* width */
.side-menu-list::-webkit-scrollbar {
  width: 1vh !important;
}

/* Track */
.side-menu-list::-webkit-scrollbar-track {
  background-color: #998ebe;
  border-radius: 10px;
}

/* Handle */
.side-menu-list::-webkit-scrollbar-thumb {
  background-color: #203252;
  border-radius: 10px;
}

.side-menu-color-list {
  width: 95%;
  margin-top: 2vh;
  margin-bottom: 2vh;
  position: relative;
  cursor: pointer;
}

.side-menu-color-list-bg {
  width: 100%;
}

.side-menu-color-list-icon {
  position: absolute;
  height: 65%;
  top: 50%;
  left: 15%;
  transform: translateX(-50%) translateY(-50%);
}

.side-menu-color-list-title {
  position: absolute;
  top: 50%;
  left: 64%;
  font-size: 3.5vh;
  transform: translateX(-50%) translateY(-50%);
  color: white;
  text-align: center;
  white-space: nowrap;
}

.side-menu-color-list-number {
  position: absolute;
  top: 50%;
  left: 27%;
  font-size: 3vh;
  text-align: center;
  transform: translate(-50%, -50%);
  color: white;
  font-family: Radio Space;
}

.side-menu-bottom {
  display: flex;
  position: absolute;
  width: 70%;
  height: 9%;
  bottom: 9%;
  right: 12%;
  gap: 4%;
  text-align: center;
}

#setting-canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
}

.setting-mask {
  background-color: #00000088;
  width: 100%;
  height: 100%;
}

.setting-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  /* height: 80%; */
  height: min(80vw, 80vh);
  max-height: 500px;
}

.setting-bg {
  height: 100%;
}

.setting-content {
  position: absolute;
  width: 50%;
  top: 60%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  white-space: nowrap;
}

.setting-full-width {
  width: 100%;
  cursor: pointer;
  margin-top: 4%;
  margin-bottom: 4%;
  transition: 0.1s;
}

.setting-full-width:active {
  filter: brightness(80%);
}

.setting-half-width {
  width: 50%;
  cursor: pointer;
  margin-top: 4%;
  margin-bottom: 4%;
  transition: 0.1s;
}

.setting-half-width:active {
  filter: brightness(80%);
}

#setting-close-btn {
  transition: 0.1s;
  position: absolute;
  top: 25%;
  right: 18.5%;
  width: 7%;
}

#setting-close-btn:active {
  filter: brightness(80%);
}

#item-canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
}

#reward-canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
}

.item-mask {
  background-color: #00000088;
  width: 100%;
  height: 100%;
}

.item-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  height: 47.5vw;
  max-height: min(80%, 500px);
}

.button-dis {
  position: absolute;
  z-index: 2;
  left: 28%;
  top: 3%;
  height: 15%;
  cursor: pointer;
}

.button-Ex {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 5.5%;
  height: 15%;
  cursor: pointer;
}



.item-page {
  position: absolute;
  left: 60%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;

}

.item-bg {
  height: 100%;
}

.item-bg-page {
  position: absolute;
  bottom: 10%;
  left: 15%;
  height: 81%;
}

.item-content-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 67%;
  height: 53%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
}

.item-content {
  width: 70%;
  text-align: center;
  white-space: nowrap;
  -ms-flex: 3;
  flex: 3;
}

.item-content-slot {
  width: 22%;
  display: inline-block;
  height: 49%;
  padding-top: 1%;
  /* position: relative; */
  position: relative;
}

.item-content-slot-bg {
  /* position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%); */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-slot-lock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-gem-content {
  width: 30%;
  padding-left: 5%;
  text-align: center;
  white-space: nowrap;
  -ms-flex: 1;
  flex: 1;
  transform: translateX(7.5%);
}

.item-gem-content-slot {
  width: 90%;
  /* position: relative; */
  display: block;
  cursor: pointer;
  height: 49%;
  padding: 1%;
}

.item-gem-content-slot-bg {
  /* position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%); */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#item-close-btn {
  position: absolute;
  top: 20%;
  right: -1.65%;
  width: 6%;
  content: url("../img/item-canvas/close-intem.png");
  cursor: pointer;
}

#item-close-btn:active {
  content: url("../img/item-canvas/close-intem (1).png");
}

#main-map-ui-top-left-profile {
  position: absolute;
  width: 83%;
  height: 78%;
  left: 50%;
  bottom: 2.75%;
  transform: translateX(-50%);
  /* background-color: red;
  opacity: 0.5; */
  background-size: cover;
  border-radius: 1000px;
  background-position: center center;
}

.download-reward {
  color: inherit !important;
  text-decoration: none !important;
}

.button-Ex-real {
  z-index: 2;
  position: absolute;
  width: 15%;
  height: 5%;
  left: 50%;
  top: 12%;
  border: none !important;
  background-color: inherit !important;
  border-color: inherit !important;
  cursor: pointer;
}

.top-right-icons {
  width: 4%;
  max-width: 65px;
  position: fixed;
  right: 10px;
  top: 10px;
  animation: top-right-fade-in 3s;
}

.top-right-icons img {
  width: 100%;
  margin-bottom: 10px;
  transition: 0.1s;
  cursor: pointer;
}

.top-right-icons img:active {
  filter: brightness(80%);
}

.icon-Event-lesson {
  position: fixed;
  height: auto;
  top: 20px;
  right: 10px;
  cursor: pointer;
  animation: fade-in 3s;
}

.icon-Event-lesson-content {
  height: 80%
}

.icon-Event-lesson-content img {
  height: 100%;
}

.layout-debug {
  background-color: #ff000088;
}

.hide-slider::-webkit-scrollbar {
  width: 0px !important;
}

.body-rotate {
  transform: rotate(90deg);
  width: 100vh;
  height: 100vw;
}

.preload-icon {
  position: fixed;
  left: 50%;
  top: 50%;
  height: 50%;
  width: 50%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.terms-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #00000088;
  color: #553f0d;
  display: none;
}

.terms-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 90%;
  transform: translate(-50%, -50%);
}

.terms-bg {
  height: 100%;
}

.terms-content {
  position: absolute;
  top: 25%;
  left: 23%;
  right: 30%;
  bottom: 20%;
  overflow-y: auto;
}

/* width */
.terms-content::-webkit-scrollbar {
  width: 7px;
}

/* Track */
.terms-content::-webkit-scrollbar-track {
  background: #e1c789;
  border-radius: 10px;
}

/* Handle */
.terms-content::-webkit-scrollbar-thumb {
  background: #e1c789;
  border-radius: 10px;
  outline: 5px solid #a39674;
  outline-offset: 0px;
}

/* Handle on hover */
.terms-content::-webkit-scrollbar-thumb:hover {
  background: #e1c789;
  border-radius: 10px;
}

.terms-canvas .form-check {
  position: absolute;
  left: 23%;
  right: 30%;
  top: 80%;
  color: #553f0d;
}

.terms-canvas .form-check .terms-check-label {
  color: #553f0d;
  font-size: 2vh;
  transition: 0s;
}

.terms-accept-button {
  position: absolute;
  right: 30%;
  top: 85%;
  height: 5vh;
}

.terms-accept-button:active {
  content: url("../img/terms/accept-button-active.png");
}

.terms-close-button {
  position: absolute;
  top: 8%;
  right: 17%;
  height: 7.5%;
}

.terms-close-button:active {
  content: url("../img/register/close-button-pressed.png");
}

.main-map-balloons-1 {
  animation: main-map-balloons 5s infinite linear;
  pointer-events: none;
}

.main-map-balloons-2 {
  animation: main-map-balloons 6s infinite linear;
  pointer-events: none;
}

.main-map-balloons-3 {
  animation: main-map-balloons 7s infinite linear;
  pointer-events: none;
}

.daily-quiz-bubble-wrapper {
  display: none;
  pointer-events: none;
}

.daily-quiz-bubble {
  position: absolute;
  font-family: "Baby Doll";
  font-size: 0.8vw;
  color: #0D5DCB;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.7);
  line-height: 120%;
}

.daily-quiz-bubble span {
  color: #D42228;
}

.please-wait-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #00000088;
  display: none;
}

.please-wait-canvas img {
  position: fixed;
  bottom: 45%;
  left: 50%;
  width: 150px;
  height: 150px;
  object-fit: contain;
  transform: translateX(-50%);
}

.please-wait-canvas p {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 20px;
}

.vimeo-course-player-reward {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #00000066;
  display: none;
}

.vimeo-course-player-reward .divframe {
  position: relative;
  width: auto;
  height: 50vw;
  left: 45%;
  top: 45%;
  transform: translate(-50%, -50%);
  animation: zoomIn 1s;
  scale: 0.9;
}


.vimeo-course-player-reward .frameImg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.vimeo-course-player-reward .frameVdo {}

.vimeo-course-player-reward .frameImg2 {}

.vimeo-course-player-reward iframe {
  background-color: #191970;
  position: absolute;
  left: 49.6%;
  top: 58%;
  width: 57.5%;
  height: 53.5%;
  transform: translate(-50%, -50%);
}

.video-controls2 {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-controls2.hidden {
  opacity: 0;
  pointer-events: none;
  /* กันไม่ให้คลิกโดนตอนซ่อน */
}

.vimeo-course-player-frame-div {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.course-player-close-button-reward {
  position: absolute;
  top: 86.5%;
  left: 65.8%;
  width: 5%;
  z-index: 1;
  cursor: pointer;
  animation: fade-in 1s;
}

.vimeo-course-player {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #00000066;
  display: none;
}

.vimeo-course-player iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
}

.vimeo-course-picture {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #00000066;
  display: none;
}

.vimeo-course-picture-src {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.course-player-close-button {
  position: fixed;
  top: 20px;
  right: 10px;
  width: 60px;
}

.course-player-close-button:active {
  content: url('../img/course-desc-popup/buttons/close-press.png');
}

.course-player-close-button-reward:active {
  content: url('../img/video-page/close-btn-pressed.png');
}

.debug-object {
  display: none;
}

.autoplay-warning {
  position: fixed;
  background-color: white;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  opacity: 0.7;
  color: #333333;
  z-index: 99999;
  /* animation: fade-in 1s; */
  display: none;
}

.terms-content h4 {
  margin-top: 30px;
}

.terms-content a {
  color: #846315;
  transition: color 0.1s;
}

.terms-content a:hover {
  color: #dda522;
}

.top-right-icons-events {
  width: auto;
  max-width: 90%;
  position: fixed;
  right: -10px;
  top: clamp(10px, 11vw, 200px);
  animation: top-right-fade-in 3s;
}

.champion-cup-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 5.5vw;
  height: 4.5vw;
  margin: 0 auto;
  text-align: center;
}

.champion-cup-icon img {
  width: 70%;
  margin-bottom: 10px;
  transition: 0.1s;
  cursor: pointer;
}

.time-icon-home {
  font-family: 'Aero', sans-serif;
  color: #196f3d;
  position: relative;
  font-size: 0.8vw;
  bottom: -9%;
  width: max-content;
  margin-bottom: 0px !important;
  -webkit-text-stroke: 0.5px black
}


.time-icon-map {
  font-family: 'Aero', sans-serif;
  color: #FFFFFF;
  position: relative;
  font-size: 0.8vw;
  bottom: -9%;
  width: max-content;
  margin-bottom: 0px !important;
  -webkit-text-stroke: 0.5px black
}


#time-icon-EvenExp {
  font-family: 'Aero', sans-serif;
  position: relative;
  font-size: 0.9vw;
  bottom: -9%;
  width: max-content;
  margin-bottom: 0px !important;
}

#time-icon-Even7Day {
  font-family: 'Aero', sans-serif;
  position: relative;
  font-size: 0.9vw;
  bottom: -9%;
  width: max-content;
  margin-bottom: 0px !important;
}

@media screen and (max-width: 650px),
screen and (max-height: 650px) {
  #login-bg {
    width: 500px;
  }

  #login-form {
    top: 270px;
    transform: translate(-52%, -53%) scale(0.7) !important;
  }

  #register-bg {
    width: 500px;
  }

  #register-form {
    top: 265px;
    transform: translate(-52%, -52%) scale(0.7) !important;
  }

  #forget-pass-bg {
    width: 500px;
  }

  #forget-pass-form {
    top: 210px;
    transform: translate(-50%, -55%) scale(0.7) !important;
  }

  #main-map-ui-top-left {
    transform: translate(-15%, -20%) scale(0.8);
  }
}

@keyframes popups-in {
  0% {
    transform: scale(0) translate(-50%, -50%);
  }

  70% {
    transform: scale(1.25) translate(-50%, -50%);
  }

  100% {
    transform: scale(1) translate(-50%, -50%);
  }
}

@keyframes popups-out {
  100% {
    transform: scale(0) translate(-50%, -50%);
  }

  25% {
    transform: scale(1.25) translate(-50%, -50%);
  }

  0% {
    transform: scale(1) translate(-50%, -50%);
  }
}

@keyframes progress-anim {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  100% {
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes start-scene-monster-width-loop-top {
  0% {
    top: 10%;
  }

  50% {
    top: 12.5%;
  }

  100% {
    top: 10%;
  }
}

@keyframes start-scene-monster-width-loop-top-15 {
  0% {
    top: 15%;
  }

  50% {
    top: 17.5%;
  }

  100% {
    top: 15%;
  }
}

@keyframes start-scene-monster-width-loop-middle {
  0% {
    top: 50%;
  }

  50% {
    top: 48.5%;
  }

  100% {
    top: 50%;
  }
}

@keyframes start-scene-monster-width-loop-bottom {
  0% {
    bottom: 10%;
  }

  50% {
    bottom: 12.5%;
  }

  100% {
    bottom: 10%;
  }
}

/* Move it (define the animation) */
@-moz-keyframes lessonName {
  0% {
    -moz-transform: translateX(0%);
  }

  100% {
    -moz-transform: translateX(-100%);
  }
}

@-webkit-keyframes lessonName {
  0% {
    -webkit-transform: translateX(0%);
  }

  100% {
    -webkit-transform: translateX(-100%);
  }
}

@keyframes lessonName {
  0% {
    -moz-transform: translateX(0%);
    /* Firefox bug fix */
    -webkit-transform: translateX(0%);
    /* Firefox bug fix */
    transform: translateX(0%);
  }

  100% {
    -moz-transform: translateX(-100%);
    /* Firefox bug fix */
    -webkit-transform: translateX(-100%);
    /* Firefox bug fix */
    transform: translateX(-100%);
  }
}

@keyframes side-bar-slide-in {
  0% {
    right: -100%;
  }

  100% {
    right: 0;
  }
}

@keyframes side-bar-slide-out {
  0% {
    right: 0%;
  }

  100% {
    right: -100;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes top-right-fade-in {
  0% {
    opacity: 0;
  }

  60% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes cross-in {
  0% {
    opacity: 0;
    transform: scale(0);
    clip-path: polygon(100% 0, 0 0, 0 0, 0 0, 0 100%, 0 100%, 0 100%, 100% 100%, 100% 100%, 100% 100%, 100% 0, 100% 0);
  }

  40% {
    transform: scale(1.5);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
  }

  100% {
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 100%, 100% 100%, 100% 100%, 100% 100%, 100% 0, 100% 0, 100% 0, 0 0, 0 0);
  }
}

@keyframes circle-in {
  0% {
    opacity: 0;
    transform: scale(0);
    clip-path: circle(10% at 50% 50%);
  }

  40% {
    opacity: 1;
    transform: scale(2);
    clip-path: circle(10% at 50% 50%);
  }

  100% {
    clip-path: circle(100% at 50% 50%);
  }
}

@keyframes cut-in {
  0% {
    transform: scaleX(200%) translateX(100%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }

  100% {
    transform: scaleX(200%) translateX(-20%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }
}

@keyframes cut-out {
  0% {
    transform: scaleX(200%) translateX(20%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }

  100% {
    transform: scaleX(200%) translateX(-100%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }
}

@keyframes cut-right-out {
  0% {
    transform: scaleX(200%) translateX(-20%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }

  100% {
    transform: scaleX(200%) translateX(100%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }
}

@keyframes cut-right-in {
  0% {
    transform: scaleX(200%) translateX(-100%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }

  100% {
    transform: scaleX(200%) translateX(20%);
    background: rgb(0, 0, 0);
    background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=1);
  }
}

@keyframes main-map-balloons {
  0% {
    transform: translateY(0%);
  }

  50% {
    transform: translateY(-35%);
  }

  100% {
    transform: translateY(0%);
  }
}

@keyframes main-map-bubble {
  0% {
    transform: translateY(0%) translateX(10%);
  }

  50% {
    transform: translateY(-5%) translateX(10%);
  }

  100% {
    transform: translateY(0%) translateX(10%);
  }
}

.appear-after-1-sec {
  animation: appear 1s;
}

.appear-after-2-sec {
  animation: appear 2s;
}

.appear-after-3-sec {
  animation: appear 3s;
}

@keyframes appear {
  0% {
    opacity: 0;
  }

  99% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media (max-width: 1920px) {

  .champion-cup-icon {
    width: 5.5vw;
    height: 5vw;
  }

  .champion-cup-icon img {
    width: 80%;
  }

  .top-right-icons-events {
    right: 0px;
  }


}

@media (max-width: 1600px) {
  .champion-cup-icon {
    width: 6vw;
    height: 6vw;
  }

  .champion-cup-icon img {
    width: 90%;
  }

  .top-right-icons-events {
    right: 0px;
  }
}