html {
  -ms-touch-action: none;
}

/* iframe, canvas {
  transform: translate3d(0, 0, 0);
} */

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

  background-image: url('./splash/splash-bg.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

: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: 'splash-font';
  src: URL('splash/splash-font.otf') format('opentype');
}

#splash-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

#splash-logo {
  position: absolute;
}

#splash-progress-container {
  position: absolute;
  bottom: 42%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(74, 74, 74, 0.5);
  border-radius: 30px;
  height: 1rem;
}

#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: -25px;
  right: 15px;
  color: #7ef3ff;
  font-family: 'splash-font';
  font-size: 1.1rem;
}

#splash-loading {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: #7ef3ff;
  font-family: 'splash-font';
  font-size: 1.1rem;
  white-space: nowrap;
}

#btnLiveChat {
  width: 75px;
  height: 77px;
  position: absolute;
  right: 10px;
  top: 10px;
  background-image: url('./splash/btnService.png');
  border: none;
  background-color: transparent;
}

#splash-portal-version {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: #7ef3ff;
  font-family: 'splash-font';
  font-size: 1rem;
}
