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: #333;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

#GameDiv, #Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

/**
	game index.jsp
**/
@charset "utf-8";
.text {
	position: absolute;
	left: 20px;
	right: 20px;
	top: 10.5%;
	line-height: 40px;
	color: #000;
	text-align: center;
	font: 24px Arial
}

.overlay-message {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity : 1;
 	background-color: #e6e6e6;
	z-index: 1000
}


/* Vertical phone*/

.orientationLocking .phone {
	background: url(../images/game/device.png) no-repeat center;
	position: absolute;
	top: 20%;
	left: 50%;
	margin: 0 0 0 -20%;
	/*border: 1px solid #000;*/
	width: 40%;
	height: 49%;
	-webkit-border-radius: 1.5em;
	border-radius: 1.5em;
	opacity: 0.25;
	-webkit-animation-name: rotateVerticalPhone;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	-webkit-animation-name: rotateVerticalPhone;
	animation-name: rotateVerticalPhone;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
}

.orientationLocking .phoneVertical {
	background: url(../images/game/device.png) no-repeat center;
	position: absolute;
	top: 20%;
	left: 50%;
	margin: 0 0 0 -20%;
	/*border: 1px solid #000;*/
	width: 40%;
	height: 49%;
	-webkit-border-radius: 1.5em;
	border-radius: 1.5em;
	opacity: 0.25;
	-webkit-animation-name: rotateHorizontalPhone;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	-webkit-animation-name: rotateHorizontalPhone;
	animation-name: rotateHorizontalPhone;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
}

/* Inner screen */

/*.orientationLocking .phone div:nth-child(1) {
	position: relative;
	top: 12%;
	left: 6%;
	border: 1px solid #000;
	width: 88%;
	height: 72%;
}*/


/* Speaker */

/*.orientationLocking .phone div:nth-child(2) {
	position: absolute;
	top: 5%;
	left: 37%;
	border: 1px solid #000;
	-webkit-border-radius: 0.3em;
	border-radius: 0.3em;
	width: 25%;
	height: 0.3em;
}*/


/* Camera */

/*.orientationLocking .phone div:nth-child(3) {
	position: absolute;
	top: 5%;
	left: 26%;
	border: 1px solid #000;
	-webkit-border-radius: 0.3em;
	border-radius: 0.3em;
	width: 0.3em;
	height: 0.3em;
}*/


/* Horizontal phone*/

.orientationLocking .phone.horizontal {
	opacity: 1;
	-webkit-transform: rotate(-90deg);
	transform: rotate(-90deg);
	-webkit-animation-name: none;
	animation-name: none;
}


/*Rotation animation*/

@-webkit-keyframes rotateVerticalPhone {
	0% {
		opacity: 0;
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	10% {
		opacity: 0.25;
	}
	100% {
		-webkit-transform: rotate(-90deg);
		transform: rotate(-90deg);
	}
}



/* Horizontal phone*/

.orientationLocking .phone.vertical {
	opacity: 1;
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-animation-name: none;
	animation-name: none;
}


/*Rotation animation*/

@-webkit-keyframes rotateHorizontalPhone {
	0% {
		opacity: 0;
		-webkit-transform: rotate(-90deg);
		transform: rotate(-90deg);
	}
	10% {
		opacity: 0.25;
	}
	100% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}
}




.handGesture {
	background: url(../images/game/swipe_up.png) no-repeat center;
	position: absolute;
	top: 10%;
	left: 50%;
	margin: 0 0 0 -20%;
	width: 40%;
	height: 49%;
/* 	-webkit-border-radius: 1.5em; */
/* 	-webkit-animation-name: slideOutUp; */
/* 	-webkit-animation-duration: 2s; */
/* 	-webkit-animation-iteration-count: infinite; */
/* 	-webkit-animation-timing-function: ease-in-out; */
/* 	-webkit-animation-name: slideOutUp; */
/* 	animation-name: slideOutUp; */
/* 	-webkit-animation-duration: 2s; */
/* 	animation-duration: 2s; */
/* 	-webkit-animation-iteration-count: infinite; */
/* 	animation-iteration-count: infinite; */
/* 	-webkit-animation-timing-function: ease-in-out; */
/* 	animation-timing-function: ease-in-out; */
}


/*Slide up animation*/

@-webkit-keyframes slideOutUp {
  from {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  to {
    visibility: hidden;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }
}


/* Finger Tap */

.fingerTap {
	background: url(../images/game/finger_tap.png) no-repeat center;
	position: absolute;
	top: 20%;
	left: 50%;
	margin: 0 0 0 -20%;
	width: 40%;
	height: 49%;
	-webkit-border-radius: 1.5em;
	border-radius: 1.5em;
	opacity: 0.25;
	-webkit-animation-name: increaseOpacity;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	-webkit-animation-name: increaseOpacity;
	animation-name: increaseOpacity;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
}

/* Button Fullscreen Tap */

.buttonFSTap {
	background: url(../images/game/fullscreen.png) no-repeat center;
	position: absolute;
	top: 0%;
	left: 0%;
	margin: 0 0 0 0;
	width: 100%;
	height: 100%;
	-webkit-border-radius: 1.5em;
	border-radius: 1.5em;
	opacity: 0.25;
	-webkit-animation-name: increaseOpacity;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	-webkit-animation-name: increaseOpacity;
	animation-name: increaseOpacity;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
}


/*Rotation animation*/

@-webkit-keyframes increaseOpacity {
  from {
    opacity: 0.25;
  }

  to {
    opacity: 1.00;
  }
}




#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #262626;
}
#splash-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: 40% !important;
	animation: increaseOpacity ease 3s;
}
@Media only screen and (max-width: 480px) {
    #splash-image {
		background-size: 80% !important;
	}
}

.ring
{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:150px;
  height:150px;
  background:transparent;
  border:3px solid #3c3c3c;
  border-radius:50%;
  text-align:center;
  line-height:150px;
  font-family:sans-serif;
  font-size:20px;
  color:#fff000;
  letter-spacing:4px;
  text-transform:uppercase;
  text-shadow:0 0 10px #fff000;
  box-shadow:0 0 20px rgba(0,0,0,.5);
}
.ring:before
{
  content:'';
  position:absolute;
  top:-3px;
  left:-3px;
  width:100%;
  height:100%;
  border:3px solid transparent;
  border-top:3px solid #fff000;
  border-right:3px solid #fff000;
  border-radius:50%;
  animation:animateC 2s linear infinite;
}
span
{
  display:block;
  position:absolute;
  top:calc(50% - 2px);
  left:50%;
  width:50%;
  height:4px;
  background:transparent;
  transform-origin:left;
  animation:animate 2s linear infinite;
}
span:before
{
  content:'';
  position:absolute;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff000;
  top:-6px;
  right:-8px;
  box-shadow:0 0 20px #fff000;
}
@keyframes animateC
{
  0%
  {
    transform:rotate(0deg);
  }
  100%
  {
    transform:rotate(360deg);
  }
}
@keyframes animate
{
  0%
  {
    transform:rotate(45deg);
  }
  100%
  {
    transform:rotate(405deg);
  }
}