@font-face {
	font-family: 'Kanit-Medium';
	src: url('fonts/kanit-medium.woff2') format('woff2'),
		url('fonts/kanit-medium.woff') format('woff'),
		url('fonts/kanit-medium.ttf')  format('truetype');
}
@font-face {
	font-family: 'Kanit-SemiBold';
	src: url('fonts/kanit-semibold.woff2') format('woff2'),
		url('fonts/kanit-semibold.woff') format('woff'),
		url('fonts/kanit-semibold.ttf')  format('truetype');
}
@font-face {
	font-family: 'Kanit-LightItalic';
	src: url('fonts/kanit-lightitalic.woff2') format('woff2'),
			url('fonts/kanit-lightitalic.woff') format('woff'),
			url('fonts/kanit-lightitalic.ttf') format('truetype');
}

@font-face {
	font-family: 'Kanit-SemiBoldItalic';
	src: url('fonts/kanit-semibolditalic.woff2') format('woff2'),
			url('fonts/kanit-semibolditalic.woff') format('woff'),
			url('fonts/kanit-semibolditalic.ttf') format('truetype');
}

/*@font-face {
	font-family: 'OpenSans-Extrabold';
	src: url('fonts/OpenSans-Extrabold.woff2') format('woff2'),
			url('fonts/OpenSans-Extrabold.woff') format('woff'),
			url('fonts/OpenSans-Extrabold.ttf') format('truetype');
}*/
@font-face {
	font-family: 'OpenSans-Semibold';
	src: url('fonts/OpenSans-Semibold.woff2') format('woff2'),
			url('fonts/OpenSans-Semibold.woff') format('woff'),
			url('fonts/OpenSans-Semibold.ttf') format('truetype');
}
@font-face {
	font-family: 'OpenSans-SemiboldItalic';
	src: url('fonts/OpenSans-SemiboldItalic.woff2') format('woff2'),
			url('fonts/OpenSans-SemiboldItalic.woff') format('woff'),
			url('fonts/OpenSans-SemiboldItalic.ttf') format('truetype');
}

html,body {
	background-color: #000;
	margin: 0;
	padding: 0;
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	height: 100%;
}

canvas {
	display: block;
	width: 100%;
	height: 100%;
}

#gameHolder {
	font-family: 'Kanit-SemiBoldItalic';
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

#gameHolder:before {
	position: absolute;
	z-index: -5;
	text-indent: -9999px;
	content: "1";
	display: block;
	font-family: 'Kanit-Medium';
	color: white;
	font-size: 0px;
}

#gameHolder:after {
	position: absolute;
	z-index: -5;
	text-indent: -9999px;
	content: "1";
	display: block;
	font-family: 'Kanit-LightItalic';
	color: white;
	font-size: 0px;
}

#gameCanvas {
	position: absolute;
	z-index: 0;
}

/*#gameCanvas:before {
	font-family: 'Kanit-SemiBoldItalic';
	position: absolute;
	z-index: 0;
}*/

#gameCanvas3d {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	position: absolute;
}

#textInputHolder {
	border-style: solid;
	border-color: #00ffff;
	background-color: #ffffff;
	background-image: url( 'images/enter_code.png' );
    background-repeat: no-repeat;
	background-position: top right;
	opacity: 0;
	transition: opacity 250ms;
	position: absolute;
	top: 76%;

	height: 52px;
	width: 215px;

}

#codeInput {
	position: absolute;
	background-color: transparent;
	outline: none;
	border: 0px;
	margin: 0px;
	width: 75%;
	height: 100%;
	text-align: center;
	color: #766A6A;
	font-size: 20px;
	font-family: 'Kanit-SemiBold';
}

#codeCopyHolder {

	display: none;
	position: absolute;
	background-color: rgba(255,0,0,0.01);
	/*text-align: center;
	color: #ffff00;
	font-size: 30px;
	font-family: 'Kanit-SemiBold';
	outline: none;
	border: 0px;
	margin: 0px;*/

/*	width: 130px;
	height: 40px;*/

}

#codeCopyInput {

	display: block;
	position: absolute;
	background-color: transparent;
	text-align: center;
	color: #ffff00;
	font-size: 30px;
	font-family: 'Kanit-SemiBold';
	outline: none;
	border: 0px;
	margin: 0px;

	width: 190px;
	height: 40px;

}

/*#codeCopyHolder:{


},*/

.overlay {
	position:absolute;
	width: 100%;
	height: 100%;
	background-color:rgba(0,0,0,0.5);
	z-index: 5;
	opacity:0;
	transition: opacity 500ms;
	display: none;

   user-select: none;
   -o-user-select:none;
   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;

}

.overlay .inner {
	background-image:url('images/share_dialog.png');
	color:#ffff00;
	position:absolute;
	top:50%;
	left:50%;
	width:528px;
	height:365px;
	margin:auto;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.overlay .landscapeRequest {
	
	background-image:url('images/rotate_screen.jpg');
	width: 418px;
	height: 418px;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);

}

.overlay .close {
	position:absolute;
	left:430px;
	top:30px;
	z-index: 8;
	cursor: pointer;
}

.overlay p {
	position:relative;
	top:45%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	font-family: 'Kanit-LightItalic';
	text-align: center;
	line-height: 1.5em;
	font-size:25px;
	padding:80px;
	margin: 0;
}

#textInputHolder {
	position: absolute;
	z-index: 2;
}

/**
 * Compatibility
 */
#compatibility {
	display: none;
	width: 100%;
	height: 100%;
	color: #FFF;
	z-index: 9999;
	font-size: 60px;
	font-family: Kanit-Medium;
	text-align: center;
	position: relative;
	background: url(compatibility.jpg) no-repeat center center;
	background-size: contain;
}