html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  user-select: none;
  -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;
  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-image: linear-gradient(#4b37a8, #7569e1, #4b37a8);
  background-size: 45%;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 37%;
  z-index: 100;
}
.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.center img {
  width: 100%;
}
.text {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #ffff;
  word-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-style: italic;
  font-weight: bold;
  font-family: Arial, sans-serif;
}
@keyframes rotate-scale {
  0% {
    transform: rotate(0deg) scale(0);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(0);
  }
}
.xing1, .xing2, .xing3 {
  animation: rotate-scale 1.5s infinite;
  img{
    width: 100%;
  }
}
.xing1 {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 10%;
  img{
    opacity: 80%;
  }
}
.xing2 {
  position: absolute;
  top: 4%;
  right: 10%;
  width: 8%;
  img{
    opacity: 60%;
  }
}
.xing3 {
  position: absolute;
  top: 20%;
  right: 24%;
  width: 10%;
}
@keyframes moveLeft {
  from {
    transform: translateX(50%);
  }
  to {
    transform: translateX(-50%);
  }
}
.yun,
.yun2,
.yun3,
.yun4 {
  animation: moveLeft 9s linear infinite;
  img {
    width: 100%;
  }
}
.yun {
  position: absolute;
  top: 17%;
  left: 0;
  width: 49%;
}
.yun2 {
  position: absolute;
  top: 23%;
  right: -5%;
  width: 40%;
  z-index: 2;
  img {
    opacity: 80%;
  }
}
.yun3 {
  position: absolute;
  bottom: 18%;
  right: 10%;
  z-index: 2;
  width: 40%;
  img {
    opacity: 40%;
  }
}
.yun4 {
  position: absolute;
  bottom: 10%;
  left: -2%;
  width: 40%;
  z-index: 2;
  img {
    opacity: 70%;
  }
}
.shan1,
.shan2,
.shan3,
.shan4 {
  img {
    width: 80%;
  }
}
.shan1 {
  position: absolute;
  bottom: 0;
  left: 2%;
  width: 80%;
  z-index: 3;
}
.shan2 {
  position: absolute;
  bottom: 5%;
  right: 2%;
  width: 60%;
  z-index: 1;
}
.shan3 {
  position: absolute;
  bottom: 0;
  right: -20%;
  width: 70%;
  z-index: 2;
}
.shan4 {
  position: absolute;
  bottom: 0;
  left: -12%;
  width: 69%;
  z-index: 1;
}
.progress-bar {
  position: absolute;
  margin-left: -31%;
  left: 50%;
  top: 74%;
  height: 15px;
  padding: 4px;
  width: 62%;
  border-radius: 10px;
  background-image: url(../../../static/loading.png);
  background-size: 100% 100%;
  z-index: 110;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 12px;
  transition: width 0.4s ease-in-out;
  animation: animate-stripes 1s inherit infinite;
  background-size: 97% 97%;
}

.stripes span {
  background-size: 30px 30px;
  background-image: linear-gradient(
    135deg,
    rgba(103, 228, 251, 1) 25%, 
    transparent 50%,
    rgba(103, 228, 251, 1) 50%,
    rgba(103, 228, 251, 1) 75%,
    transparent
  );
  animation: animate-stripes 1s linear infinite;
}

@keyframes animate-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 0;
  }
}
