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: left;
  font-family: "Microsoft YaHei", 微软雅黑;

  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;

  padding-top: constant(safe-area-inset-top);
  padding-left: constant(safe-area-inset-left);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant(safe-area-inset-bottom);
}

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

#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100.5%;
  height: 100%;
}

.progress-bar {
    position: absolute;
    left: 27.5%;
    top: 80%;
    height: 3px;
    padding: 2px;
    width: 45%;
    border-radius: 7px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease-in-out;
    background-color: #3dc5de;
}

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

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

#GameDiv {
    width: 800px;
    height: 450px;
    margin: 0 auto;
    background: black;
    position: relative;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.7)
}

/*邮件*/
#htmlDiv {
  background-color: #2E2E37;
  font-size: 36px;
  color: #E5D7B0;
  -webkit-text-size-adjust: none;
  font-family:"Microsoft Yahei";
  overflow: hidden;
}

#htmlDiv > p {
  word-spacing: -2px;
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: left;
}

#htmlDiv::-webkit-scrollbar{
    display: none;
}

#OpenImageFile {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

#BackgroundImg {
  position:absolute;
  width:100%;
  height:100%;
  background-size:cover;
  top:0;
  bottom:-10%;
  left:0;
  right:0;
}

#HtmlBtn {
  visibility: visible;
  position:absolute;
  bottom:2%;
  left: 50%;
  transform: translate(-50%);
}