/*    =====loading Index=====      */

@charset "UTF-8";
body {
  margin: 0;
  font-family: Arial, "微軟正黑體", sans-serif;
  background: #000;
}

.wrap_bg{
  background-image: none;
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: calc((100% - 56vh) / 2);
  float: left;
  position: relative;
}
/* @supports (background-image: url('../imgs/loading_bg.webp')) {
  .wrap_bg {
      background-image: url('../imgs/loading_bg.webp');
  }
} */
.wrap_bg_right{
  transform: scaleX(-1);
  right: 0;
  top: 0;
  position: absolute;
}

.wrap_bg_shadow{
  background-image: none;
  background-position: top right;
  background-repeat: repeat-y;
  background-size: auto;
  height: 100%;
  width: 2rem;
  position: absolute;
  right: 0;
  top: 0;
}
/* @supports (background-image: url('../imgs/bg_shadow.webp')) {
  .wrap_bg_shadow {
      background-image: url('../imgs/bg_shadow.webp');
  }
} */
.wrap_box {
  background-size: contain;
  z-index: 20;
  position: relative;
  margin: 0 auto;
  width: 56.25vh;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.wrap_box_logo{
  display: block;
  width: 90%;
  margin-top: 3%;
  padding-bottom: 11rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.wrap_box_alert {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  position:absolute;
  z-index: 9999;
  top: 0;
  display: none;
}
.wrap_box_alert_board {
  width: 70%;
  height: auto;
  padding: 1.2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 30%;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 4px solid #ff3823;
  box-shadow: #fcc093 0 -4px 0 0 inset,
  #fcc093 -4px 0 0 0 inset,
  #fcc093 4px 0 0 0 inset,
  #fcc093 0 4px 0 0 inset;
}

.wrap_box_alert_board::after{
  width: 100%;
  height: 100%;
  content: '';
  position: absolute;
  display: block;
  top: 4px;
  left: 4px;
  box-shadow: rgb(0,0,0,0.5) 6px 6px 0;
  border-radius: 0.5rem;
  z-index: -1;
}

.wrap_box_alert_text {
  text-align: center;
  color: #000;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 0.5rem 0 0 0;
}

.wrap_box_alert_btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.wrap_box_alert_btn:hover {
  background-color: #0056b3;
  box-shadow: 0 8px 15px rgba(0, 91, 187, 0.3);
}

.wrap_box_alert_btn:active {
  transform: scale(0.95);
}

.wrap_box_alert_btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}


.wrap_box_btn {
  background-image: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 60%;
  height: 6rem;
  border: 0;
  background-color: rgb(0, 0, 0, 0);
  position: absolute;
  z-index: 400;
  font-size: 1.5rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 1px #1e619c;
  left: 50%;
  top: 100%;
  margin-top: 1rem;
  transform: translateX(-50%);
}

/* @supports (background-image: url('../imgs/start_button.webp')) {
  .wrap_box_btn {
      background-image: url('../imgs/start_button.webp');
  }
}
.wrap_box_btn:active,
.wrap_box_btn.active {
  background-image: url('../imgs/start_button_active.png');
}

@supports (background-image: url('../imgs/start_button_active.webp')) {
    .wrap_box_btn:active, .wrap_box_btn.active {
        background-image: url('../imgs/start_button_active.webp');
    }
} */
.wrap_box_slogan{
  display: flex;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  width: 100%;
  padding-bottom: 30%;
}

.wrap_box_loading {
  width: 100%;
  position: absolute;
  top: 70%;
}

.wrap_box_loading_text {
  line-height: 1.2rem;
  color: white;
  text-shadow: 0 1px 1px black;
  font-size: .9rem;
  text-align: center;
  /* margin: 0.5rem auto; */
  font-weight: 400;
  flex: 2;
  position: relative;
  text-shadow: -1px -1px 0 #000,
              1px -1px 0 #000000,
              -1px 1px 0 #000000,
              1px 1px 0 #000000;
}
.wrap_box_loading_tip {
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-name: animate-tip;
  animation-timing-function: linear;
}
.wrap_box_highlight{
    background-color: rgb(255 255 255 / 15%);
    border-radius: 3.5px 3.5px 0 0;
    height: 50%;
    width: 100%;
    position: absolute;
    transform: translateZ(0);
    box-shadow: 0 3px 5px rgb(0, 0, 0, .5);
}

/* 動畫 */
@keyframes animate-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 34.7px 0;
  }
}
@keyframes animate-tip {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  20% {
    transform: translateY(0px);
    opacity: 1;
  }
  80% {
    transform: translateY(0px);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

@media (max-height: 800px) {
  .pBox{
    top: 50%!important;
  }
  .wrap_box_btn{
    font-size: 1.3rem;
    margin-top: 2rem;
  }
}

@media (max-height: 540px) {
  .pBox{
    top: 45%!important;
  }
  .wrap_box_btn{
    font-size: 0.8rem;
  }
  .progress-text{
    bottom: 0.7rem;
    margin: 1rem 0 0 0!important;
  }
  .wrap_box_loading_text{
    font-size: 0.7rem;
  }
  .wrap_box_alert_btn{
    height: 2rem;
  }
  .wrap_box_alert_text{
    font-size: 0.9rem;
    line-height: 1.3rem;
  }
  .wrap_box_bottom_logo{
    bottom: 0.5rem;
  }
}

@media (max-height: 400px) {
  .pBox{
    top: 45%!important;
  }
  .wrap_box_btn{
    font-size: 0.5rem;
    margin-top: 0.5rem;
  }
  .progress-bar{
    height: 0.4rem!important;
    margin: 14px auto!important;
  }
  .progress-text{
    bottom: 0.5rem;
  }
  .wrap_box_alert_btn{
    height: 2rem;
    margin: 0.5rem auto 0 auto;
  }
  .wrap_box_alert_text{
    font-size: 0.9rem;
    line-height: 1.3rem;
  }
  .wrap_box_bottom_logo{
    bottom: 0.2rem;
  }
}

* {
    padding: 0;
    margin: 0;
}

html {
    -ms-touch-action: none;
}

input::-webkit-inner-spin-button,input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}


canvas {
    width: 0%;
    height: 0%;
    background-color: rgba(0,0,0,0)
}
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

#safariMask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*height: 500px;*/
    background: rgba(0, 0, 0, 0.8);
}


.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);
    animation: animate-stripes 1s linear infinite;
    position: relative;
}

@keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 0;
    }
}

#Cocos3dGameContainer {
    position: absolute;
    margin: 0;
    overflow: hidden;
    left: 0px;
    top: 0px;
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

@media screen and (orientation: portrait) {
    html {
        width: 100%;
        height: 100%;
        background-color: #000;
        overflow: hidden;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    body {
        width: 100%;
        height: 100%;
        background-size: 100% 100%;
        background-color: #000;
        overflow: hidden;
        overflow-x: hidden;
        overflow-y: hidden;
        font-family: Helvetica, Verdana, Arial, sans-serif;
        touch-action: none;
    }

}

@media screen and (orientation: landscape) {
    html {
        width: 100%;
        height: 100%;
        background-color: #000;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    body {
        width: 100%;
        height: 100%;
        background-size: 100% 100%;
        background-color: #000;
        overflow: hidden;
        overflow-x: hidden;
        overflow-y: hidden;
        font-family: Helvetica, Verdana, Arial, sans-serif;
        touch-action: none;
    }

}


@-webkit-keyframes stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4)
    }
    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

a:link,
a:visited {
    color: #10ee43;
}

a:active,
a:hover {
    color: #10ee43;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        bottom: 0;
    }
    100% {
        opacity: 1;
        bottom: 300px;
    }
}

@-webkit-keyframes fadeInOut {
    0% {
        opacity: 0;
        bottom: 0;
    }
    100% {
        opacity: 1;
    }
}


.loadingProgress p {
    padding: 0;
    margin: 0;
    font-size: .7rem;
    font-weight: bold;
    -webkit-text-stroke: 0.5px #000000;
}

/*modal start */

.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    /*z-index: 1050;*/
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    border-radius: 15px;
    overflow: hidden;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform-origin: center;
    transform-origin: center;
    -webkit-transform: scale(0.90);
    transform: scale(0.90);
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.modal.modal-static .modal-dialog {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
}

.modal-dialog-scrollable {
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none;
}

.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #000;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
    margin: 0.25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

.fade {
    transition: opacity 0.15s linear;
}

@media (prefers-reduced-motion: reduce) {
    .fade {
        transition: none;
    }
}

.fade:not(.show) {
    opacity: 0;
}
.hidden {display: none !important;}
/*---------------------History----------------------*/
.closeIframe {
    top:4px;
    right:4px;
    /*display:inline-block;*/
    position: absolute;
}

/*--------------------- preloading ----------------------*/
/* JC */
#preloading_B {
    width: 100%;
    height: 100%;
  }
  .imgBox{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: auto;
    position: relative;
    background-image:none;
    background-repeat: no-repeat;
    background-size: cover;
  }
  /* @supports (background-image: url('../imgs/slogan_bg.webp')) {
    .imgBox {
        background-image: url('../imgs/slogan_bg.webp');
    }
  } */
  /*---------------------Progress----------------------*/
.pBox{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 55%;
    z-index: 50;
}
.progress-text {
    color: #fff;
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 0.9rem;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    margin: 0.3rem 0;
    text-shadow: -1px -1px 0 #000,
                1px -1px 0 #000000,
                -1px 1px 0 #000000,
                1px 1px 0 #000000;
}
.progress-bar {
    height: 0.8rem;
    padding: 2px;
    width: 70%;
    border-radius: 7px;
    margin: 28px auto;
    background-color: rgb(0,0,0,0.75);
}
.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 5px;
    transition: width .4s ease-in-out;
    background-color: #029e17;
}
#preloading_A{
    background-image: url(../imgs/imgs_bg_02.png), url(../imgs/imgs_bg_01.jpg);
    background-size: 36px 44px, 100% 100%;
    background-color: #171717;
    background-repeat: repeat, no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8000;
    display: block;
}
/* @supports (background-image: url('../imgs/imgs_bg_02.webp'), url('../imgs/imgs_bg_01.webp')) {
    #preloading_A {
        background-image: url('../imgs/imgs_bg_02.webp'), url('../imgs/imgs_bg_01.webp');
    }
} */
.imgBox_A{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 20%;
    width: 100%;
    position: relative;
    top:18%;
}

/* .gameLogo{
    background: no-repeat center 0;
    width: 176px;
    height: 176px;
    margin: 0 auto 2%;/間隔/
    background-size: auto 100%;
} 
*/

.compLogo{
    background:no-repeat center 0;
    width: 100%;
    height: 75px;
    background-size: auto 100%;
    margin: auto auto 0;
}

/*---------------------Progress----------------------*/
.pBox_A{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50%;
    width: 100%;
    position: relative;
    top:24%;/*間隔*/
}

/* .progress-text {
    color: #DDDDDD;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
} */

.progress-bar_A {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    /*top: 80%;*/
    height: 6px;
    padding: 2px;
    width: 45%;
    border-radius: 7px;
    box-shadow: 0 1px 5px #000000 inset, 0 1px 0 #242424;

    margin: 28px auto;/*間隔*/
}

.progress-bar_A span {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease-in-out;
    background-color: #ea8922;
}
.stripes_A span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);
    animation: animate-stripes 1s linear infinite;
}
@media screen and (orientation: portrait) {
    .wrap_box{
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
    }
    .imgBox{
        background-size:cover;
        background-position: center;
    }
    .pBox_A{
        width: 100%;
    }
    .progress-bar_A {
        width: 60%;
    }
}

/*
    Alert 
*/
.modal_A {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content_A {
    background-color: #fff;
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    text-align: center; /* 水平居中 */
}

.modal-button_A {
    display: inline-block; /* 使按钮在水平方向上居中 */
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: 10px; /* 将按钮下边距设置为 10px */
    margin-top: 20px;
}