body {
	font-family: 'Lato', sans-serif;
}
body.home {
	background:rgb(255,199,0);
}
body.secondary {
	background:url(/uploads/images/secondary-bg.svg) top center repeat-x rgb(70,70,71);	
	padding-top:200px;
	
}

body.secondary section {
	font-size:16px;
	color:rgb(183,183,184);
	width:450px;
	margin:0 auto;
}

.secondary header {
	width:450px;	
	position:fixed;
	top:30px;
	left:50%;
	margin-left:-225px;	
}
.secondary header h1 {
	float:left;	
}
.secondary header h1 a {
	float:left;
	width:110px;
	height:110px;		
	text-indent:-999em;
	font-size:7px;
	position:relative;	
}
.secondary header h1 a span {
	position:absolute;
	top:0;
	left:0;	
}
.secondary header h1 a .front {
	display:block;
	width:110px;
	height:110px;
	background:url(/uploads/images/global-sprite.svg) no-repeat -170px 0px;
	
	visibility:visible;
	
	-webkit-transform: rotateX(0deg);
	-moz-transform: rotateX(0deg);
	-o-transform: rotateX(0deg);
	-ms-transform: rotateX(0deg);
	transform: rotateX(0deg);

	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;

	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;

	-webkit-transition: all .4s ease-in-out;
	-moz-transition: all .4s ease-in-out;
	-o-transition: all .4s ease-in-out;
	-ms-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
	
	z-index:2;
}
.secondary header h1 a .back {	
	display:block;
	width:110px;
	height:110px;
	background:url(/uploads/images/global-sprite.svg) no-repeat -280px 0px;
	
	visibility:hidden;
	
	-webkit-transform: rotateX(180deg);
	-moz-transform: rotateX(180deg);
	-o-transform: rotateX(180deg);
	-ms-transform: rotateX(180deg);
	transform: rotateY(180deg);

	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;

	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;

	-webkit-transition: all .4s ease-in-out;
	-moz-transition: all .4s ease-in-out;
	-o-transition: all .4s ease-in-out;
	-ms-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
	
	z-index:1;
}
.secondary header h1 a:hover span.front {
	
	visibility:hidden;
	
	-webkit-transform: rotateX(-180deg);
	-moz-transform: rotateX(-180deg);
	-o-transform: rotateX(-180deg);
	-ms-transform: rotateX(-180deg);
	transform: rotateY(-180deg);
	
	z-index:1;
}
.secondary header h1 a:hover span.back {	
	
	visibility:visible;
	
	-webkit-transform: rotateX(0deg);
	-moz-transform: rotateX(0deg);
	-o-transform: rotateX(0deg);
	-ms-transform: rotateX(0deg);
	transform: rotateX(0deg);
	
	z-index:2;
}



.secondary header aside {
	float:left;
	position:relative;
	width:340px;
	height:110px;
	background:rgba(70,70,71,0.95);
	padding:47px 35px 0 35px;
	
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;	
}

.home section {
	position:absolute;
	top:50%;
	left:50%;
	margin:-255px 0 0 -425px;
	width:850px;
	height:510px;	
	background:url(/uploads/images/home-bg.svg) center center no-repeat;
	
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	
	padding:170px 0 0 170px;
}

.home section h1 {
	float:left;
	display:block;
	width:170px;
	height:170px;
	background:url(/uploads/images/global-sprite.svg) top left no-repeat;
	text-indent:-999em;
	font-size:7px;	
}
.home section aside {
	float:left;
	position:relative;
	width:340px;
	height:170px;
	background:rgb(70,70,71);
	padding:10px 35px;
	
	box-sizing:border-box;
	-moz-box-sizing:border-box;
	-webkit-box-sizing:border-box;	
}

nav {
	font-size:12px;
	font-weight:900;
	letter-spacing:0.04em;
	text-align:center;
}
nav a {
	text-decoration:none;
	color:rgb(183,183,184);
	display:inline-block;
	padding-bottom:7px;
	
	-webkit-transition: all .4s ease-in-out;
	-moz-transition: all .4s ease-in-out;
	-o-transition: all .4s ease-in-out;
	-ms-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
}
nav a.is-on,
nav a:hover {
	color:rgb(255,255,255);
	/**/
}
nav a.is-on {
	border-bottom:4px solid rgb(255,187,0);
}
nav a.portfolio {
	float:left;
}
nav a.resume {
	text-align:center;
	width:52px;
	margin:auto;
}
nav a.contact {
	float:right;	
}

.home section aside h2 {
	font-weight:100;
	font-size:22px;
	color:rgb(255,255,255);
	margin-top:30px;	
}
.home section aside h2 span {
	color:rgb(251,176,59);	
	font-size:18px;
	/*font-weight:400;*/
}
.home section aside .dribbble {
	width:45px;
	height:45px;
	position:absolute;
	top:50%;
	right:-22.5px;
	margin-top:-22.5px;
	background:url(/uploads/images/global-sprite.svg) no-repeat -390px 0px; 
}

.porfolio img {
	width:100%;
	float:left;
}
.porfolio {
	max-width:1060px;
	margin:0 auto 50px auto;
	border:5px solid rgb(50,50,51);	
}

@media (max-width: 1090px) {

.porfolio {
	margin:0 10px 20px 10px;
	border:0;
}
	
}

@media (max-width: 860px) {
	
.home section {
	position:inherit;
	margin:auto;
	width:510px;
	height:auto;
	background:none;	
	padding:10px 0;
}
body.home {
	background:rgb(91,91,92);
	padding:10px;
}
.home section aside {	
	background:url(/uploads/images/home-bg.svg) top center no-repeat rgb(255,199,0);
}
.home section aside nav a {
	color:rgb(50,50,51);
}
.home section aside h2,
.home section aside h2 span {
	color:rgb(50,50,51);	
	font-weight:400;
}	
.home section h1 {
	float:none;
	width:auto;	
	background:rgb(50,50,51);
}
.home section h1 span {
	float:left;
	width:170px;
	height:170px;	
	background:url(/uploads/images/global-sprite.svg) top left no-repeat rgb(91,91,92);
}
.home section aside {
	float:none;
	width:auto;	
}
.home section aside .dribbble {
	right:10px;
	margin-top:-22.5px;
	
}
body.secondary {
	background:rgb(50,50,51);	
	padding-top:180px;
}
	
}
@media (max-width: 570px) {
	
.home section {
	width:auto;
}
.secondary header {
	width:380px;
	top:10px;
	margin-left:-190px;	
}
.secondary header aside {
	width:270px;
	padding:47px 15px 0 15px;
}
body.secondary {
	padding-top:140px;
}
	
}
