
* {
	-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
	-webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
	-webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
	-webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
	background-color:#000000;
	color:#FFFFFF;
	width:100%;
	height:100%;

    margin:0;
    padding:0;
}

#app {
	position: relative;
	width:1112px;
	height:832px;
	background:#000000;

	transform-origin:0 0;
}
#app.ready {

}
/*
#tmpcanvas{
	display: none;
	background: fuchsia;
	position: absolute;
	bottom:0;
	left:0;
	width:476px;
	height:1061px;
	transform: scale(.5);
	transform-origin: 0 100%;
}*/

#size{
	display: none;
	position: absolute;
	top:0;
	left:0;
	font-size: 30px;
	font-family: menlo;
	color:#FFF;
	z-index:1000;
	opacity: .25;
}

	#logo{
		position: absolute;
		top:50%;
		left:50%;
		width:552px;/*138px;*/
		height:220px;/*55px;*/
		transform: translate(-50%, -50%);
		background:url(../images/logo.png);
		background-size: 100% 100%;
		z-index: 99;

		image-rendering: -moz-crisp-edges;
		image-rendering: -webkit-crisp-edges;
		image-rendering: pixelated;
		image-rendering: crisp-edges;
	}

	#waiting{
		position: absolute;
		bottom:0;
		left:0;
		width:100%;
		font-size: 30px;
		line-height: 100px;
		font-family: menlo;
		text-align: center;
		color:red;
	}
	.ready #waiting{
		display: none;
	}

	#settings{
		display: none;
		list-style: none;
		margin:0;
		padding:0;
		position: absolute;
		bottom:0;
		left:0;
		width:100%;
		line-height: 100px;
		font-size: 30px;
		font-family: menlo;
		/*background: #000000;*/
	}

		#settings li{
			display: block;
			float:left;
			padding:0 30px;
		}

		#settings li.working{
			pointer-events: none;
			opacity: .5;
		}

		#settings li#setting_start{
			float:right;
		}

		#settings li#setting_reset{
			position: absolute;
			top: -732px;
			right: 0;
		}

		#settings li#setting_music{
			position: absolute;
			top: -707px;
			left: 0;
			line-height: 50px;
			height: 50px;
		}

		#settings li#setting_sound{
			position: absolute;
			top: -657px;
			left: 0;
			line-height: 50px;
			height: 50px;
		}


	.ready #settings{
		display: block;
	}


	#game{
		position: absolute;
		top:0;
		left:0;
		width:1112px;
		height:832px;
		background:#000000;
		display: none;
	}

	.game #game{
		display: block;
	}

		#canvas{
			width:1112px;
			height:832px;

			image-rendering: -moz-crisp-edges;
			image-rendering: -webkit-crisp-edges;
			image-rendering: pixelated;
			image-rendering: crisp-edges;
		}

#app.fake{
	position:absolute;
	top:0;
	left:0;

	transform:scale(.5);
}

	#app.fake #canvas{

	}

	#app.settings::before{
		display: block;
		content:"";
		position: absolute;
		top:0;
		left:0;
		width:100%;
		height:100%;
		pointer-events: none;
		border:20px solid #eae65a;
		box-sizing: border-box;
	}
	#app.settings::after{
		display: block;
		content:"";
		position: absolute;
		top:0;
		left:0;
		width:100%;
		height:100%;
		pointer-events: none;
		border:1px solid #d55647;
		box-sizing: border-box;
	}

	#faketv{
		display: block;
		margin:0;
		padding:0;
		border:0;
		background:#000000;
		width:1920px;
		height:1080px;

		position: absolute;
		top:0;
		left: 556px;

		left:calc(556px + 540px + 5px);
		transform: scale(.5) rotate(90deg);
		transform-origin: 0 0;
	}




.capture #app.fake{
	top:auto;
	bottom: 20px;
	left: 20px;
	transform: scale(0.8) !important;
	transform-origin: 0 100%;
}

.capture #faketv{
	right: -105%;
	left: auto;
	top:20px;
	transform: scale(.535) rotate(90deg);
}

.capture2 #app.fake{
	z-index: 2
}

.capture2 #faketv{
	right: -105%;
	left: auto;
	transform: scale(1) rotate(90deg) translateX(-900px)
}


/*.capture::before{
	content:"";
	display: block;
	width:100%;
	height:100%;
	background: url(http://dev.bnmln.com/intelia/jeu_101/css/ipad.png);

	background-repeat: no-repeat;
	background-position: 0% 0%;
	position: absolute;
	right:0;
	top:0;
}


.arcade::before{
	content:"";
	display: block;
	width:1080px;
	height:500%;
	background: url(http://dev.bnmln.com/intelia/jeu_101/css/arcade2.jpg);

	background-size: contain;
	background-repeat: no-repeat;
	background-position: 100% 0%;
	position: absolute;
	right:0;
	top:0;
}*/