@font-face {
    font-family: 'Novecentosanswide-Book';
    src: url('fonts/Novecentosanswide-Book-webfont.woff2') format('woff2'),
         url('fonts/Novecentosanswide-Book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Novecentosanswide-Medium';
    src: url('fonts/Novecentosanswide-Medium-webfont.woff2') format('woff2'),
         url('fonts/Novecentosanswide-Medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
}

html {
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
}
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 50px;
	background: #333;
	box-sizing: border-box;
	font-size: 16px;
}
body * {
	box-sizing: border-box;
}
h1, h2, h3, h4 {
  font-family: 'Novecentosanswide-Medium';
  text-transform: uppercase;
	letter-spacing: 2px;
}
.game:before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.3);
	left: 0;
	top: 0;
}
.game {
	overflow: hidden;
	position: relative;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-image: url(../img/aerial_3.jpg);
}
.plane {
	position: absolute;
	transition: opacity 1s;
	opacity: 1;
}
.plane .tooltip {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	top: -60px;
	left: 50%;
	background: rgba(0,0,0,0.9);
	color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	padding: 5px;
	width: 130px;
	margin-left: -65px;
	transition: opacity 0.5s, visibility 0.5s;
	font-size: 12px;
}
.plane .tooltip:after {
	position: absolute;
	content: '';
	bottom: -6px;
	left: 50%;
	margin-left: -5px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #fff;
}
.plane:hover .tooltip {
	visibility: visible;
	opacity: 1;
}
.plane .tooltip .row {
	display: block;
	line-height: 14px;
	padding: 3px;
	white-space: nowrap;
}
.plane .tooltip .row span {
	white-space: nowrap;
	display: inline-block;
}
.plane .tooltip .label {
	width: 50px;
}
.plane.fade_out {
	opacity: 0;
}
.plane .container {
	transition: transform;
	transition-timing-function: linear;
	width: 100px;
	height: 100px;
	display: block;
	perspective: 100px;
}
.plane.collision:before {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ff0000+0,ffffff+100&1+0,0+60 */
	background: -moz-radial-gradient(center, ellipse cover, rgba(255,0,0,1) 0%, rgba(255,153,153,0) 60%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
	background: -webkit-radial-gradient(center, ellipse cover, rgba(255,0,0,1) 0%,rgba(255,153,153,0) 60%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
	background: radial-gradient(ellipse at center, rgba(255,0,0,1) 0%,rgba(255,153,153,0) 60%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff0000', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.plane .container img {
	width: 100%;
	height: 100%;
	transition: transform 1s;
	transform: rotateY(0);
}
.plane.left_curve .container img {
	transform: rotateY(-20deg);
}
.plane.right_curve .container img {
	transform: rotateY(20deg);
}
.plane .direction {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.plane.show_direction .direction {
	display: block;
}
.plane .direction .arrow {
	width: 1px;
	height: 100%;
	background: red;
	display: block;
	position: absolute;
	left: 50%;
	bottom: 100%;
}
.spawner {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.spawner div {
	position: absolute;
	width: 50px;
	height: 50px;
}
.spawner .top {
	top: 100px;
}
.spawner .bottom {
	bottom: 100px;
}
.spawner .left {
	left: -100px;
}
.spawner .right {
	right: -100px;
}

/* Airports */
.airport {
	position: absolute;
	animation: fade-in 1s ease-in 1;
}
.airport .mobile {
	display: none;
}
.airport.top {
	top: 0;
}
.airport.bottom {
	bottom: 0;
}
.airport.left {
	left: 200px;
}
.airport.right {
	right: 200px;
}
.airport.middle {
	left: 50%;
}
.airport.top.middle {
	top: 50px;
}
.airport.bottom.middle {
	bottom: 100px;
}
.airport .pin {
	width: 30px;
	height: 30px;
	text-align: center;
	line-height: 28px;
	background: rgba(0,0,0,0.9);
	border-radius: 3px;
	border: 1px solid #eee;
	position: absolute;
	left: 50%;
	margin-left: -16px;
	top: 20px;
	font-weight: 400;
}
.airport .pin:before {
	position: absolute;
	content: '';
	bottom: -5px;
	left: 50%;
	margin-left: -5px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #eee;
}

@keyframes fade-in {
   0% {opacity: 0;}
   100% {opacity: 1;}
}

/* Buttons */
.button {
	background: #fff;
	border-radius: 20px;
	color: #5d5d5d;
	display: inline-block;
	line-height: 40px;
	padding: 0 30px;
	margin: 5px;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
}
.button:hover {
	background: #5d5d5d;
	color: #fff;
}

/* Controls */
.game .controls.hide {
	top: -400px;
	margin-top: 0;
}
.game .controls {
	text-align: center;
	width: 360px;
	height: 400px;
	background: rgba(255,255,255,0.8);
	border-radius: 2px;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -180px;
	margin-top: -200px;
	z-index: 500;
	transition: all 1s;
	border: 2px solid #333;
}
.game .controls .lug {
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 60px;
	margin-left: -30px;
	height: 20px;
	background: #333;
	color: #fff;
	cursor: pointer;
	text-align: center;
	transition: bottom 1s;
}
.game .controls.hide .lug {
	bottom: -20px;
}
.game .controls .lug span {
	line-height: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: top;
	transform: rotate(0);
	transition: transform 1s;
}
.game .controls.hide .lug span {
	transform: rotate(180deg);
}
.game .controls .button {
	margin-top: 10px;
}
.game .controls .hidden {
	display: none;
}
.game .controls .template h2 {
	background: #02336b;
	color: #fff;
	width: 100%;
	text-align: center;
	padding: 20px;
	margin: 0 0 20px 0;
	line-height: 40px;
}
.game .controls .template.collision h2 {
	background: #941918;
}
.game .controls .template .text {
	padding: 0 10px;
}
.game .controls .template .text .label,
.game .controls .template .text .value {
	display: inline-block;
	white-space: nowrap;
	text-align: left;
}
.game .controls .template .text .label {
	width: 150px;
}
.game .controls .template .text .value {
	width: 70px;
	font-weight: 400;
}

/* Splash */

.game.init .splash {
	opacity: 1;
	visibility: visible;
}
.game .splash {
	opacity: 0;
	visibility: hidden;
	background: #024698;
	text-align: center;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 1000;
	color: #fff;
	
	transition: opacity 0.5s, visibility 0.5s;
}
.game .splash:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.3+100 */
	background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%); /* FF3.6-15 */
	background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%); /* Chrome10-25,Safari5.1-6 */
	background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#4d000000',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.game .splash .text {
	top: 25%;
	width: 100%;
	position: relative;
	padding: 0 10px;
}
.game .splash .text h1 {
	margin-bottom: 40px;
}
.game .splash .text .button {
	margin-top: 40px;
}
.game .splash .logo {
	left: 50%;
	margin-left: -80px;
	width: 160px;
	position: absolute;
	bottom: 50px;
}

/* Statistics */
.game .statistics {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: 20px;
	text-align: center;
}
.game .statistics ul {
	bottom: 0;
	background: rgba(9,34,100,0.7);
	color: #fff;
	border-radius: 3px;
	margin: 0;
	padding: 10px;
	display: inline-block;
}
.game .statistics ul li {
	display: inline-block;
	float: left;
	padding: 0 10px;
	border-left: 1px solid #fff;
}
.game .statistics ul li:first-child {
	border-left: none;
}
.game .statistics ul li p {
	margin: 0;
	vertical-align: top;
}
.game .statistics ul li p.label {
	font-size: 12px;
	text-transform: uppercase;
	float: left;
}
.game .statistics ul li p.label:after {
	content: ':';
}
.game .statistics ul li p.value {
	font-size: 40px;
	line-height: 32px;
	display: inline-block;
	float: right;
	padding: 0 10px;
}
.game .statistics ul li p span:empty {
	display: none;
}
.game .statistics ul li p .hours:after,
.game .statistics ul li p .minutes:after {
	content: ':';
}
.game .statistics ul:after,
.game .statistics ul li:after {
	content: '.';
	display: block;
	clear: both;
	visibility: hidden;
	height: 0;
}

/* Level Update */
.level_update {
	opacity: 0;
	visibility: hidden;
	color: #fff;
	transition: opacity 0.5s, visibility 0.5s;
}
.level_update.show {
	opacity: 1;
	visibility: visible;
}
.level_update p {
	font-size: 80px;
	text-align: center;
	width: 100%;
	position: absolute;
	top: 50%;
	margin-top: -50px;
	line-height: 100px;
	text-shadow: 0 0 20px #000;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 400;
}

/* Links */
.links {
	position: absolute;
	right: 50px;
	bottom: 20px;
	font-size: 14px;
}
.links a {
	color: #fff;
	text-decoration: none;
}

@media screen and (max-width: 812px) {

	body {
		padding: 10px;
		font-size: 14px;
	}
	.plane .container {
		width: 50px;
		height: 50px;
	}
	
	.game .controls.hide {
		top: -340px;
	}
	.game .controls {
		height: 340px;
		margin-top: -170px;
	}
	.game .splash .logo {
		bottom: 10px;
	}
	.game .splash .text {
		top: 0;
	}
	.game .splash .text h1 {
		margin-bottom: 20px;
	}
	.game .splash .text .button {
		margin-top: 10px;
	}
	.game .statistics {
		bottom: 10px;
	}
	.game .statistics ul {
		padding: 10px 5px;
	}
	.game .statistics ul li {
		padding: 0 5px;
	}
	.game .statistics ul li p.label {
		font-size: 10px;
	}
	.game .statistics ul li p.value {
		font-size: 30px;
		line-height: 22px;
		padding: 0 0 0 5px;
	}
	
	.airport .desktop {
		display: none;
	}
	.airport .mobile {
		display: block;
	}
	
	.airport.bottom {
		bottom: 0;
	}
	.airport.left {
		left: 50px;
	}
	.airport.right {
		right: 50px;
	}
	.airport.middle {
		left: 50%;
	}
	.airport.top.middle {
		top: 30px;
	}
	.airport.bottom.middle {
		bottom: 70px;
	}
	.airport .pin {
		width: 24px;
		height: 24px;
		line-height: 22px;
		margin-left: -13px;
		top: 10px;
	}
	.airport .pin:before {
		content: none;
	}
	.links {
		display: none;
	}
}
