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

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;

}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: transparent !important;
  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  left: 0;
  top: 0;
  
  /* 兼容性写法 */
  display: -webkit-box;      /* Safari 6-9 */
  display: -ms-flexbox;      /* IE10 */
  display: flex;             /* 标准语法 */
  
  /* 主轴方向 */
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  
  /* 交叉轴对齐 */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  
  /* 主轴对齐 */
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: 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;
}


#loading-text {
  position: absolute;
  z-index: 1;
  top: 65%;
  width: 100%;
  font-weight: bold;
  font-size: 0;
}


/* 横屏样式 */
@media (orientation: landscape) {
  #splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
  }
}

/* 竖屏样式 */
@media (orientation: portrait) {
  #splash {
    background-color: transparent !important;
    width: var(--screen-height, 100vh);
    height: var(--screen-width, 100vw);
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(90deg);

  }
}

