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: #000;
  background-color: #fff;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border: 0;
  margin: 0;
  background-color: #fff;
}

#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(./bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.progress-loading {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  object-fit: contain;
}

.progress-bar {
  margin-top: 100px;
  min-width: 240px;
  width: 50vw;
  height: 36px;
  border-radius: 20px;
  border: solid 2px #6d543f;
  background-color: #ffffff;
  z-index: 20;
}

.progress-bar .progress-inner {
  position: relative;
  margin: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 18px;
  background-color: #dce8f4;
}

.progress-bar .progress-rate {
  display: block;
  position: relative;
  height: 100%;
  border-radius: 18px;
  background-image: url(./bar.png);
  transition: width 0.4s ease-in-out;
  animation: animate-stripes 1s linear infinite;
}

.progress-bar .progress-walk {
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(40%, -105%);
  width: 120px;
  height: 152px;
  background-image: url(./walking.png);
  background-repeat: no-repeat;
  overflow: hidden;
  animation: animate-walking 1s steps(2) infinite;
}

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

  100% {
    background-position: 60px 0;
  }
}

@keyframes animate-walking {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -240px, 0;
  }
}
