/* CSS reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
	margin:0;
	padding:0;
}
html,body {
	margin:0;
	padding:0;
	height:100%;
}
body {
	font-family: 'MS Sans Serif', Geneva, sans-serif;
	font-weight: 400;
	font-size: 15px;
	color: #fff;
	width: 100%;
	background: #F9F2E7;
	overflow-x: hidden;
	overflow-y: auto;
}
table {
	border-collapse:collapse;
	border-spacing:0;
}
fieldset,img { 
	border:0;
}
input {
	border:1px solid #b0b0b0;
	padding:3px 5px 4px;
	color:#979797;
	width:190px;
}
address,caption,cite,code,dfn,th,var {
	font-style:normal;
	font-weight:normal;
}
ol,ul {
	list-style:none;
}
caption,th {
	text-align:left;
}
h1,h2,h3,h4,h5,h6 {
	font-size:100%;
	font-weight:normal;
}
a {
	text-decoration: none;
}

/* Header block */
#header {
	position: absolute;
	z-index: 2000;
	width: 235px;
	top: 50px;
}
#header h1 {
	font-family: 'Trebuchet MS', sans-serif;
	font-size: 26px;
	font-weight: bold;
	text-transform: uppercase;
	color: #FFF;
	padding: 10px 20px 5px 10px;
	background: #00A8C6;
	height: 100px;
	
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    -moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
#header .subtitle {
	font-family: 'Trebuchet MS', sans-serif;
	font-size: 18px;
	padding: 0 20px 10px 10px;
	background: #00A8C6;
	color: #CCC;
	margin-top: -34px;
}

/* Content region */
.content {
	right: 40px;
	left: 280px;
	top: 0px;
	position: absolute;
	padding-bottom: 30px;
}
.content h2 {
	font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
	font-size: 75px;
	color: #AEE239;
	background-color: #556270;
	width: 100%;
	padding: 6px 20px;
	margin-top: 50px;
	margin-bottom: 18px;
}
.content h3 {
	clear: both;
	color: #EEE;
	background-color: #40C0CB;
	padding: 10px 15px;
	margin: 10px 0;
	width: 490px;
}
.content p {
	font-family: 'Arial', serif;
	font-size: 16px;
	color: #666;
	background: #AEE239;
	padding: 10px 15px;
	margin: 5px 0px;
	width: 490px;
	display: inline-block;
}
.content p a {
	color: #00A8C6;
}
.content p.highlight {
	font-size: 20px;
	color: #546170;
	background-color: #FF6B6B;
	text-align: right;
}
.content .tags {
	width: 520px;
	text-align: right;
	margin-bottom: 10px;
}
.content .tags li {
	font-size: 14px;
	color: #CCC;
	background-color: #556270;
	padding: 5px 10px;
	margin-top: 10px;
	margin-right: 3px;
	display: inline-block;
}
.panel {
	width: 100%;
	min-height: 100%;
	position: absolute;
	background-color: #000;
	box-shadow: 4px -4px 4px rgba(0,0,0,0.2);
	margin-left: -102%;
	z-index:2;
	-webkit-transition: all .6s ease-in-out;
	-moz-transition: all .6s ease-in-out;
	-o-transition: all .6s ease-in-out;
	-ms-transition: all .6s ease-in-out;
	transition: all .6s ease-in-out;
}
.panel:target {
	margin-left: 0%;
	background-color: #F9F2E7;
}
.content .avatar {
	float: right;
	height: 128px;
	width: 128px;
	padding: 20px;
	background-color: #8FBE00;
}

/* Resume */
.skills,
.half {
	font-size: 12px;
	width: 520px;
}
.skills li,
.half li {
	float: left;
	width: 100px;
	padding: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
	background: #666;
}
.skills li span {
	display: block;
}
.skills li .name {
	font-style: italic;
}
.skills li .rate {
	color: #FF6B6B;
}
ul.half li {
	width: 230px;
}
ul.half li div {
	margin-bottom: 10px;
}
ul.half .name {
	font-size: 14px;
	background-color: #556270;
	font-weight: bold;
	padding: 10px;
	margin: -10px -10px 10px;
}
ul.half .title {
	font-style: italic;
	color: #FF6B6B;
}

/* Folio */
#works li {
	float: left;
	margin-right: 15px;
	margin-bottom: 15px;
	height: 120px;
	width: 230px;
}
#works .image-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: bottom;
}
#works li .image-wrap img{
	opacity: 0.5;
	vertical-align: bottom;

	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4);
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,.4);
	box-shadow: 0 1px 2px rgba(0,0,0,.4);

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	
	-webkit-transition: all 150ms linear;
	-moz-transition: all 150ms linear;
	-o-transition: all 150ms linear;
	-ms-transition: all 150ms linear;
	transition: all 150ms linear; 
}
#works li:hover .image-wrap img{
	opacity: 1.0;

	-webkit-transform: scale(1.02,1.02);
    -moz-transform: scale(1.02,1.02);
    -ms-transform: scale(1.02,1.02);
    transform: scale(1.02,1.02);
}
#works li .image-wrap:before {
	position: absolute;
	content: ' ';
	width: 100%;
	height: 75%;
	top: 0;
	left: 0;
	-webkit-border-top-left-radius: 7px;
	-webkit-border-top-right-radius: 7px;
	-moz-border-radius-topleft: 7px;
	-moz-border-radius-topright: 7px;
	border-top-left-radius: 7px;
	border-top-right-radius: 7px;
	background: -moz-linear-gradient(top, rgba(255,255,255,0.6) 0%, rgba(255,255,255,.15) 90%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.6)), color-stop(90%,rgba(255,255,255,.15)));
	background: linear-gradient(rgba(255,255,255,0.6) 0%, rgba(255,255,255,.15) 90%);
}

/* Contact page */
#contact .email,
#contact .phone {
	float: left;
	width: 225px;
	margin-right: 10px;
	font-size: 26px;
}
#contact .phone {
	background-color: #8FBE00;
	color: #FFF;
}
#contact .tags a {
	color: #DDD;
}
#contact .tags a:hover {
	color: #FFF;
}

/* Menu coolness */
#navigation {
    padding:0;
    margin:20px auto;
}
#navigation li {
	font-family: Tahoma, serif;
    width: 235px;
    height: 60px;
    overflow: hidden;
    position: relative;
    display: block;
    background: #00A8C6;
    margin-bottom: 6px;
    
	-webkit-transition: all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
	-ms-transition: all 300ms ease-in-out;
	transition: all 300ms ease-in-out;
}
#navigation li:last-child {
    margin-bottom: 0px;
	background: #8FBE00;
}
#navigation li a {
    text-align: left;
    width: 100%;
    height: 100%;
    display: block;
    color: #FFF;
    position: relative;
}
#navigation .icon {
    font-family: Webdings, cursive;
    font-size: 30px;
    color: #FFF;
    position: absolute;
    width: 90px;
	top: 15px;
    right: -20px;
    text-align: center;
	
    -webkit-transition: all 300ms linear;
	-moz-transition: all 300ms linear;
	-o-transition: all 300ms linear;
	-ms-transition: all 300ms linear;
	transition: all 300ms linear; 
}
#navigation .content {
	position: absolute;
    left: 10px;
    width: 370px;
    height: 60px;
    top: 15px;
}
#navigation .main {
    font-size: 14px;
	font-weight: bold;
    
    -webkit-transition: all 300ms linear;
	-moz-transition: all 300ms linear;
	-o-transition: all 300ms linear;
	-ms-transition: all 300ms linear;
	transition: all 300ms linear; 
}
#navigation .content span {
	display: block;
}
#navigation .sub {
    font-size: 10px;
    color: #CCC;
}
#navigation li:hover {
    background-color: #556270;
}
#navigation li:hover .icon {
    color: #FF6B6B;
    font-size: 120px;
    opacity: 0.2;
    right: 10px;
	top: -20px;
    -webkit-transform: rotate(20deg);
    -moz-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
}
#navigation li:hover .main {
    color: #FF6B6B;
    opacity: 0.8;
}
#navigation li:hover .sub {
    color: #fff;
    opacity: 0.8;
}
#home:target ~ #header #navigation #link-home,
#cv:target ~ #header #navigation #link-cv,
#portfolio:target ~ #header #navigation #link-portfolio,
#school:target ~ #header #navigation #link-school,
#contact:target ~ #header #navigation #link-contact {
	background: #556270;
}