html.tablet,
html.desktop{
	overflow: auto;
}

body.tablet,
body.desktop{
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	-webkit-user-select:none;
	
	min-width: 1024px;
	min-height: 800px;
}
body{
	background-color: #000;
	background-image: url('../images/background.jpg');
	background-position: 50% -500px;
	background-repeat: no-repeat;
	font-family: "Verdana";
	margin:0px;
	padding:0px;
}
body.mobile{
	position: relative !important;
	width: auto !important;
	height: auto !important;
	min-width: auto !important;
	min-height: auto !important;
	overflow: none !important;
	min-width: none !important;
	min-height: none !important;
	background-position: 60% -500px !important;
	-webkit-user-select:all !important;
}
body.mobile>img[style="visibility:hidden"]{
	display: none;
}
body.tablet *,
body.desktop *{
	-webkit-user-select:none;
	-moz-user-select:none;
	user-select:none;
}
body.mobile div{
	position: relative ;
	width: auto ;
}
#debug{
	background-color: rgba(0,0,0,.5);
	width: 250px;
	position: absolute;
	color:#fff;
	font-size: 12px;
	padding: 10px;
}
a img{
	border: 0 none;
}
canvas{
	display: block;
	//border:1px solid #000;
	top:50%;
	left:50%;
	margin-top: -400px;
	position: absolute;
	margin-left: -600px;
	-webkit-user-select:none;
	-moz-user-select:none;
	user-select:none;
	top:0px;
	margin-top:0px;
}
body.mobile canvas{
	display: none;
}
#logo{
	position: absolute;
	z-index: 9999;
	top: 20px;
	left: 50%;
	margin-left: -490px;
}
#logo img{
	width: 80px;
}
body.mobile #logo{
	position: relative;
	margin: 0;
	top: 10px;
	left: 0;
	padding:10px;
	height: 100px;
	display: block;

}

#stars{
	font-size: 0;
	width: 204px;
	position: absolute;
	left: 50%;
	margin-left: -102px;
	top:700px;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;
	visibility: hidden;
	opacity: 0;
}
#stars.active{
	visibility: visible;
	opacity: 1;
}
body.mobile #retryButton,
body.mobile #nextLevelButton,
body.mobile #levelSelect,
body.mobile #stars{
	display: none;
}
.star{
	width: 68px;
	height: 65px;
	background-image: url('../images/star-empty.png');
	background-repeat: no-repeat;
	display: inline-block;
}
.star.active{
	width: 68px;
	height: 65px;
	background-image: url('../images/star-full.png');
	background-repeat: no-repeat;
	display: inline-block;
}
.button{
	display: inline-block;
	background: #64cbe5; /* Old browsers */
	background: -moz-linear-gradient(top,  #64cbe5 1%, #06b2e0 42%, #009dc4 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#64cbe5), color-stop(42%,#06b2e0), color-stop(100%,#009dc4)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #64cbe5 1%,#06b2e0 42%,#009dc4 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #64cbe5 1%,#06b2e0 42%,#009dc4 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #64cbe5 1%,#06b2e0 42%,#009dc4 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #64cbe5 1%,#06b2e0 42%,#009dc4 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#64cbe5', endColorstr='#009dc4',GradientType=0 ); /* IE6-9 */
	color:#fff;
	font-size: 16px;
	font-weight: bold;
	padding:10px;
	border-radius: 5px;
	box-shadow: 0px 0px 16px rgba(255,255,255,0) inset, 0px 2px 8px #333;
	-webkit-box-shadow: 0px 0px 16px rgba(255,255,255,0) inset, 0px 2px 8px #333;
	cursor: pointer;

	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;

	vertical-align: top;

	background-position: 0 33%;
	background-size: 100% 300%;

}

.hud{
	position: absolute;
	width: 100%;
	z-index: 999;
}
body.mobile .hud{
	position: relative;
	width: auto;
}
#nextLevelButton{
	position: absolute;
	left: 50%;
	margin-left: 200px;
	top:713px;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;
	visibility: hidden;
	opacity: 0;
}
#retryButton{
	position: absolute;
	left: 50%;
	margin-left: 119px;
	top:713px;
	background: #06b2e0; /* Old browsers */
	background: -moz-linear-gradient(top,  #06b2e0 0%, #0266b6 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#06b2e0), color-stop(100%,#0266b6)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #06b2e0 0%,#0266b6 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#06b2e0', endColorstr='#0266b6',GradientType=0 ); /* IE6-9 */
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;
	visibility: hidden;
	opacity: 0;
	background-position: 0 33%;
	background-size: 100% 300%;
}
#retryButton.active,
#nextLevelButton.active{
	visibility: visible;
	opacity: 1;
}
.clear{
	clear: both;
}
#HowTo{
	width: 400px;
	background-color: #333;
	position: absolute;
	left:50%;
	margin-left: -221px;
	top: 200px;
	border-radius: 5px;
	box-shadow: 0px 0px 30px #000;
	text-align: center;
	visibility: hidden;
	opacity: 0;
	border:1px solid #444;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;
	z-index: 999;
	text-align: left;
	color:#fff;
	font-size: 14px;
	padding-left:20px;
	padding-right: 20px;
	padding-bottom: 0px;
	opacity: 0;
	visibility: hidden;
}
#HowTo.active{
	visibility: visible;
	opacity: 1;
}
body.mobile #HowTo{
	display: none;
}
	#HowTo .title{
		color:#ccc;
		font-size: 20px;
		font-weight: bold;
		padding-left:20px;
		padding-top: 20px;
		margin:0px;
		line-height: 1;
		text-align: left;
		margin-bottom: 20px;
		margin-left: -20px;
	}
	#HowTo .inst{
		clear: both;
		padding-top: 20px;
		border:2px solid #666;
		padding:20px;
		border-radius: 5px;
		margin-bottom:20px;
		}
	#HowTo .inst p{
		margin:0px;
	}
	#HowTo img{
		float: left;
		width: 60px;
		padding-right: 10px;
	}


#levelSelect{
	width: 400px;
	height: 223px;
	
	position: absolute;
	left:50%;
	margin-left: -200px;
	top: 200px;

	box-shadow: 0px 0px 30px #000;
	text-align: center;
	visibility: hidden;
	opacity: 0;
	border:1px solid #444;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;

	background-color: #333;
}
#levelSelect.active{
	visibility: visible;
	opacity: 1;
}
	#levelSelect .title{
		color:#ccc;
		font-size: 20px;
		font-weight: bold;
		padding-left:20px;
		padding-top: 20px;
		margin:0px;
		margin-bottom: 20px;
		line-height: 1;
		text-align: left;
	}
	#levelSelect .level{
		display: inline-block;
		margin:10px;
		border-radius: 10px;
		padding:10px;
		text-align: center;
		cursor: pointer;
		position: relative;
	}
	#levelSelect .level:hover{
		background-color: #2992e1;
	}
	#levelSelect .level.locked:hover{
		background-color: transparent;
		cursor: default;
	}
		#levelSelect .level.locked .lock{
			position: absolute;
			left: 0px;
			top: 0px;
			bottom: 0px;
			right: 0px;
			background-image: url('../images/lock.png');
			background-repeat: no-repeat;
			background-position: center center;
		}
		#levelSelect .stars{
			padding-top: 10px;
		}
			#levelSelect .stars .star{
				width: 20px;
				height: 19px;
				background-image: url('../images/star-empty-small.png');
				font-size: 0;
			}
			#levelSelect .stars .star.active{
				background-image: url('../images/star-full-small.png');
			}
		#levelSelect .thumb{
			width: 60px;
			height: 60px;
			border-radius:5px;
			-webkit-box-shadow:0px 2px 5px #000; 
			border:4px solid #00b3d9;
			display: inline-block;
			position: relative;
			overflow: hidden;
		}
			#levelSelect .thumb img{
				min-height: 100%;
				max-height: 100%;
			}
	#overlay{
		position: fixed;
		left: 0px;
		top: 0px;
		bottom: 0px;
		right: 0px;
		z-index: 888;
		background-image: url('../images/overlay.png');
		visibility: hidden;
		opacity: 0;
		-webkit-transition:.25s;
		-moz-transition:.25s;
		transition:.25s;
	}
	#overlay.active{
		visibility: visible;
		opacity: 1;
	}
	#overlay.intro{
		visibility: visible;
		opacity: 1;
		z-index: 0;
	}



	#intro{
		position: absolute;
		width: 600px;
		left:50%;
		margin-left: -300px;
		text-align: center;
		height: 300px;
		vertical-align: top;
		top: 190px;
		-webkit-transition:1s;
		-moz-transition:1s;
		transition:1s;
		visibility: hidden;
		opacity: 0;
	}

	#intro.active{
		visibility: visible;
		opacity: 1;
	}
	body.mobile #intro{
		display: none;
	}
		#intro .button{
			background: #06b2e0; /* Old browsers */
			background: -moz-linear-gradient(top,  #06b2e0 0%, #0266b6 100%); /* FF3.6+ */
			background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#06b2e0), color-stop(100%,#0266b6)); /* Chrome,Safari4+ */
			background: -webkit-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* Chrome10+,Safari5.1+ */
			background: -o-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* Opera 11.10+ */
			background: -ms-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* IE10+ */
			background: linear-gradient(to bottom,  #06b2e0 0%,#0266b6 100%); /* W3C */
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#06b2e0', endColorstr='#0266b6',GradientType=0 ); /* IE6-9 */
			background-position: 0 33%;
			background-size: 100% 300%;
			width: 181px;
			margin:10px;
			text-decoration: none;
		}
		#intro .button:hover{
			background-position: 0 0%;
		}
		#intro .separator{
			display: inline-block;
			height: 200px;
			width: 1px;
			
			background-color: rgba(255,255,255,.5);
			margin:20px;
			margin-top: -80px;
			-webkit-box-shadow:0px 0px 30px #000; 
		}
	#introMobile{
		position: relative;
		text-align: center;
		vertical-align: top;
		top: 0px;
		-webkit-transition:1s;
		-moz-transition:1s;
		transition:1s;
		visibility: hidden;
		opacity: 0;
	}
	#introMobile.active{
		visibility: visible;
		opacity: 1;
	}
	#introMobile .introText{
		color: #fff;
		text-align: left;
		padding:20px;
		font-size: 14px;
	}
		#introMobile .button{
			background: #06b2e0; /* Old browsers */
			background: -moz-linear-gradient(top,  #06b2e0 0%, #0266b6 100%); /* FF3.6+ */
			background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#06b2e0), color-stop(100%,#0266b6)); /* Chrome,Safari4+ */
			background: -webkit-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* Chrome10+,Safari5.1+ */
			background: -o-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* Opera 11.10+ */
			background: -ms-linear-gradient(top,  #06b2e0 0%,#0266b6 100%); /* IE10+ */
			background: linear-gradient(to bottom,  #06b2e0 0%,#0266b6 100%); /* W3C */
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#06b2e0', endColorstr='#0266b6',GradientType=0 ); /* IE6-9 */
			background-position: 0 33%;
			background-size: 100% 300%;
			width: auto;
			margin:10px;
			text-decoration: none;
			display: block;
		}
		#introMobile .button:hover{
			background-position: 0 0%;
		}
		#introMobile .separator{
			display: inline-block;
			height: 200px;
			width: 1px;
			
			background-color: rgba(255,255,255,.5);
			margin:20px;
			margin-top: -80px;
			-webkit-box-shadow:0px 0px 30px #000; 
		}
		#introMobile .crossingLogo{
			width: 100%;
		}
		#introMobile .crossingLogo img{
			width: 80%;
		}

body.tablet #introMobile{
	position: absolute;
	width: 500px;
	left:50%;
	margin-left: -300px;
	text-align: center;
	height: 300px;
	vertical-align: top;
	top: 190px;
	-webkit-transition:0s !important;
		-moz-transition:0s !important;
		transition:0s !important;
}

.button:hover{
	background-position: 0 0% !important;
	//box-shadow: 0px 0px 16px rgba(255,255,255,.5) inset, 0px 2px 8px #333;
	//-webkit-box-shadow: 0px 0px 16px rgba(255,255,255,.5) inset, 0px 2px 8px #333;
}
.button.disabled{
	background: #638c9e !important;
	background-image:none !important;
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
	cursor: default;
	color:#94b7c7;
}
#intro .button.disabled{
	background: #888 !important;
	background-image:none !important;
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
	cursor: default;
	color:#aaa;
}

#intro .crossingLogo{
	top: -30px;
	position: relative;
}
#intro .introText{
	color:#fff;
	width: 300px;
	line-height: 1.4;
	text-align: left;
	margin-left: 86px;
	margin-top: 0px;
	margin-bottom: 20px;
	width: 430px;
	font-size: 12px;
}
#Slideshow{
	visibility: hidden;
	opacity: 0;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;
	position: absolute;
	width: 980px;
	height: 550px;
	left: 50%;
	margin-left: -490px;
	top: 140px;
	box-shadow: 0px 2px 30px #000;
	background-color: #333;
}
#Slideshow.active{
	visibility: visible;
	opacity: 1;
}
body.mobile #Slideshow{
	top:0px;
	width: 100% !important;
	left:0;
	margin: 0;
	position: relative;
	height: auto;
	-webkit-transition:0s;
	-moz-transition:0s;
	transition:0s;
}
.slidesjs-previous,
.slidesjs-next{
	position: absolute;
	left: 0px;
	top: 242px;
	z-index: 999;
	width: 52px;
	height: 66px;
	background-image:url('../images/ss-back.png');
	background-repeat: no-repeat;
	text-indent: -9999px;
	overflow: hidden;
}
.slidesjs-next{
	right: 0px;
	left: auto;
	background-image:url('../images/ss-next.png');
}
.slidesjs-pagination{
	position: absolute;
	top: 0px;
	left: 0px;
	padding:0px;
	margin:0px;
	width: 100%;
	z-index: 99;
}
.slidesjs-pagination{
	text-align: center;
	position: absolute;
	top: auto;
	bottom: 0px;
	padding-top: 10px;
	padding-bottom: 10px;
	background-image: url('../images/overlay.png');
}
.slidesjs-pagination-item{
	display: inline-block;
}
.slidesjs-pagination-item a{
	display: block;
	color:#fff;
	text-align: center;
	background-color: #fff;
	text-decoration: none;
	font-size: 10px;
	border-radius: 16px;
	border:2px solid #fff;
	width: 10px;
	height: 10px;
	line-height: 1;
	text-indent: -9999px;
	margin:5px;
}
body.mobile .slidesjs-pagination-item a{
	width: 5px;
	height: 5px;
	margin:3px;
}
.slidesjs-pagination-item a.active{
	border: 2px solid #fff ;
	background-color: #0493cf;
}


body.mobile .slidesjs-previous,
body.mobile .slidesjs-next{
	display: none;
}

#menu{
	position: absolute;
	top: 40px;
	z-index: 99;
	left: 50%;
	margin-left: 131px;
	z-index: 999;
}
#menu .btn{
	float: left;
	padding:10px;
	color:#e0e0e0;
	font-size: 11px;
	background-color: #333;
	background-color: rgba(0,0,0,.3);
	border-top:1px solid #333;
	border-bottom:1px solid #333;
	border-left:1px solid #333;
	cursor: pointer;
	text-decoration: none;

	background: #545454; /* Old browsers */
	background: -moz-linear-gradient(top,  #545454 0%, #282828 99%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#545454), color-stop(99%,#282828)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #545454 0%,#282828 99%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #545454 0%,#282828 99%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #545454 0%,#282828 99%); /* IE10+ */
	background: linear-gradient(to bottom,  #545454 0%,#282828 99%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#545454', endColorstr='#282828',GradientType=0 ); /* IE6-9 */
	background-position: 0 33%;
	background-size: 100% 300%;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;

}
#menu .btn:hover{
	color: #fff;
	background-position: 0 0%;
}
#menu .btn:first-child{
	border-top-left-radius:5px;
	border-bottom-left-radius:5px;
}
#menu .btn:last-child{
	border-right:1px solid #333;
	border-top-right-radius:5px;
	border-bottom-right-radius:5px;
}


body.mobile #menu{
	position: relative;
	margin:0px;
	left: 0;
	padding:10px;
	width: auto;
	top:auto;
}
	body.mobile #menu .btn{
		float: none;
		display: block;
		border-radius: 0;
		width: auto;
		font-size:14px;
		-webkit-transition:0s;
		-moz-transition:0s;
		transition:0s;
		text-align: center;
	}
	body.mobile #menu .btn:first-child{
		border-top-left-radius:5px;
		border-top-right-radius:5px;
	}
	body.mobile #menu .btn:last-child{
		border-right:1px solid #333;
		border-bottom-left-radius:5px;
		border-bottom-right-radius:5px;
	}
#gameMenu{
	position: absolute;
	top:800px;
	right: 40px;
	z-index: 1;
	visibility: hidden;
	opacity: 0;
	-webkit-transition:.25s;
	-moz-transition:.25s;
	transition:.25s;

	left: 50%;
	margin-left: 253px;
}
#gameMenu.active{
	opacity: 1;
	visibility: visible;
}
#gameMenu .btn{
	float: left;
	padding:10px;
	color:#fff;
	font-size: 11px;
	background-color: #333;
	background-color: rgba(0,0,0,.3);
	border-top:1px solid #aaa;
	border-bottom:1px solid #aaa;
	border-left:1px solid #aaa;
	cursor: pointer;
	text-decoration: none;
}
body.mobile #gameMenu{
	display: none;
}
#gameMenu .btn:hover{
	color: #fff;
	background-color: #666;
}
#gameMenu .btn:first-child{
	border-top-left-radius:5px;
	border-bottom-left-radius:5px;
}
#gameMenu .btn:last-child{
	border-right:1px solid #aaa;
	border-top-right-radius:5px;
	border-bottom-right-radius:5px;
}

#browserRequirements{
	color: #fff;
	background-color: #000;
	padding:10px;
	line-height: 1.4;
	text-align: left;
	margin-left: 86px;
	margin-top: 0px;
	margin-bottom: 20px;
	width: 410px;
	font-size: 12px;
	background-color: #333;
	border-radius: 5px;
}
#browserRequirements a,
#browserRequirements a:visited{
	color:#048fcd;
}
#browserRequirements{
	position: relative;
	font-size: 14px;
	padding: 20px;
	width: 389px;
	color:#444;
	background-color: #fff;
}
#browserRequirements .important{
	font-weight: bold;
	color:#990000;
}
#browserRequirements:after{
	content: '';
	width: 0; 
	height: 0; 
	position: absolute;
	left: 95px;
	top: -20px;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	
	border-bottom: 20px solid #fff;
}

body.tablet .digNowButton,
body.mobile .digNowButton{
	display: none !important;
}

