:root {
  color-scheme: light only;
  --black: #030303;
  --grey: #707070;
  --white: #f6f2ce;
  --active: #ffec97;
  
  --font: "Noto Sans TC", sans-serif;
  --tltfont: 'Noto Serif SC', serif;
  --navheight: 70px;
}

@media only screen and (max-width: 768px) {
  :root {
    --navheight: 65px;
  } 
}
/*---------------------------------------
   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);}
    to {transform: translateX(0);}
}
@keyframes float{
  0% {transform: translateY(0px);}
  100% { transform: translateY(25px);}
}
@keyframes popin{
  0% {transform: scale(2); opacity: 0;}
  100% {transform: scale(1); opacity: 1;}
}
@keyframes rotate{
  0% {transform: rotate(0deg);}
  100% {transform: 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);
}

.maincontainer{
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: auto;
  padding-bottom: 150px;
  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;
}

@media screen and (max-width: 768px) {
  .maincontainer{
    padding-bottom: 200px;
  }
  .draggable-scroll{
    cursor: grab;
  }
}

/*---------------------------------------
   Scroll Effect       
-----------------------------------------*/
::-webkit-scrollbar {
  width: 6px;
  height: 3.5px;
  display: none;
}
::-webkit-scrollbar-track {
  opacity: 0;
  background:  rgba(226, 226, 226,.5);
}
::-webkit-scrollbar-thumb {
  background: var(--grey);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grey);
}

body.modal-open {
  overflow-y: scroll; /* Ensures the scrollbar stays visible */
}


/*---------------------------------------
   ELEMENTS
-----------------------------------------*/
#smoke {
  position: absolute;
  width: 100%;
  height: 40%;
  left: 0px;
  pointer-events: none;
  bottom: 0%;
  z-index: 50;
}
#smoke > span {
  width: 100%;
  min-height: 130px;
  padding-bottom: 6.5%;
  position: absolute;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: 100%;
  left: 90vw;
  bottom: 0px;
  background: url(../img/smoke.png) bottom no-repeat; 
  background-size: contain;
  opacity: 0.5;
  -moz-animation: 30s linear 0.5s infinite forwards running toleft;
  -webkit-animation: 30s linear 0.5s infinite forwards running toleft;
  -o-animation: 30s linear 0.5s infinite forwards running toleft;
  -ms-animation: 30s linear 0.5s infinite forwards running toleft;
  animation: 30s linear 0.5s infinite forwards running toleft;
}
#smoke > span:nth-child(2) {
  opacity: 0.7;
  background: url(../img/smoke2.png) bottom no-repeat;
  background-size: contain;
  -moz-animation: 15s linear 1s infinite forwards running toleft;
  -webkit-animation: 15s linear 1s infinite forwards running toleft;
  -o-animation: 15s linear 1s infinite forwards running toleft;
  -ms-animation: 15s linear 1s infinite forwards running toleft;
  animation: 15s linear 1s infinite forwards running toleft;
}
#smoke > span:nth-child(3) {
  opacity: 0.8;
  -moz-animation: 10s linear 0.8s infinite forwards running toleft;
  -webkit-animation: 10s linear 0.8s infinite forwards running toleft;
  -o-animation: 10s linear 0.8s infinite forwards running toleft;
  -ms-animation: 10s linear 0.8s infinite forwards running toleft;
  animation: 10s linear 0.8s infinite forwards running toleft;
}

#blinkbg {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

#logo{
  position: absolute;
  width: 10%;
  max-width: 188px;
  aspect-ratio: 188/67;
  background: url(../img/logo_s.png) center no-repeat;
  background-size: contain;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}

#element{
  position: absolute;
  width: 50%;
  max-width: 788px;
  aspect-ratio: 1/1;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: url(../img/tab/elementtop2.png) center no-repeat; 
  background-size: contain;
}
#element span {
  width: 100%;
  aspect-ratio: 1/1;
  position: absolute;
  background: url(../img/tab/elementtop.png) center no-repeat;
  background-size: contain;
  -moz-animation: rotate 55s linear infinite;
  -webkit-animation: rotate 55s linear infinite;
  -o-animation: rotate 55s linear infinite;
  -ms-animation: rotate 55s linear infinite;
  animation: rotate 55s linear infinite;
}
#element span:nth-child(2) {
  background: url(../img/tab/elementtop3.png) center no-repeat; 
  background-size: contain;
  -moz-animation: rotate 18s linear infinite reverse;
  -webkit-animation: rotate 18s linear infinite reverse;
  -o-animation: rotate 18s linear infinite reverse;
  -ms-animation: rotate 18s linear infinite reverse;
  animation: rotate 18s linear infinite reverse;
}

.imgbdr{
  align-self: center;
  max-width:fit-content;;
  border: 1px solid #f2d496;
  padding: 3px;
}
.imgbdr img{
  width: fit-content;
  border: 3px solid #f2d496;
}

#char{
  position: absolute;
  height: 70%;
  max-height: 770px;
  aspect-ratio: 56/77;
  bottom: 0;
  right: -30%;
  z-index: 55;
  background: url(../img/tab/cta2_frnt.png) center no-repeat; 
  background-size: contain;
  transition: all 1s ease-in-out;
}

#char.char-animate {
  right: 0;
  transition: all 1s ease-in-out;
}

@media only screen and (max-width: 768px) {
  #logo{
    width: 25%;
  }
  #element{
    position: absolute;
    width: 90vw;
    max-width: 788px;
    aspect-ratio: 1/1;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: url(../img/tab/elementtop2.png) center no-repeat; 
    background-size: contain;
  }
  #char{
    display: none;
  }
}


/*---------------------------------------
   NAVBAR
-----------------------------------------*/
#navbarNav{
  position: relative;
  max-height: fit-content;
  padding: 0 2%;
  padding-top: .35%;
  width: 100vw;
  aspect-ratio: 128/3;
}

.navbar-toggler{
  position: absolute;
  right: 10px;
  top: .8%;
  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: 99;
}
.navbar-toggler.collapsed{
  background: url(../img/btn_navopen.png) no-repeat center;
  background-size: contain;
}

.btn_nav{
  height: 100%;
  max-height: 30px;
  aspect-ratio: 146/40;
  background: url(../img/nav_2.png) no-repeat;
  background-size: 100% auto;
  background-position: 0 0;
}
.btn_nav:nth-child(2){
  background: url(../img/nav_3.png) no-repeat;
  background-size: 100% auto;
}
/* .btn_nav:nth-child(3){
  background: url(../img/nav_3.png) no-repeat;
  background-size: 100% auto;
} */

.btn_nav:hover{
  background-position: 0 100%;
}

.btn_fb{
  height: 100%;
  aspect-ratio: 1/1;
  max-height: 40px;
  background: url(../img/btn_fb.png) no-repeat;
  background-size: 100% auto;
  background-position: 0 0;
}
.btn_fb:hover{
  filter: brightness(1.2);
}

@media only screen and (max-width: 768px) {
  
  #navbarNav {
    position: fixed;
    top: 0;
    right: -200px;

    aspect-ratio: unset;
    flex-direction: column;
    min-height: 100vh;
    max-width: fit-content;
    justify-content: flex-start;
    padding: 80px 20px;
    gap: 15px;
    background-color: rgba(25, 30, 50, .9);
    transition: all 0.5s ease-in-out;
  }
  #navbarNav.nav-open {
    right: 0;
  }
  .btn_nav{
    min-height: 30px;
  }
  .btn_fb{
    min-height: 40px;
  }
}

/*---------------------------------------
   KV
-----------------------------------------*/
#KV{
  position: relative;
  width: 100vw;
  max-width: 1920px;
  aspect-ratio: 200/97;
  background: url(../img/kv.jpg) top center no-repeat;
  background-size: contain;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 1.95%;
}
#KV::before, #KV::after{
  content: "";
  position: absolute;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  background: url(../img/frnt2.png) no-repeat bottom center;
  background-size: contain;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

#KV::after{
  background: url(../img/frnt.png) no-repeat bottom center;
  background-size: contain;
  z-index: 90;
}

.slogan{
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(../img/slogan.png) center no-repeat;
  background-size: contain;
  top: 0;
  right: 1.2%;
}


@media only screen and (max-width: 768px) {
  #KV{
    aspect-ratio: 78/145;
    max-width: 100vw;
    background: url(../img/kv_m.jpg) top center no-repeat;
    background-size: contain;
    padding-bottom: 30%;
  }
  #KV::before{
    background: url(../img/frnt2_m.png) top center no-repeat ;
    background-size: contain;
  }
  #KV::after{
    background: url(../img/frnt_m.png) top center no-repeat ;
    background-size: contain;
  }
  .slogan{
    background: url(../img/slogan_m.png) center no-repeat;  
    background-size: contain;
  }
}

/*---------------------------------------
   BUTTON
-----------------------------------------*/
.buttonwrapper{
  position: relative;
  width: 100%;
  height: 15%;
  z-index: 90;
}
.btn_cta{
  position: relative;
  color: var(--white);
  font-family: var(--tltfont);
  font-weight: 600;
  font-size: 1vw;
  line-height: 120%;
  padding-bottom: .7%;
  height: 100%;
  aspect-ratio: 129/143;
}
.btn_cta::after{
  content: "";
  position: absolute;
  width: 100%;
  aspect-ratio: 129 / 143;
  background: url(../img/btn_cta.png) no-repeat center;
  background-size: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.btn_cta:hover::after{
  background: url(../img/btn_cta-hover.png) no-repeat center;
  background-size: contain;
}

.btn_close{
  position: absolute;
  width: 10%;
  max-width: 178px;
  aspect-ratio: 89/138;
  z-index: 999;
  right: 3%;
}
.btn_close::before, .btn_close::after{
  content: "";
  position: absolute;
  width: 100%;
}
.btn_close::before{
  max-width: 178px;
  aspect-ratio: 89/138;
  background: url(../img/tab/btn_closeelm.png) no-repeat center;
  background-size: contain;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.btn_close::after{
  width: 50%;
  max-width: 80px;
  aspect-ratio: 1/1;
  background: url(../img/tab/btn_close.png) no-repeat center;
  background-size: contain;
  left: 50%;
  bottom: 13%;
  transform: translateX(-53%);
  transition: all 0.5s ease-in-out;
}

.btn_close:hover::after{
  transform: translateX(-53%) rotate(-180deg);
  transform-origin: center;
  transition: all .3s ease-in-out;
}

.btn_top {
  position: absolute;
  width: 3%;
  padding-bottom: 3%;
  cursor: pointer;
  border-radius: 99px;
  background-color: rgba(60, 68, 133, 1);
  background-image: url(../img/tab/top.png);
  background-size: 100% auto;
  right: 11.5%;
  bottom: 25%;
  z-index: 99;
}
.btn_top:hover {
  filter: brightness(1.2);
}


@media only screen and (max-width: 768px) {
  .buttonwrapper{ 
    height: fit-content;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
  }
  .btn_cta {
    aspect-ratio: unset;
    height: fit-content;
    width: calc(100vw / 3 - 10%);
    max-width: 145px;
    font-size: 3.5vw;
    margin: 2%;
    padding-bottom: 10px;
    margin-bottom: 0px;
  }
  .btn_close{
    position: absolute;
    width: 15%;
    min-width: 40px;
    aspect-ratio: 40/45;
    top: 5%;
    right: 10px;
  }
  .btn_close::before{
    width: 50%;
    max-width: 43px;
    aspect-ratio: 43/10;
    background: url(../img/tab/btn_closeelm_m.png) no-repeat center;
    background-size: contain;
    top: unset;
    bottom: 0;
  }
  .btn_close::after{
    bottom: 0;
    width: 100%;
    min-width: 40px;
    transform: translateX(-50%);
  }
  .btn_close:hover::after{
    transform: translateX(-50%) rotate(-180deg);
  }
  .btn_top {
    position: fixed;
    width: 35px;
    max-height: 100vh;
    padding-bottom: 32.5px;
    right: 0%;
    bottom: 20%;
    background-color: rgba(60, 68, 133, .8);
    background-size: 90% auto;
    border-radius: 99px 0 0 99px;
  }
}

/*---------------------------------------
   CTA-Content
-----------------------------------------*/
#cta_content{
  display: none;
  position: absolute;
  z-index: 100;
  width: 100%;
  height: 100%;
  aspect-ratio: 200/97;
  background: url(../img/tab/bg.jpg) top center no-repeat;
  background-size: contain;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#cta_content.active{
  display: unset;
  animation: fadein .5s ease-in-out;
}

#cta_content::before,#cta_content::after{
  content: "";
  position: absolute;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  background: url(../img/tab/frnt2.png) no-repeat bottom center;
  background-size: contain;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 50;
}
#cta_content::after{
  top: unset;
  bottom: 0;
  background: url(../img/tab/frnt.png) no-repeat bottom center;
  background-size: contain;
  z-index: 90;
}

@media only screen and (max-width: 768px) {
  #cta_content{
    aspect-ratio: 78/140;
    max-width: 100vw;
    background: url(../img/tab/bg_m.jpg) no-repeat top center;
    background-size: cover;
  }
  #cta_content::before{
    background: url(../img/tab/frnt2_m.png) no-repeat top center;
    background-size: contain;
  }
  #cta_content::after{
    background: url(../img/tab/frnt_m.png) no-repeat bottom center;
    background-size: contain;
  }
}

/*---------------------------------------
   Tab Content
-----------------------------------------*/
.ctatab-pane.tab-pane{
  position: relative;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 6.8% 0 0;
  z-index: 90;
}

.tabcontentcontainer{
  position: relative;
  width: 74.25%;
  margin: 0 auto;
}
.tabcontentcontainer::before, .tabcontentcontainer::after{
  content: ' ';
  position: relative;
  width: 100%;
  padding-bottom: 4.175%;
  display: block;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% auto;
  background-image: url(../img/tab/bx_01.png);
}
.tabcontentcontainer::after {
  background-image: url(../img/tab/bx_03.png);
}

.tabtitle{
  font-family: var(--tltfont);
  font-size: 2.35vw;
  padding-bottom: .35%;
  color: #e6d1a0;
  position: absolute;
  width: 50%;
  max-width: 530px;
  aspect-ratio: 53/7;
  left: 50%;
  transform: translateX(-50%);
  top: -5%;
  z-index: 90;
  background: url(../img/tab/tabtltbg.png) no-repeat center;
  background-size: contain;
}

.tabcontentwrapper {
  position: relative;
  width: 100%;
  padding-bottom: 40%;
  display: block;
  background-attachment: scroll;
  background-repeat: repeat-y;
  background-position: 50% 50%;
  background-size: 100% auto;
  background-image: url(../img/tab/bx_02.png);
}

.tabcontent {
  position: absolute;
  width: 95%;
  height: 100%;
  margin: 0 auto;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 1.33rem;
  line-height: 2rem;
  color: #d1d4ee;
  font-weight: 300;
  transition: all .5s;
  -moz-transition: all .5s;
  -webkit-transition: all .5s;
  -o-transition: all .5s;
  overflow-y: scroll;
}

.tabcontent .tab-pane{
  padding: 5% 3%;
}
.tabcontent .tab-pane img{
  width: 100%;
  max-width: fit-content;
  align-self: center;
}


.tabbuttonwrapper{
  position: absolute;
  left: -12%;
  top: 10%;
  width: 10%;
  max-width: 140px;
  z-index: 90;
}

.btn_tab{
  color: #7e84be;
  position: relative;
  font-size: 1vw;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 28/9;
  background: url(../img/tab/btn_tab.png) no-repeat;
  background-size: 100% auto;
}
.btn_tab:hover, .btn_tab.active{
  color: white;
  background-position: 0 100%;
}

@media only screen and (max-width: 768px) {
  .ctatab-pane.tab-pane{
    padding: 17.8% 0 17%;
  }
  .tabcontentcontainer{
    width: 99%;
    height: 85%;
  }
  .tabcontentcontainer::before, .tabcontentcontainer::after{
    width: 100%;
    padding-bottom: 7.948%;
    background-image: url(../img/tab/bx_m_01.png);
  }
  .tabcontentcontainer::after {
    background-image: url(../img/tab/bx_m_03.png);
  }
  .tabcontentwrapper {
    height: 100%;
    padding-bottom: 0;
    background-image: url(../img/tab/bx_m_02.png);
    overflow-y: scroll;
  }
  .tabcontent {
    position: relative;
    width: 90%;
    min-height: 300px;
    height: 100%;
    margin: 0;
    overflow-y: unset;
  }
  .tabbuttonwrapper {
    position: relative;
    flex-direction: row !important;
    flex-wrap: wrap;
    width: 98%;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    padding: 15px 0;
  }
  .btn_tab{
    font-size: 1rem;
  }
  .tabtitle{
    font-size: 1.5rem;
    padding-bottom: 0;
   
    width: unset;
    max-width: 70vw;
    height: 100%;
    min-height: 40px;
    max-height: 50px;

    top: -2.5%;
  }
}


/*---------------------------------------
   Font
-----------------------------------------*/
.tab-pane h2:not(.tlttxt){
  color: white;
  font-size: calc(var(--txt_l) -2px);
}
h2.tlttxt{
  color: #f6f2ce;
  padding: 9px 5px;
  border-top: #f6f2ce 1px solid;
  border-bottom: #f6f2ce 1px solid;
  width: fit-content;
}

p{
  font-size: 16px;
}

.txt_highlight, .red{
  color: #ff2b44 !important;
}

.divider{
  border: none;
  width: 100%;
  height: 16px;
  background: url(../img/tab/divider.png) repeat-x center;
}

table{
  width: 99.5%;
  border-spacing: 1px;
  color: #d1d4ee;
  margin: 1rem auto 1.5rem;
}
table tr:first-child td{
  padding: .8rem .5rem;
  background-color: rgba(22, 26, 59, .6);
  text-align: center;
  font-weight: 500;
  color: #fbf7e8;
}
table tr:nth-child(odd) {
  background-color: rgba(74, 74, 134, .3);
}
table tr:nth-child(even) {
  background-color: rgba(89, 89, 157, .3);
}
table td {
  font-size: 16px;
  line-height: 18px;
  border: 1px solid #21274c;
  word-break: break-all;
  padding: .5rem .5rem;
  background-color: rgba(74, 74, 134, .3);
  text-align: center;
}

/*---------------------------------------
   FOOTER
-----------------------------------------*/
footer{
  background-color: var(--black);
  color: var(--white);
}
#footer{
  background: var(--black);
}
