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;
  overflow: hidden;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
}

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}

/* splash */
@font-face {
  font-family: 'agencyr';
  src: URL('splash/AGENCYR.TTF') format('truetype');
}

#splash-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* width: 100%; */
  height: 100%;
}

#splash-bg-bg {
  width: 100%;
  height: 100%;
}

#splash-bg-ground {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
}

#splash-bg-moon {
  position: absolute;
  top: 30%;
  left: 50%;
  /* transform: translate(-50%) scale(2.5); */
  /* width: 150%;  */
}

#splash-logo {
  position: absolute;
  /* left: 50%; */
  /* transform: translateX(-50%) scale(0.55); */
  /* top: -310px; */
  /* animation: zoomInOut 0.5s infinite alternate; */
}

#splash-progress-container {
  position: absolute;
  bottom: 42%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(74, 74, 74, 0.5);
  border-radius: 30px;
  /*  width: 270px; */
  /* min-width: 100px; */
  height: 15px;
}

#splash-progress-bg {
  position: absolute;
  transform: translateX(-50%, -50%);
  background-color: inherit;
  border-radius: inherit;
  width: 100%;
  height: 100%;
}

#splash-progress-bar {
  position: absolute;
  transform: translateX(-50%, -50%);
  height: 100%;
  background: #7ef3ff;
  width: 0%;
  border-radius: inherit;
}

#splash-progress-label {
  position: absolute;
  top: -20px;
  right: 15px;
  color: #7ef3ff;
  font-family: 'agencyr';
  font-size: 1rem;
}

#splash-progress-loading {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
}

/* @media (min-width: 600px) {
  #bg-moon {
    width: 25%; 
  }

} */

@keyframes zoomInOut {
  from {
    transform: translateX(-50%) scale(0.55);
  }

  to {
    transform: translateX(-50%) scale(0.6);
  }
}