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 {
    -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;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

canvas {
  background-color: #FDDC9A;
}

#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);
}

#GameCanvas {
  visibility: hidden; 
}

#GameDiv {  
  background: radial-gradient(#ffec55, #fcb31d);
}

#container {
  position: relative;
}
#container canvas, #overlay {
  position: absolute;
  width:500px !important; 
  display:block;z-index:9999
}

#overlay2::before {
  overflow: hidden;
  content: "";
  position: fixed;
  width: 200%;
  height: 300%;
  top: -50%;
  left: -50%;
  background-image: url('./bg-tiled.png');
  background-repeat: repeat;
  transform: rotate(15deg);
  animation: slide 10s linear infinite;
}

@-webkit-keyframes "slide" {
  0% {
    transform: translate(0, 0) rotate(15deg);
	
  }
  
  50% {
    transform: translate(500px, -500px) rotate(15deg);
	
  }
  
  100% {
    transform: translate(0, 0) rotate(15deg);
	}
}

/*LOADER*/

.a {
   	animation: pulse 2s linear infinite;
}

@-webkit-keyframes "pulse" {
0% {
    -webkit-transform: scale(1.1);
    transform: scale(1);
}
50% {
   -webkit-transform: scale(0.8);
   transform: scale(0.8);
}
100% {
    -webkit-transform: scale(1);
   transform: scale(1);
}
}

#loader-container img{
  margin: 3em;
  width: 400px;		
}

#loaderdiv {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lds-roller {
  display: inline-block;
  width: 100px;
  height: 100px;
  position: fixed;
  transform: translate(-50%, 0%);
  background-image: url('./paw_icon.png');
  background-repeat: no-repeat, no-repeat;
}
.lds-roller div {
  animation: lds-roller 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(1):after {
  top: 63*2px;
  left: 63*2px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(2):after {
  top: 68*2px;
  left: 56*2px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(3):after {
  top: 71*2px;
  left: 48*2px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.288s; 
}
.lds-roller div:nth-child(4):after {
  top: 72*2px;
  left: 40*2px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.36s;
}
.lds-roller div:nth-child(5):after {
  top: 71*2px;
  left: 32*2px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.4222s;
}
.lds-roller div:nth-child(6):after {
  top: 68*2px;
  left: 24*2px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.504s;
}
.lds-roller div:nth-child(7):after {
  top: 63*2px;
  left: 17*2px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.676s;
}
.lds-roller div:nth-child(8):after {
  top: 56*2px;
  left: 12*2px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

