*{
	margin:0px;
	padding:0px;
}

html, body{
	background-color:black;
	overflow:hidden;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-text-size-adjust: none;
}

::selection {
	background: transparent;
	}
::-moz-selection {
	background: transparent;
}

canvas{
	position:absolute;
	display:block;
	z-index:5;
}

#loadingScreen{
	position:absolute;
	display:block;
	z-index:999;
	width:100%;
	height:100%;
}

.fs_scaled_element:-webkit-full-screen, .fs_scaled_element:-webkit-full-screen canvas{
	width:100%;
	height:100%;
	display:block;
}
.fs_scaled_element:-moz-full-screen{
	width:100%;
	height:100%;
	display:block;
}

img{
	position: relative;
	margin:auto;
	z-index: 999;
}

/* iOS7 FIX STYLES */

#ios7
{
	display: none;
}

#ios7 img
{
	z-index: 100001;
}

#ios7
{
	position: absolute;
	top: 0;
	left: 0;
	padding: 10px 10px 144px 10px;
	width: 100%;
	height: auto;
	background: url('overlay/ios7-bg-fill.png');
	z-index: 100000;
	box-sizing: border-box;
}
	
#ios7 #box
{
	position: relative;
	overflow: hidden;
	display: table;
	padding: 20px;
	width: 100%;
	height: 100%;
	border: solid 1px white;
	border-radius: 5px;
	text-align: left;
	box-sizing: border-box;
}
	
#ios7 #box #message
{
	position: relative;
	font-family: Matterhorn, Arial, Helvetica, sans-serif;
	font-size: 13.8pt;
	display: table-cell;
	vertical-align: middle;
	color: #ffffff;
	width: 100%;
	padding-top: 2%;
	height: 100px;
}
	
#ios7 span
{
	display: block;
}

#ios7 #icon
{
	position: relative;
	float: left;
	margin: 3% 4%;
}
	
#ios7 #add-button
{
	position: relative;
	float: right;
	margin: 3% 4% 3% 0;
}
	
#ios7 #close-button
{
	display: block;
	position: absolute;
	right: 0;
	top: 0;
}
	
#ios7 #options-button
{
	position: relative;
	top: 2px;
	margin-top: -2px;
}

#ios7 #arrow
{
	display: block;
	margin-top: 10px;
}

#ios7.portrait
{
	padding: 10px 10px 144px 10px;
	height: 100%;
}

#ios7.portrait #box
{
	text-align: center;
}

#ios7.portrait #box #message
{
	padding: 0;
}

#ios7.portrait #icon
{
	float: none;
}
	
#ios7.portrait #add-button
{
	margin: 0 40% -66%;
	float: none;
	clear: both;
}