:root {
  color-scheme: light only;
  --black: #252525;
  --grey: #707070;
  --white: #fff7ee;
  --active: #e0b879;
  --highlight: #b18f5a;
  --font: "Noto Sans SC", sans-serif;
  --font2: "DM Sans", sans-serif;
  --font3: "Noto Serif SC", serif;
  --navheight: 70px;
  --txt_l: 20px;
  --txt_heading: 24px;
  --kvwidth: 1600px;
}

@media only screen and (max-width: 768px) {
  :root {
    --navheight: 65px;
  } 
  .p50_v{
    padding: 50px 0;
  }
}
/*---------------------------------------
   Animation
-----------------------------------------*/
@keyframes fadein{
	from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes fadein_top{
	from {transform: translateY(300px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
@keyframes fadein_bottom{
	from {transform: translateY(-300px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
@keyframes fadein_left{
	from {transform: translateX(-500px); opacity: 0;}
    to {transform: translateX(0); opacity: 1;}
}
@keyframes fadein_right{
	from {transform: translateX(500px); opacity: 0;}
    to {transform: translateX(0); opacity: 1;}
}
@keyframes popin{
  0% {transform: scale(2); opacity: 0;}
  100% {transform: scale(1); opacity: 1;}
}
@keyframes popout{
  0% {transform: scale(0); opacity: 0;}
  100% {transform: scale(1); opacity: 1;}
}
@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg);}
  100% { transform: translate(-50%, -50%) rotate(360deg);}
}
@keyframes toleft{
  0% {transform: translateX(0);}
  100% {transform: translateX(-3000px);}
}

/*---------------------------------------
   Normalize    
-----------------------------------------*/
body{
  position: relative;
  width: 100%;
  margin: 0px;
  padding: 0px;
  color: var(--black);
  font-size:  var(--txt_s);
  font-family: var(--font);
  font-weight: 500;
  text-wrap: pretty;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--black);
  background: #0e0e0e;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.maincontainer{
  width: 1440px;
  max-width: 100vw;
  height: 100%;
  margin: auto;
  z-index: 15;
}

p, li {
  font-size: var(--txt_body);
  line-height: calc(var(--txt_body) + 5px);
  font-weight: 400;
}

ol{
  padding-left: 18px;
}

button, a{
  pointer-events: all;
  cursor: pointer;
}

.divider.verti{
  margin: 0;
  width: 0;
  height: 100px;
  border-left: 1.5px solid white;
}

.logo{
  width: 175px;
  max-width: 12%;
  aspect-ratio: 175/140;
  background: url(../img/logo.png) top center no-repeat;
  background-size: contain;
}

@media screen and (max-width: 768px) {
  .draggable-scroll{
    cursor: grab;
  }
  .logo{
    max-width: 15vw;
    z-index: 9999;
  }
}


.popup_wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 999;
}

.popup_container{
  position: relative;
  width: 750px;
  max-width: 87vw;
  height: 100%;
  max-height: 60vh;
  animation: fadein_top 1s ease;
}

/*---------------------------------------
   Scroll Effect       
-----------------------------------------*/
::-webkit-scrollbar {
  width: 6px;
  height: 3.5px;
}
::-webkit-scrollbar-track {
  opacity: 0;
  /* background:  rgba(226, 226, 226,.5); */
}
::-webkit-scrollbar-thumb {
  background: rgb(219, 210, 166);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
}

body.modal-open {
  overflow-y: scroll; /* Ensures the scrollbar stays visible */
}

/*---------------------------------------
   NAVBAR
-----------------------------------------*/
.navigation{
  padding: 15px 2%;
  top: 0;
  position: fixed;
  z-index: 9999;
}

#navbarNav{
  position: relative;
  max-height: fit-content;
  width: 100vw;
}

.navbar-toggler{
  position: absolute;
  right: 2%;
  top: 10%;
  aspect-ratio: 1/1;
  width: 15%;
  min-width: 40px;
  max-width: 50px;
  background: url(../img/btn_navclose.png) no-repeat center;
  background-size: contain;
  z-index: 9999;
  opacity: .5;
  filter: saturate(0) brightness(10);
  /* filter: saturate(0.5) brightness(3) hue-rotate(178deg); */
}
.navbar-toggler:hover{
  opacity: 1;
  /* filter: saturate(0) brightness(10); */
}
.navbar-toggler.collapsed{
  background: url(../img/btn_navopen.png) no-repeat center;
  background-size: contain;
}

.navbutton_wrapper{
  position: relative;
  max-height: fit-content;
  width: 100%;
  gap: .5vw;
  margin-top: .5%;
}

.btn_nav {
  min-width: 35px;
  width: 50px;
  max-width: 10vw;
  aspect-ratio: 1/1;
  filter: saturate(.5);
}


.btn_nav.home{
  background: url(../img/btn_home.png) no-repeat;
  background-size: contain;
}
.btn_nav.lang{
  background: url(../img/btn_lang.png) no-repeat;
  background-size: contain;
}
.btn_nav.download{
  background: url(../img/btn_dl.png) no-repeat;
  background-size: contain;
} 
.btn_nav:hover{
  filter: brightness(1.8);
}

.btn_fb:hover{
  filter: brightness(1.2);
}

/* @media only screen and (max-width: 768px) {
  .navbar-expand-md .navbar-toggler {
    display: unset !important;
  }
  #navbarNav {
    position: fixed;
    top: 0;
    right: -200px;
    margin: 0;
    aspect-ratio: unset;
    width: 0;
    min-height: 100vh;
    max-height: 100vh;
    gap: 15px;
    padding: 80px 20px;
    background-color: rgba(25, 30, 50, .9);
    background: linear-gradient(to top, #000000, var(--black));
    transition: all 0.5s ease-in-out;
    overflow-y: scroll;
    z-index: 999;
    padding-top: 32%;
  }
  #navbarNav.nav-open {
    right: 0;
    width: 100vw;
  }
  .navbutton_wrapper {
    max-width: fit-content;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    min-height: fit-content;
    padding: 0 15px;
  }
  .btn_nav{
    --txt_s: 20px;
    min-width: 180px;
    min-height: 30px;
    padding: 10px 25px;
    font-size: var(--txt_s);
    line-height: var(--txt_s);
    text-wrap: nowrap;
    border-radius: 50px;
  }
  .btn_nav span{
    --txt_s: 12px;
    font-size: var(--txt_s);
    line-height: var(--txt_s);
    letter-spacing: 5px;
    text-indent: 5px;
  }
} */


/*---------------------------------------
   VIDEO MODAL
-----------------------------------------*/
/* Overlay */
.videoModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 24px;
}
.videoModal.is-open { display: flex; }

/* Dialog */
.videoModal_dialog {
  width: min(100%, 960px);
  filter: drop-shadow( 0 4px 8px rgba(0, 0, 0, 0.5));
  position: relative;
}

.btn_closeVideo.btn_close {
  top: -80px !important;
  left: 50%;
  transform: scale(1) translateX(-50%) !important;
}

.videoModal_wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}
.videoModal_wrapper > * {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}


/*---------------------------------------
   KV
-----------------------------------------*/
.rsp_mobile{
  max-width: 1920px;
  height: fit-content;
}
@media only screen and (max-width: 768px) {
  .rsp_mobile{
    max-width: 100vw;
    height: fit-content;
    aspect-ratio:  unset;
  }
}

#KV{
  position: relative;
  width: 100vw;
  max-width: 1920px;
  aspect-ratio:  1920/910;
  /* background: url(../img/kv_bg.png); */
  background-size: cover;
  justify-self: center;
}

#KV::after, #KV::before{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  background: url(../img/bg_btm.png) bottom center no-repeat;
  background-size: contain;
  animation: fadein_top ease 1s backwards;
}
#KV::after{
  z-index: 5;
  background: url(../img/bg_btm2.png) bottom center no-repeat;
  background-size: contain;
}
#KV::before{
  animation-delay: 350ms;
}

@keyframes dropin{
  0% {transform: translateY(-300px) scaleX(.85) scaleY(1.05); opacity: 0;}
	40% {transform: translateY(-300px) scaleX(.85) scaleY(1.05); opacity: 0;}
  60% {transform: translateY(0) scaleX(1.05) scaleY(.85); opacity: 1;}
  100% {transform: translateY(0) scaleX(1) scaleY(1); opacity: 1;}
}
@keyframes shake{
  0% {transform: translateY(0) rotate(0deg);}
  3% {transform: translateY(-20px) rotate(5deg);}
	6% {transform: translateY(-25px) rotate(-6deg);}
  9% {transform: translateY(-20px) rotate(4deg);}
  11% {transform: translateY(-20px) rotate(-2deg);}
  14% {transform: translateY(0) rotate(0deg);}
  100% {transform: translateY(0) rotate(0deg);}
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: luminosity;
  opacity: .35;
  filter: grayscale(1) contrast(1.5);
}

.charwrapper{
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100%;
  z-index: 99;
}

.slogan.hidden {
  position: absolute;
  width: 40%;
  max-width: 810px;
  aspect-ratio: 810 / 402;
  right: 2%;
  bottom: 0;
  transform-origin: center;
  transform: scale(2);
  background: url(../img/slogan_cn.png) center no-repeat;
  background-size: contain;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
}
#en .slogan.hidden{
  background: url(../img/slogan_en.png) center no-repeat;
  background-size: contain;
}
.slogan.show{
  transform: scale(1);
  opacity: 1;
  transition: all .5s .75s;
}
@keyframes popping{
  0% {transform: scale(1)}
  100% { transform: scale(.95)}
}

@keyframes char{
  0% {transform: scale(.3); opacity: 0;}
  50% {transform: scale(1.1); opacity: 1;}
  100% {transform: scale(1); opacity: 1;}
}
@keyframes charfloat{
  0% {transform: translateY(0);}
  50% {transform: translateY(15px);}
  100% {transform: translateY(0);}
}
@keyframes ctapop{
  0%, 100% {transform: scale(1) rotate(0) ;}
  50% {transform: scale(1.1) rotate(-5deg);}
}
#char{
  content: "";
  position: absolute;
  right: 55%;
  top: 6%;
  width: 50vw;
  max-width: 1043px;
  aspect-ratio: 1043 / 1271;
  background: url(../img/char.png) top no-repeat;
  background-size: contain;
  opacity: 0;
  z-index: 50;
  transform-origin: bottom left;
  pointer-events: none;
  animation: char 1s ease forwards .5s, charfloat 3s ease-in-out infinite alternate 1.5s;
}

.btn_cta{
  position: absolute;
  width: 10%;
  max-width: 183px;
  aspect-ratio: 183/216;
  top: 33%;
  left: 55%;
  background: url(../img/btn_cta.png) no-repeat;
  background-size: contain;
  opacity: 1;
  filter: drop-shadow(0 0 20px, rgba(255,255,255,.5));
  animation: char 1s ease backwards .55s, ctapop 1s infinite alternate 1.55s;
  z-index: 999;
}
.btn_cta:hover{
  opacity: 1;
  filter: brightness(1.5);
}
.btn_cta::after{
  content: "";
  color: white;
  text-align: center;
  position: absolute;
  max-width: 100%;
  width: 124px;
  aspect-ratio: 124/63;
  transform-origin: center bottom;
  bottom: 80%;
  left: 80%;
  transform: rotate(20deg);
  background: url(../img/chatbg.png) center no-repeat;
  background-size: contain;
}

.btn_download{
  position: absolute;
  width: 20%;
  max-width: 481px;
  aspect-ratio: 481/131;
  bottom: 5%;
  left: 5%;
  background: url(../img/btn_download.png) no-repeat;
  background-size: contain;
  opacity: 1;
  filter: drop-shadow(0 0 20px, rgba(255,255,255,.5));
  animation: popping .5s infinite alternate;
  z-index: 999;
}
.btn_download:hover{
  opacity: 1;
  filter: brightness(1.5);
}
#en .btn_cta::after{
  background: url(../img/chatbg_en.png) center no-repeat;
  background-size: contain;
}
#en .btn_download{
  background: url(../img/btn_download_en.png) no-repeat;
  background-size: contain;
}
.btn_register{
  width: 440px;
  max-width: 27vw;
  aspect-ratio: 440/136;
  background: url(../img/btn_register.png) no-repeat;
  background-size: contain;
  opacity: 1;
  animation: popping 1s infinite alternate;
  filter: saturate(.85);
  transition: transform .2s ease, filter .2s ease;
}
#en .btn_register{
  background: url(../img/btn_register_en.png) no-repeat;
  background-size: contain;
}
.btn_register:hover{
  transform: scale(.95);
  filter: unset;
}

.btn_play {
  /* position: relative; */
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 5vw;
  max-width: 80px;
  aspect-ratio: 1 / 1;
  opacity: .5;
  background: url(../img/btn_play.png) no-repeat;
  background-size: contain;
  z-index: 100;
}
.btn_play::after {
  content: "";
  width: 120%;
  height: 120%;
  aspect-ratio: 1/1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px dashed white ;
  animation: rotate linear 12s infinite;
}
.btn_play:hover{
  opacity: 1;
  transform: translate(-50%, -50%) scale(.95);
}


@media only screen and (max-width: 768px) {
  .bg-video {
    /* display: none; */
    inset: unset;
    width: unset;
    right: -40vw;
  }
  .randomtext {
    padding: 2vw 3vw;
    font-size: 1.55vw;
  }
  .winBtn{
    max-width: 24vw;
  }
  #KV{
    aspect-ratio: 780 / 1450;
    gap: 2vw !important;
    /* background: url(../img/kv_m.jpg) center no-repeat; */
    background-size: cover;
  }
  #KV::after, #KV::before {
    max-width: 150%;
  }
  .slogan.hidden {
    width: 90%;
  }
  #char{
    width: 150vw;
    right: 40%;
    top: 20%;
  }
  .btn_cta{
    position: absolute;
    top: 40%;
    left: 62%;
    width: 30%;
  }
  .btn_download {
    width: 50%;
    bottom: 25%;
    left: 25%;
  }
  .btn_cta::after{
    bottom: 90%;
    left: 10%;
    transform: rotate(-20deg);
  }
  .btn_play {
    width: 15vw;
  }
}


/*---------------------------------------
   Button
-----------------------------------------*/
.buttonwrapper{
  max-width: var(--kvwidth);
  width: 82vw;
}

.button_wrapper{
  position: absolute;
  top: 50%;
  z-index: 99;
  color: white;
}

.btn_close{
  width: 60px;
  max-width: 15%;
  aspect-ratio: 1/1;
  animation: popout .5s forwards;
  z-index: 99;
  filter: drop-shadow(0 0 6px rgb(255, 161, 107));
  position: absolute;
  right: -3%;
  top: 2%;
  display: none;
  background: url(../img/btn_close.png) no-repeat;
  background-size: contain;
}

.active .btn_close, .videoModal .btn_close, .btn_closePopup{
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.btn_close:hover{
  filter: drop-shadow(0 0 6px rgb(218, 100, 21));
}

.btn_more{
  max-width: 30%;
  width: 356px;
  aspect-ratio: 356/107;
  background: url(../img/btn_more.png) no-repeat;
  background-size: contain;
  filter: saturate(.5);
  transition: transform .2s ease, filter .2s ease;
}
#en .btn_more{
  background: url(../img/btn_more_en.png) no-repeat;
  background-size: contain;
}
.btn_more:hover{
  transform: scale(.95);
  filter: unset;
}

.ctawrapper{
  /* position: absolute; */
  /* margin-top: 2vw;*/
  z-index: 10; 
  bottom: 0;
  left: 0;
  height: 100%;
  padding: 2vw 3.5vw;
  pointer-events: none;
  animation: fadein 1s ease backwards;
}
.ctawrapper, .titlewrapper{
  color: white;
  gap: .5vw;
}
.ctawrapper h1, .titlewrapper h1{
  font-size: 2.5vw;
  line-height: 2.5vw;
}
.ctawrapper p, .titlewrapper p{
  font-size: .95vw;
  letter-spacing: .5vw; 
}
.titlewrapper.j_ctr p{
  text-align: center;
  text-indent: .5vw;
}
#en .ctawrapper p, #en .titlewrapper p{
  letter-spacing: unset !important;
  text-indent: unset !important;
}

.maintitle{
  max-width: 50vw;
  height: fit-content;
  margin-left: 5%;
  margin-bottom: -10%;
}
#en .maintitle{
  margin-bottom: -8%;
}

.title{
  max-width: 30vw;
  height: fit-content;
}

@media only screen and (max-width: 768px) {
  .button_wrapper{
    bottom: 17%;
    z-index: 999;
    flex-direction: row-reverse;
  }
  #en .button_wrapper{
    bottom: 12%;
  }
  .btn_dl {
    width: 50vw;
  }
  .btn_more, .btn_register{
    max-width: 80vw;
  }
  .ctawrapper{
    margin-top: 80px;
    padding-bottom: 50px;
  }
  .titlewrapper{
    color: white;
    gap: 1.5vw;
    text-align: center;
    justify-content: flex-start !important;
    align-items: center;
  }
  .ctawrapper h1, .titlewrapper h1{
    font-size: 9vw;
    line-height: 9vw;
  }
  .ctawrapper p, .titlewrapper p{
    font-size: 3vw; 
    letter-spacing: 3vw; 
  }
  .titlewrapper.j_ctr p{
    text-align: center;
    text-indent: 3vw;
  }
  .maintitle{
    max-width: 90vw;
  }
  .title{
    max-width: 90vw;
    height: fit-content;
  }
  #en .title{
    max-height: 9vw;
  }
}

/*---------------------------------------
   Guide
-----------------------------------------*/
#guide{
  background: url(../img/bg-s1.png) center no-repeat;
  background-size: cover;
}

.guide_wrapper{
  width: fit-content;
  max-width: fit-content;
  padding: 0 25px;
}

.guide_item{
  width: 100%;
  max-width: calc((100% / 4) - (var(--p_s) *3));
}

.guide_item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/*---------------------------------------
   Event
-----------------------------------------*/
#event{
  background: url(../img/bg-s2.png) center no-repeat;
  background-size: cover;
}
.event_wrapper{
  width: fit-content;
  max-width: fit-content;
  padding: 0 25px;
}
.event_item{
  width: 100%;
  max-width: calc((100% / 3) - (var(--p_s) *2));
}

.event_item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media only screen and (max-width: 768px) {
  .maincontainer:has(.guide_wrapper), .maincontainer:has(.event_wrapper){
    overflow-x: scroll;
    justify-content: flex-start !important;
  }
  .maincontainer::-webkit-scrollbar {
    display: none;
  }
  .guide_item, .event_item{
    width: 250px;
    max-width: 100%;
  }
}


/*---------------------------------------
   Font
-----------------------------------------*/
.tab-pane h2:not(.tlttxt){
  color: white;
  font-size: calc(var(--txt_l) -2px);
}
h2.tlttxt{
  --txt_l: 30px;
  --tltcolor:#1681b6;
  font-family: var(--font3);
  color: var(--black);
  padding: 9px 5px;
  border-top: var(--black) 1px solid;
  border-bottom: var(--black) 1px solid;
  width: fit-content;
  font-weight: 900;
}

p{
  font-size: 16px;
}

.txt_highlight, .red{
  color: #ff2b44 !important;
}

.divider{
  border-bottom: 1px dotted var(--highlight);
}

table{
  width: 99.5%;
  border-spacing: 1px;
  color: #3c414a;
  margin: 1rem auto 1.5rem;
}
table tr:first-child td{
  padding: .8rem .5rem;
  background-color: var(--highlight);
  text-align: center;
  font-weight: 400;
  color: #fbf7e8;
}
table tr:nth-child(odd) {
  background-color: rgba(108,148,188,.35);
}
table tr:nth-child(even) {
  background-color: rgba(137,167,200,.35);
}
table td {
  font-size: 14px;
  line-height: 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  word-break: break-all;
  padding: .5rem .5rem;
  text-align: center;
}

