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: black;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  overflow: hidden;
}

#Cocos2dGameContainer {
  margin: 0;
  left: 0px;
  top: 0px;

  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

canvas {
  width: 0%;
  height: 0%;
  /* visibility: hidden; */
  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;
  bottom: 0%;
  width: 100vw;
  height: 100vh;
}

#grain {
  position: absolute;
  left: 0%;
  bottom: 0%;
  width: 100%;
  height: 100%;
  background: rgba(25, 25, 25, 0.1) url("gameViewbg_J03.f621a.png") repeat center;
}

.progress-bar {
  background-color: #1a1a1a;
  bottom: 20%;
  height: 5px;
  /* padding: 5px; */
  width: 48%;
  margin-top: -1%;
  border-radius: 5px;
  box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  /* transition: width .4s ease-in-out; */
  background-color: #34c2e3;
}

.progress-bar-label {
  bottom: 5%;
  text-align: center;
  color: #ffffff;
  font-size: 20px;
}

.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;
}

/* CSS區塊重新排列 */
#splash {
  width: 100vw;
  height: 150vh;
  /* background-image: url(gameViewbg_J03.f621a.png), url(gameViewbg_J02.b1ed0.png); */
  background-size: auto, 100% 100%;
  background-color: #1919191a, rgba(25, 25, 25, 0.1);
  background-repeat: repeat, no-repeat;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  flex-wrap: wrap;
}

div#Jili {
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

div#JiliNew {
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

div#TaDa {
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
}

div#ElementBlock {
  width: 100%;
  /* height: 100%; */
  /* background-color: #34c2e3; */
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
}

div#JiliNewElementBlock {
  /* width: 100%; */
  /* height: 100%; */
  /* background-color: #34c2e3; */
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
}

div#TaDaElementBlock {
  /* width: 100%; */
  /* height: 100%; */
  /* background-color: #34c2e3; */
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#Logo {
  width: 100%;
  margin-bottom: -1%;
}

#logo {
  width: 100%;
  height: auto;
  visibility: hidden;
}

#logo img {
  width: 80%;
  max-width: 280px;
}

#leftBlock,
#rightBlock,
#missionBlock,
#signUpBlock,
#same {
  width: 45%;
  display: none;
}


#LoadingTextBlock {
  width: 100%;
}

#leftBlock img,
#rightBlock img,
#missionBlock img,
#signUpBlock img {
  width: 100%;
  max-width: 65%;
}


.script {
  font-size: 16px;
  color: white;
  /* position: relative; */
}

#system_message {
  position: absolute;
  top: 10%;
  text-align: center;
  background-color: rgba(25, 25, 25, 0.9);
  color: #ffffff;
  font-size: 32px;
  z-index: 999;
}

#bottomBlock {
  position: absolute;
  background-color: black;
  width: 100%;
  height: 100%;
  /* visibility: hidden; */
}

#loadingBlock {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 570px;
  z-index: 10;
  visibility: hidden;
  background-color: #e6e6e6;
}

#loadingMask {
  position: absolute;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  left: 50%;
  top: 50%;
  display: block;
  /* visibility: hidden; */
}

#MsgBox_JILI {
  display: none;
  position: absolute;
  width: 100%;
  height: 100vh;
  background: url(JILI_msgBox/img_betlist_off.png);
}

div#MsgCenter_JILI {
  position: absolute;
  width: 638px;
  height: 388px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

div#MsgBoard_JILI {
  width: 638px;
  height: 388px;
  background: url(JILI_msgBox/mainframe.png);
  transform-origin: 0% 0%;
}

div#MsgTitle_JILI {
  font-size: 30px;
  color: white;
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
}

div#MsgContent_JILI {
  display: block;
  position: absolute;
  width: 100%;
  height: 230px;
  top: 60px;
  font-size: 30px;
  color: white;
}

#MsgContent_JILI div#MsgText_JILI {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 105px;
}

div#MsgError_JILI {
  position: absolute;
  font-size: 20px;
  color: #808080;
  bottom: 4px;
  right: 10px;
}

div#OkBtn_JILI {
  width: 158px;
  height: 65px;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 298px;
  background-image: url(JILI_msgBox/btn.png);
}

div#OkBtn_JILI p {
  font-size: 30px;
  color: white;
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

#MsgBox_Tada {
  display: none;
  position: absolute;
  width: 100%;
  height: 100vh;
  background: url(Tada_msgBox/img_betlist_off.png);
}

div#MsgCenter_Tada {
  position: absolute;
  width: 638px;
  height: 383px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

div#MsgBoard_Tada {
  width: 638px;
  height: 383px;
  background: url(Tada_msgBox/mainframe.png);
  transform-origin: 0% 0%;
}

div#MsgTitle_Tada {
  font-size: 34px;
  font-weight: bold;
  color: #ffb42d;
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
}

div#MsgContent_Tada {
  display: block;
  position: absolute;
  width: 100%;
  height: 196px;
  top: 81px;
  font-size: 24px;
  color: white;
}

#MsgContent_Tada div#MsgText_Tada {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 105px;
}

div#MsgError_Tada {
  position: absolute;
  font-size: 20px;
  color: #808080;
  bottom: 4px;
  right: 29px;
}

div#OkBtn_Tada {
  width: 212px;
  height: 70px;
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 285px;
  background-image: url(Tada_msgBox/btn_confirm.png);
}

div#OkBtn_Tada p {
  font-size: 24px;
  color: white;
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

img#JiliNew_gif {
  height: 83%;
}

div#progressBar_JiliNew {
  background-image: url(Intro_ProgressBar_Bottom.3b3e8.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  /* width: 43%;
  height: 5px; */
  width: 100%;
  height: 8%;
  /* margin: auto; */
  margin-top: 5%;
  border-radius: 10px;
}

div#progressBar_JiliNew_IN {
  background-image: url(Intro_ProgressBar.22ae1.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  width: 5%;
  height: 7px;
  border-radius: 10px;
}

img#TaDa_gif {
  height: 83%;
}

div#progressBar_TaDa {
  background-image: url(Intro_ProgressBar_Bottom.3b3e8.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  /* width: 43%;
  height: 5px; */
  width: 100%;
  height: 8%;
  /* margin: auto; */
  margin-top: 5%;
  border-radius: 10px;
}

div#progressBar_TaDa_IN {
  background-image: url(Intro_ProgressBar.22ae1.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  width: 5%;
  height: 7px;
  border-radius: 10px;
}

/*================= 尺寸控制 =================*/
@media only screen and (max-width: 823px) {
  #logo img {
    width: 30%
  }

  #leftBlock img,
  #rightBlock img,
  #missionBlock img,
  #signUpBlock img {
    width: 70%;
  }
}

@media only screen and (max-width: 736px) {

  #leftBlock img,
  #rightBlock img,
  #missionBlock img,
  #signUpBlock img {
    width: 90%;
  }
}

@media only screen and (max-width: 414px) {
  #logo img {
    width: 50%
  }

  #leftBlock,
  #rightBlock,
  #missionBlock,
  #signUpBlock,
  #same {
    width: 100%;
  }

  #leftBlock img,
  #rightBlock img,
  #missionBlock img,
  #signUpBlock img {
    width: 80%;
  }
}

@media screen and (orientation : portrait) {
  #JiliNewElementBlock,
  #TaDaElementBlock {
    height: 13.125vw;
  }
}

@media screen and (orientation : landscape) {
  #JiliNewElementBlock,
  #TaDaElementBlock {
    height: 13.125vh;
  }
}

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

  100% {
    background-position: 60px 0;
  }
}