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: #000000;

  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: #171717  no-repeat url("./bg1.e4ca2.jpg") center center;
  /* 固定 splash.b922f.png 大小为 300x300 并保持居中 */
  background-size: cover;
  
}

.progress-bar {
    position: absolute;
    left: 50%;
    width: 40%;
    height: 12px;
    bottom: 13%;
    transform: translateX(-50%);
    border-radius: 3px;
    /*margin: 0 -175px; 
    padding: 5px;     
    box-shadow: 0 1px 5px rgba(0, 0, 0, .6) inset, 0 1px 0 rgba(255, 255, .2);*/
    background: url("jz-jdt-4.cc1f9.png") no-repeat center center;
    background-size: 100% 100%;
}

.progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    position: relative;
    /*box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;*/
    transition: width .6s ease-out; 
    background: url("jz-jdt-3.51ede.png") no-repeat center center;
    background-size: 100% 100%;
}

#splash-info {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    color: #fdecc8;
    font-size: clamp(12px, 1.5vw, 20px);
    z-index: 1000;
    
}

#logo {
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 1000;
    max-width: 46vw;
    max-height: 24vh;
    width: auto;
    height: auto;
}
#BesTV {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1000;
    width: 7vw;
    height: auto;
    pointer-events: none;
}
#progress-status {
    position: absolute;
    left: 50%;
    bottom: 9%;
    transform: translateX(-50%);
    color: #fdecc8;
    font-size: clamp(12px, 1.5vw, 20px);
    z-index: 1000;
    
}


.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;}
}

#icp {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    color: #ef6e28;
    z-index: 1000;
    font-size: clamp(10px, 1.5vw, 18px);
    
}

#loading-gif {
    position: absolute;
    right: -20px; 
    bottom: 50%;
    transform: translateY(50%);
    z-index: 1000;
    height: clamp(26px, 3.9vw, 38px);
    width: auto;
    pointer-events: none;
    transition: right .6s ease-out;
}

#age-rating {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 1000;
    height: clamp(32px, 4vw, 56px);
    width: auto;
}
