/********************************************
	Tag Resets
********************************************/

body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
th,
td,
article,
aside,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	margin: 0;
	padding: 0;
	border: 0;
}

/********************************************
	Normalize CSS
	http://necolas.github.com/normalize.css/
********************************************/

html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	min-height: 100%;
}


article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
audio,
canvas,
video {
	display: block;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

pre {
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

b,
strong {
	font-weight: bold;
}

abbr[title] {
	border-bottom: 1px dotted;
}

input,
textarea,
button,
select {
	margin: 0;
	font-size: 100%;
	line-height: normal;
	vertical-align: baseline;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: pointer;
	-webkit-appearance: button;
}

input[type="checkbox"],
input[type="radio"] {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

textarea {
	overflow: auto;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ******************************************
	Web Fonts
****************************************** */

@font-face {
    font-family: 'Roboto Condensed Light';
    src: url('../fonts/robotocondensed-light-webfont.eot');
    src: url('../fonts/robotocondensed-light-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/robotocondensed-light-webfont.woff') format('woff'),
         url('../fonts/robotocondensed-light-webfont.ttf') format('truetype'),
         url('../fonts/robotocondensed-light-webfont.svg#RobotoCondensedLight') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* ******************************************
	Custom Styles
****************************************** */

/*	  For details on font-size:100% see here: 
      http://filamentgroup.com/lab/how_we_learned_to_leave_body_font_size_alone/ 
	  
	  For details on line-height:1 see here:
      http://meyerweb.com/eric/thoughts/2008/05/06/line-height-abnormal/ 

	  For details on text-size-adjust:100% see here:
	  https://developer.mozilla.org/en-US/docs/CSS/text-size-adjust 
*/

html {
   font-size: 100%;
   line-height: 1;
   -moz-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
   -webkit-text-size-adjust: 100%;
}

body {
	font-family: "Roboto Condensed Light", "Helvetica Neue", Helvetica, sans-serif;
	background: #eee url("../img/bg-pattern.png") repeat 0 0;
/* Part of Advanced Checkbox Hack for navigation */
	-webkit-animation: bugfix infinite 1s; 
	position: static; overflow-y:auto
}

p {
	font-size: 1.063em; /* 17px / 16 = 1.063em */
	line-height: 1.223; /* 1.3 / 1.063 = 1.223 */
	margin: .612em 0;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: 100;
}
		
h1 {
	font-size: 3.189em;
	line-height: 1.223;
}
	
h2  {
	font-size: 2.126em;
	line-height: 1.223;
}
			
h1, h2 {
	text-shadow: 1px 2px 3px black;
}
			 
h3 {
	font-size: 1.382em; 
	line-height: 1.223;
}
		    
h4 {
	font-size: 1em;
	line-height: 1.56;
	text-transform: uppercase;
}
		
h3,h4 {      
	font-weight: 300;
	text-transform: uppercase;
}
		
h5 {
	font-size: .8125em;
	line-height: 1.125;
}

h5,h6 {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .85em;
	line-height: 1.53;
	font-weight: 500;
}

h6 {
	color: #aaa;
	font-weight: 200;
}

section {
	padding: 1.3em 0;
}
		
.wrapper {
    padding: 0 .65em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
		
#masthead {
	color:#fff;
    width:80%;
}
		
/* Headshot */

#kirk {
    width: 25%;
    height: 0;
    padding-bottom: 25%;
}
    
#kirk img {
	border-radius: 50%;
    border: solid 1px #5a465a;
    width: 100%;
}		
		
#nav h3 {
	text-transform: capitalize;
}
		
#nav {
    padding: .65em 0;
}
	
#nav h3 {
    float: left;
    text-transform: capitalize; 
}
	
#nav ul {
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #eee;
    margin: .65em 0 .39em;
}

#nav li {
   border-top: 1px solid #eee;
}
	
#nav a {
   display: block;
   font-size: 1.063em;
   color: #333;
   text-decoration: none;
   padding: .975em 1.3em; 
}
	
#nav a:hover {
   background: #f8f8f8;
}
	
#nav nav {
    height: 0;
    overflow: hidden;
}
		
#nav input[type=checkbox] {
    position: absolute;
    top: -999em;
    left: -999em;
}
	
#nav label { 
    display: block;
    background: url("../img/icon-menu.png") no-repeat right center;
    text-indent: -999em;
    cursor: pointer;
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;
}
	
#nav input[type=checkbox]:checked ~ nav {
    height: auto;
    overflow: hidden;  
}
		
#portfolio h4 {
	line-height: 1.82;
}

.box {
	padding:14px;
}

#skills img {
	margin: auto;
}

#skills-wrapper,
#portfolio-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
		
#skills article {
    flex: 1 1 200px;
    max-width: 300px;
    box-sizing: border-box;
    padding-top: .65em;
    padding-bottom: 1.3em;
}

#portfolio article {
	flex: 1 1 300px;
    max-width: 450px;
    box-sizing: border-box;
    padding-bottom: .65em;
}

.fake-flex-item {
  border: none !important;
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#portfolio .floated-figure-wrapper figure, #resume figure, .box {
	background: #fff;
	-moz-box-shadow: 0 0 .325em .13em rgba( 0, 0, 0, .1 );
	-webkit-box-shadow: 0 0 .325em .13em rgba( 0, 0, 0, .1 );
	box-shadow: 0 0 .325em .13em rgba( 0, 0, 0, .1 );
	padding: .975em; /* 3/4 of 1.3 */
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}

#portfolio .floated-figure-wrapper figure {
    padding: .65em;
}

#skills {
	padding-top: .65em;
}

#resume figure {
	margin: 0 auto;
	max-width: 52.625em;
}

#portfolio .floated-figure-wrapper figure, .box {
	max-width: 25em;
}
		
/* Creates hover effect on Portfolio images */
#portfolio .floated-figure-wrapper figure:hover,
#resume figure:hover,
.box:hover {
	 -moz-box-shadow: 0 0 .65em .325em rgba( 0, 0, 0, .1 );
	 -webkit-box-shadow: 0 0 .65em .325em rgba( 0, 0, 0, .1 );
	 box-shadow: 0 0 .65em .325em rgba( 0, 0, 0, .1 );
}

/* Image Offset for Indication of Linked Content */

#portfolio .floated-figure-wrapper figure,
#resume figure {
	bottom: 0;
	transition: bottom .3s;
}

#portfolio .floated-figure-wrapper figure:hover,
#resume figure:hover {
	bottom: .26em;
	transition: bottom .3s;
}
		
section footer {
	clear: both;
}

#container-nav {
	background:#fff;
}


#container-content {
	padding: 24px 0;
}

#container-footer {
	padding: 32px 0;
	background:#352a38;
	color:#eee;
	font-weight:100;
}

#nav,
#masthead,
#portfolio,
#skills,
#resume-wrapper,
#contact {
    margin: 0 3.3%;
}
	


/********************************************
	Fluid Media
********************************************/

figure {
    position: relative;
}

figure img,
figure object,
figure embed,
figure video {
    display: block;
    max-width: 100%; 
}

img {
    border: 0;
    -ms-interpolation-mode: bicubic;
}

/* 
interpolation-mode
http://css-tricks.com/ie-fix-bicubic-scaling-for-images/
 */



/* ******************************************
	   Form Styles Basic Layout
****************************************** */

form {
    padding: 0 0 1.3em;
}

form ul {
    list-style: none;
    padding: .65em 0 0;
}

form li {
    padding: 0 0 .65em;
}

legend {
	font-size: 1.382em; 
	line-height: 1.223;
}
	    
label {
    display: block;
	font-size: 1em;
	line-height: 1.56;
    padding: 0 0 .325em;
}
	
legend, label {      
	font-weight: 300;
	text-transform: uppercase;
}

input,
textarea {
    display: block;
    width: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1em;
	line-height: 1.3;
	font-weight: 500;
    padding: .65em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/**
 * 1. Remove default vertical scrollbar in IE 6/7/8/9.
 * 2. Improve readability and alignment in all browsers.
 */

textarea {
    padding-bottom: 10%;
    overflow: auto; /* 1 */
    vertical-align: top; /* 2 */
}

#resume-wrapper header {
	color: white;
}

.send {
    display: inline-block;
    max-width: 15em;
    font-size: 1em;
    line-height: 1;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: #0074b0;
    margin: .65em .26em;
    padding: .975em;
    border: 0;
    border-radius: 1.3em;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, .65);
}

.send:hover {
    background: #6f6f6f;
}

.send:active,
.send:focus {
    background: #555;
}

    /* Float Clearing http://nicolasgallagher.com/micro-clearfix-hack */

.group:after {
    content: " "; 
    display: table;
    clear: both;
}
	/* Clearfix */

.group {
    *zoom: 1;
}
		

/* Figures/Images */

.ie #portfolio figure,
.ie #resume figure {
    width: 100%;
    box-sizing: border-box;
}

/* "*" hack applies only to IE7 and below */

.ie #portfolio figure,
.ie #resume figure {
    *width: auto;
}

	/* Navigation */

/* IE8 .checked class for checkbox.js */

#nav input[type=checkbox].checked ~ nav {
    height: auto;
    overflow: visible;  
}

/* Always show nav, IE7 and below */

.ie #nav nav {
    *height: auto;
    *overflow: visible;  
}

/* Hide navicon, IE7 and below */

.ie #nav label { 
    *background: none;
    }

/* box-sizing polyfill, IE7 and below (The URL in .ie textarea is placeholder only. You will need to replace with path to your domain) */

.ie .wrapper,
.ie .name,
.ie .email,
.ie input,
.ie textarea {
    *behavior: url("http://www.absolute-path.com/js/boxsizing.htc");
}

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.0.3');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

.fa {
  display: inline-block;
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-github-square:before {
  content: "\f092";
}

.fa-linkedin-square:before {
  content: "\f08c";
}

.fa-phone:before {
  content: "\f095";
}

.fa-home:before {
  content: "\f015";
}

.fa-envelope:before {
  content: "\f0e0";
}

.fa-none {
	width: 14.86px;
}

.fa-facebook-square:before {
  content: "\f082";
}

#info ul{
	list-style:none;
}

#info .fa {
	padding-right: 10px;
	color: white;
}

#info a {
	text-decoration:none;
	color:#1fcdff;
}

#info a:hover{
	color:#666666;
}

.checkbox-hack {
    position: absolute;
    left: -999em;
}


.toggle-label {
	cursor: pointer;
}

.modal {
	transform: translateY(-100%);
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
	transition-property: transform;
    transition-delay: .3s;
    overflow-y: hidden;
}

.checkbox-hack:checked ~ .modal {
	transform: translateY(0);
	transition-property: transform;
    transition-delay: 0s;
    overflow-y: scroll;
}

.modal-content {
    background-color: #fefefe;
    margin: 3em auto;
    padding: 1em;
    border: 1px solid #888;
    width: 80%;
    max-width: 1000px;
    opacity: 0;
	box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    transition: opacity .3s ease-in, transform .3s ease-in;
	transform: translateY(-40px);
}

.modal-content hr {
	width: 50%;
}

.checkbox-hack:checked ~ .modal .modal-content {
	transform: translateY(0);
	opacity: 1;
	transition: opacity .3s ease-in, transform .3s ease-in;
}

.project-title {
    font-size: 2em;
    line-height: 1.223;
    text-align: center;
}

.project-description {
	margin-bottom: 1em;
}

.project-main-description {
	margin: 1em 1em;
    line-height: 1.223;
    color: #888888;
}

.project-description-list {
	list-style: none;
}

.project-description-list li {
    margin: 1em 3em;
    line-height: 1.223;
    font-size: .8125em;
    position: relative;
}

.project-description-list li:after {
	content: '';
    height: .40625em;
    width: .40625em;
    background: #4a4a4a;
    display: block;
    position: absolute;
    transform: rotate(45deg);
    top: .4em;
    left: -1em;
}

.project-link-wrapper {
    text-align: center;
    margin-top: 1em;
}

.project-link-wrapper a {
	text-decoration: none;
    color: black;
}

.project-link-wrapper a:hover {
	text-decoration: underline;
}

.project-link-wrapper a p {
    text-align: right;
    padding-right: 1em;
    font-size: .79725em;
    line-height: .6115;
    margin: 0;
}

#portfolio .project-link-wrapper a figure {
    margin: 1em auto;
    width: 85%;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 2em;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden; 
}

/*Parallax*/
.parallax__container {
	clip: rect(0, auto, auto, 0);
	height: 100%;
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: -100;
}

.parallax__container .parallax {
	/* can be put in a seperate class for better control */
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	/* --------------------------- */
	position: fixed;
	top: 0;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	width: 100%;
}

.header-parallax {
	background-image: url("../img/bg-photo-s.jpg");
}

.resume-parallax {
	background-image: url("../img/resume-bg-s.jpg");
}


/* ******************************************
			Media Queries for screen less than 45em (720px)
****************************************** */
@media screen and (max-width: 45em) {
	#container-header {
		padding: 10% 0;
	}
		
	#portfolio .floated-figure-wrapper figure {
		max-width: 25em;
	}

	.jarallax .jarallax-img img{
	    width: 100%;
	    height: 100%;
	    object-fit: cover;
	}
}

@media screen and (min-width: 35em) {
	#contact {
		position: relative;
	}

	#info {
		position: absolute;
		width: 200px;
	}

	#emailList, .send {
		margin-left: 200px;
	}
}

/* ******************************************
	Media Queries for screen wider than 45em (720px)
****************************************** */

@media screen and (min-width: 45em) {

	.header-parallax {
		background-image: url("../img/bg-photo-l.jpg");
	}

	.resume-parallax {
		background-image: url("../img/resume-bg-l.jpg");
	}


    body {
        font-size: 107.692307692308%;
    }
	
	#masthead {
		max-width:40em;
	}

	#nav,
	#masthead,
	#portfolio,
	#skills,
	#resume-wrapper,
	#contact {
	    margin: 0 5.5%;
    }
		
	#container-header {
		padding:5% 0;
	}
		
    #nav label {
        display: none;
    }
	

    #nav {
        padding: 0;
    }
	
    #nav h3 {
         margin: .48em 1.3em 0 0;
    }
	
    #nav label {
        display: none;
    }
	
    #nav nav {
        height: auto;
    }
	
    #nav ul {
        border: 0;
        margin: 0;
        }
	#nav li {
	        display: inline;
	        border: 0;
	    }
	#nav a {
	        display: inline-block;
	        }
		
	.name, .email {
			position: relative;
		    float: left;
		    width: 50%;
		    -webkit-box-sizing: border-box;
		    -moz-box-sizing: border-box;
		    box-sizing: border-box;
		    }

	.name {
		    padding-right: .65em;
		    }

	.email {
		    padding-left: .65em;
		    }
}
	
	/* ******************************************
		Media Queries for screen wider than 60em (960px)
	****************************************** */
	
@media screen and (min-width: 60em) {

.name, .email {
    padding-right: 1.3em;
    padding-left: 0;
    clear: both;
    }

.message textarea {
    width: 50%;
    }

	/* Form Fixes, IE7 and below */

	.ie .message textarea {
	    *width: 49.9%;
	    }

	}

}


/* ******************************************
	Print Styles
****************************************** */
@media print and (max-width: 8.5in){
	
	#masthead {
		color:black;
	}
	
	#container-header {
		height: auto;
	}
	
	img {
		width:2in;
	}
	
	#portfolio	{
		float:left;
		width:45%;
	}
	
	#container-footer	{
		clear:both;
	}
	
}