@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600);

body, html {
	overflow: hidden;
	height: 100%;
	font-size: 62.5%;
	font-family: 'Open Sans', Helvetica, Arial, Verdana, sans-serif;
}

#map {
	position: absolute;
	top: 0;
	bottom: -30px;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 0;
}

#content {
	position: relative;
	z-index: 1;
	top: 25%;
	left: 20%;
	width: 600px;
}

h1, h2, h3, p {
	color: #fff;
	background-color: rgba(0,0,0,0.85);
	display: inline-block;
	padding: 1rem;
}

h1, h2, p {
	float: left;
	clear: both;
	margin-bottom: 3px;
}

h1 {
	font-size: 4.8rem;
	font-weight: 600;
	padding: 0.8rem 1rem 1.8rem;
}

h2, p {
	font-size: 1.4rem;
}

h3, ul li {
	font-size: 1.2rem;
}

p {
	visibility: hidden;
}

a {
	color: #fff;
	text-decoration: none;
}

h2 a, p a {
	-webkit-transition: color 0.3s ease-in-out;
	-moz-transition: color 0.3s ease-in-out;
	-o-transition: color 0.3s ease-in-out;
	-ms-transition: color 0.3s ease-in-out;
	transition: color 0.3s ease-in-out;
}

h2 a:hover, p a:hover {
	color: #999;
}

#contact {
	clear: both;
	position: absolute;
	top: 185px;
	left: 0;
	background-color: rgba(0,0,0,0.1);
	padding: 5px;
}

#contact::before {
	content: '';
	display: block;
	border-top: 8px solid rgba(0,0,0,0.1);
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	position: absolute;
	bottom: -8px;
	left: 8px;
}

#contact::after {
	content: '';
	display: block;
	width: 47px;
	height: 67px;
	position: absolute;
	bottom: -75px;
	left: -22px;
	background: url(../img/me.png) no-repeat;
}

ul, ul li {
	display: inline-block;
}

ul li {
	font-weight: 600;
	margin-left: 3px;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

ul li a {
	padding: 1rem;
	display: block;
}

ul li:hover {
	-webkit-transform: scale(1.2) rotate(3deg);
	-moz-transform: scale(1.2) rotate(3deg);
	-o-transform: scale(1.2) rotate(3deg);
	-ms-transform: scale(1.2) rotate(3deg);
	transform: scale(1.2) rotate(3deg);
	box-shadow: -3px 3px 0 rgba(0,0,0,0.85), 
				-2px 2px 0 rgba(0,0,0,0.85),
				-1px 1px 0 rgba(0,0,0,0.85);
}

ul li:nth-child(2n+1):hover {
	-webkit-transform: scale(1.1) rotate(-3deg);
	-moz-transform: scale(1.1) rotate(-3deg);
	-o-transform: scale(1.1) rotate(-3deg);
	-ms-transform: scale(1.1) rotate(-3deg);
	transform: scale(1.1) rotate(-3deg);
	box-shadow: 3px 3px 0 rgba(0,0,0,0.85),
				2px 2px 0 rgba(0,0,0,0.85),
				1px 1px 0 rgba(0,0,0,0.85);
}

ul li:active {
	position: relative;
	top: 1px;
	left: -1px;
	box-shadow:	-2px 2px 0 rgba(0,0,0,0.85),
				-1px 1px 0 rgba(0,0,0,0.85);
}

ul li:nth-child(2n+1):active {
	left: 1px;
	box-shadow:	2px 2px 0 rgba(0,0,0,0.85),
				1px 1px 0 rgba(0,0,0,0.85);
}

ul li:nth-child(1), ul li:nth-child(2), ul li:nth-child(3) {
	background-color: #777;
}

ul li:nth-child(4) {
	background-color: #44a3c7;
}

ul li:nth-child(5) {
	background-color: #b737b2;
}

ul li:nth-child(6) {
	background-color: #6eb53f;
}

ul li:nth-child(2), ul li:nth-child(3) {
	display: none !important;
}

/* @group Mobile */

@media only screen and (max-width: 480px) {
	
	#content {
		width: 100%;
		left: 0;
		top: 25px;
	}
	
	h2, p {
		font-size: 1.2rem;
	}
	
	#contact {
		display: block;
		width: 100%;
		padding: 5px 0;
	}

	#contact::before {
		left: 60px;
	}

	#contact::after {
		left: 30px;
	}
	
	h3 {
		display: none;
	}
	
	ul {
		display: block;
		padding: 0 3px;
		position: relative;
		overflow: hidden;
		height: 42px;
	}

	ul li {
		font-size: 1.1rem;
		width: 32%;
		text-align: center;
		line-height: 2;
		font-weight: bold;
		-webkit-transition: none;
		-moz-transition: none;
		-o-transition: none;
		-ms-transition: none;
		transition: none;
		-webkit-transform: none !important;
		-moz-transform: none !important;
		-o-transform: none !important;
		-ms-transform: none !important;
		transform: none !important;
		box-shadow: none !important;
	}
	
	ul li:nth-child(2), ul li:nth-child(3) {
		display: inline-block !important;
	}
	
}

@media only screen and (orientation:landscape) and (max-width: 480px) {
	
	#contact {
		display: none;
	}
	
	#content p {
		background: none;
		position: relative;
		text-indent: -10000em;
	}
	
	#content p::before {
		content: 'Rotate your device for contact information.';
		color: #fff;
		background-color: rgba(0,0,0,0.85);
		padding: 1rem;
		position: absolute;
		top: 0;
		left: 0;
		text-indent: 0;
		width: 245px;
	}
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
	
	#contact::after {
		background: url(../img/me@2x.png) no-repeat;
		-webkit-background-size: 47px 67px;
	}
	
}

/* @end */