html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #333;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  
  /* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
  /* overflow cannot be applied in Cocos2dGameContainer, 
  otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
  overflow: hidden;
}

#Cocos2dGameContainer {
  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;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

a:link, a:visited {
  color: #666;
}

a:active, a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}

#splash{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #171717  no-repeat center;
  background-size: contain;
  -webkit-background-size: contain;
}


#splash:lang(zh_CN) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #171717 url(./Loading/zhcn/IMG_loadingBG.jpg) no-repeat center;
  /* background: #171717 no-repeat center;  */
  background-size: contain;
  -webkit-background-size: contain;
}

#splash:lang(en_US) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #171717 url(./Loading/en/IMG_loadingBG.jpg) no-repeat center;
  /* background: #171717 no-repeat center;  */
  background-size: contain;
  -webkit-background-size: contain;
}

.progress-bar {
    display: none;
    background-color:gray;
    position: absolute;
    left: 37.3%;
    top: 90%;
    height: 1.5%;
    padding: 6px;
    width: 25%;
    /*margin: 0 -175px;         */
    border-radius: 100px;
    box-shadow: 0 0 0 #ffffff inset, 0 0 0 #ffffff;            
}


.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    transition: width .4s ease-in-out; 
    background-color: #00ff00;    
}

.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(147,112,219, .15) 25%, transparent 25%,
                        transparent 50%, rgba(147,112,219, .15) 50%, rgba(147,112,219, .15) 75%,
                        transparent 75%, transparent);            
    
    animation: animate-stripes 1s linear infinite;             
}

@keyframes animate-stripes {
    0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

@keyframes jumpLogo {
  0% {
    top: -1.8rem;
  }
  25% {
    top: -1.9rem;
  }
  50% {
    top: -1.8rem;
  }
  75% {
    top: -1.7rem
  }
  100% {
    top: -1.8rem;
  }
}

#Icon{
  position: absolute;
  top: -1.8rem;
  left: -6rem;
  width: 5rem;
  height: 3rem;
  animation: jumpLogo 1s infinite linear;
}
.orientation, .swiper {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 99;
  background-repeat: no-repeat;
  background-color: #000;
  background-position: center;
  display: none;
}
.orientation {
  background-image: url(dist/img/orientation.gif);
  z-index: 100;
}
.swiper-chrome {
  background-image: url(dist/img/swiper-chrome.gif);
  height: 100%;
  background-position: center;
  position: fixed;
  display: none;
}
.swiper-safari {
  background-image: url(dist/img/swiper-safari.gif);
  height: calc(100vh*2);
  background-position: top;
  display: none;
} 
/* .swiper {
  height: calc(100vh*2);
}
.chrome {
  height: 100vh;
} */
.show {
  display: none;
}

@media screen and (orientation: portrait) {
  /* .swiper {
    display: none;
  } */

  #splash.portrait:lang(zh_CN) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717 url(./Loading/zhcn/IMG_loadingBG_Portrait.jpg) no-repeat center;
    background-size: contain;
    -webkit-background-size: contain;
  }

  #splash.portrait:lang(en_US) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717 url(./Loading/en/IMG_loadingBG_Portrait.jpg) no-repeat center;
    background-size: contain;
    -webkit-background-size: contain;
  }
}
@media screen and (orientation: landscape) {
  .orientation {
    display: none;
  }

  .splashChange{
    overflow-x: hidden;
    transform: rotate(90deg) translateY(-100%);
    transform-origin:top left;
    width: 100vh;
    height: 100vw;
    background-position: center; 
    background-size: contain;
  }

  #splash.landspace:lang(zh_CN) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717 url(./Loading/zhcn/IMG_loadingBG.jpg) no-repeat center;
    background-size: contain;
    -webkit-background-size: contain;
  }

  
  #splash.landspace:lang(en_US) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717 url(./Loading/en/IMG_loadingBG.jpg) no-repeat center;
    background-size: contain;
    -webkit-background-size: contain;
  }


  body.rotation90 {
    -webkit-transform: rotate(180deg) ;
    -moz-transform: rotate(180deg) ;
    -ms-transform: rotate(180deg) ;
      -o-transform: rotate(180deg) ;
        transform: rotate(180deg) ;
    -webkit-transform-origin: center;
        -moz-transform-origin: center;
        -ms-transform-origin: center;
          -o-transform-origin: center;
            transform-origin: center;
      width: 100%;
      position: fixed;
      background-position: center; 
      background-size: contain;
  }
}
.show {
  z-index: 999999;
  background: pink;
  width: 100%;
  height: 70%;
  position: fixed;
  color: green;
  opacity: 0.7
}

.fullScreen{
  width: 100% !important;
  height: 100% !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
}

/* #Cocos2dGameContainer {
  z-index: -1;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
} */

@media only screen and (min-width: 786px) {
  .swiper .orientation{
    display: none;
  }
  #Cocos2dGameContainer {
    z-index: unset;
  }
}

#Cocos2dGameContainer iframe {
  background-color:transparent !important;
}
 
#Cocos2dGameContainer div {
  background-color:transparent !important;
}