html {
  -ms-touch-action: none;
  touch-action: none;
  height: 100%;
  width: 100%;
}

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;*/
  background-color: red;
  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;
}

#game-iframe {
  width: 100vw;
  height: 100vh;
  border: none;
}

#GameCanvas {
  width: 100vw;
  height: 100vh;
}

#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;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: url(./splash.jpg) no-repeat center;
  background-size: 100% 100%;
} */

#loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
}

.image-spinner {
  position: absolute;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#CanvasSlideToFullScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 0%;
  background-color: #FFFFFFAA;
  display: none !important;
  align-items: center;
  justify-content: center;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}

@media (orientation:landscape) and (min-height:280px) {
  #CanvasSlideToFullScreen {
    height: 120vh;
  }
}

.rotating {
  width: 100px;
  animation: rotate-anim 2.5s infinite linear;
}

.moving-up {
  width: 80px;
  -webkit-animation-name: move-up;
  -webkit-animation-duration: 2.5s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-delay: 1;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: ease-out;
  animation-name: move-up;
  animation-duration: 2.5s;
  animation-timing-function: linear;
  animation-delay: 1s;
  animation-iteration-count: infinite;
  animation-direction: ease-out;
  -webkit-animation: move-up 2.5s infinite ease-out;
  animation: move-up 2.5s infinite ease-out;
}

@keyframes rotate-anim {
  0% {
    transform: rotateZ(-45deg);
  }

  50% {
    transform: rotateZ(-135deg);
  }

  100% {
    transform: rotateZ(-135deg);
  }
}

@keyframes move-up {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(-100%);
  }
}