/********************************************
	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;
}


/* ******************************************
	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:
	  htts://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: Arial, Helvetica, sans-serif;
	background: #000;
}

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

h1,h2,h3,h4,h5,h6 {
	    font-weight: 100;
	    }
		
h1 {
	font-size: 2.79em; /* reduced by 1/8 to accomadate larger heading text width */
	line-height: 1.223;
	color: #000;
	font-family: Arial, Helvetica, sans-serif;
	text-shadow: 2px 2px #fff;
		}
	
h2  {
	font-size: 1.86em; /* reduced by 1/8 to accomadate larger heading text width */
	line-height: 1.223;
	color: #000;
	text-shadow: 2px 2px #fff;
		    }
	
			 
h3 {
	font-size: 1.21em;  /* reduced by 1/8 to accomadate larger heading text width */
	line-height: 1.83;
	color: #fff;
	text-shadow: 1px 1px #CCC;
		}
		    
h4 {
	font-size: 1em;
	line-height: 1.56;
	text-transform: uppercase;
		}
		
h3,h4 {      
	font-weight: 300;
	text-transform: uppercase;
		}
		
h5 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: .85em;
	line-height: 1.53;
	font-weight: 500;
	color: #fff;
		}


h6 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: .85em;
	line-height: 1.53;
	color: #999;
	font-weight: 200;
		}
		
.wrapper {
	        padding: 0 .65em;
	        -webkit-box-sizing: border-box;
	        -moz-box-sizing: border-box;
	        box-sizing: border-box;
		}
		
#masthead {
			color:#fff;
		        width:80%;
		}
		
#content article {
	padding-top: .65em;
	padding-bottom: 1.3em;
		}
		
#portfolio h4 {
	line-height: 1.82;
		}

.box {
			padding:14px;
		}
		
.box h4 {
	color: #999;
	border-top: 4px double #ccc;
	border-bottom: 1px solid #ccc;
	margin-bottom: .975em; /* 3/4 of 1.3 */
	text-align: center;
		}
		
.box ul {
	list-style: none;
	padding: 0;
		}

#portfolio figure,.box {
	background-color: rgba(53, 42, 56, 0.1);
	-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 */
		}
		
section footer {
	clear: both;
		   }

#container-nav {
	background:#000;
}


#container-content {
	padding: 24px 0;
}
#portfolio a {
	text-decoration:none;
	font-size: .612em;
	color: #0074b0;
}
#resume a {
	text-decoration:none;
	font-size: .612em;
	color: #0074b0;
}
#linkedin a {
	text-decoration:none;
	font-size: 1.063em;
	color: #0074b0;
}
#storytime a {
	text-decoration:none;
	font-size: 1.063em;
	color: #0074b0;
}
#bosque a {
	text-decoration:none;
	font-size: 1.063em;
	color: #0074b0;
}
#more h4 a {
	text-decoration:none;
	font-size: 1em;
	color: #0074b0;
}

#container-footer {
	padding: 32px 0;
	background:#000;
	color:#eee;
	font-weight:100;
	text-decoration:none;
	font-size: .8125em;
}

#container-footer a {
	text-decoration:none;
	font-size: .612em;
	color: #0074b0;
}

img {
	max-width:100%;
}

#nav,
#masthead,
#content,
#colophon {
    margin: 0 3.3%;
    }

.game-container {
    position: relative;
    padding-bottom: 75%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}
.game-container iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

	form {
	    padding: 0 0 1.3em;
	    }
    
	form ul {
	    list-style: none;
	    padding: 1.3em 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;
		color: #fff;
		}
	
	input,
	textarea {
	    display: block;
	    width: 100%;
	    font-family: Arial, Helvetica, 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 */
	    }

	.send {
	    display: inline-block;
	    max-width: 30em;
	    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: " "; /* 1 */
    display: table; /* 2 */
    clear: both;
}

.group {
    zoom: 1; /* 3 */
    }

		
/* Navigation */

/*   
- Create faux section height using padding.
*/

#nav {
    padding: .65em 0;
}

/*
- Float heading and capitalize content.
*/

#nav h3 {
    float: left;
    text-transform: capitalize; 
}


/* 
- Remove <ul> list-style and default padding.
- Add a border-top to separate each <li>.
- Add a border-bottom to <ul> to wrap-up border styling. 
- Add margin to separate, push off <ul> from heading/navicon and below #masthead section.
*/

#nav ul {
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #eee;
    margin: .65em 0 .39em;
}

#nav li {
   border-top: 1px solid #eee;
}

/* 
- Style inline <a> to become a block element.
- Update font-size to reflect foundation font scale defined by body text (<p>).
- Override default link color
- Remove default <a> text-decoration of underline.
- Add padding, keeping horizontal and vertical rhythm.
 */

#nav a {
   display: block;
   font-size: 1.063em;
   color: #fff;
   text-decoration: none;
   padding: .975em 1.3em; 
}

/*
13. Style :hover for non-touch enabled browsers/devices.
*/

#nav a:hover {
   background: #333;
}

/* 
Hide <nav> off-screen
http://37signals.com/svn/posts/3126-another-9999px ]
*/

#nav nav {
    height: 0;
    overflow: hidden;
}

/* ******************************************
    Advanced Checkbox Hack
****************************************** */

body { 
    -webkit-animation: bugfix infinite 1s; 
}

@-webkit-keyframes bugfix {
    from {padding: 0;} 
    to {padding: 0;} 
}

/* 
1. Hide <nav> off-screen / -9999px/-999em technique works best.
*/

#nav input[type=checkbox] {
    position: absolute;
    top: -999em;
    left: -999em;
}

/* 
2. Restore <label> element (Removed in min-width: 45em media query).
3. Present <label> as navicon using a background-image.
4. Hide <label> content - "Menu" - off-screen using negative text-indent.
5. Style <label> to behave like a link using cursor and user-select properties.
*/

#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;
}

/* 
6. Show <nav> on-screen / drop-down menu 
*/

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

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

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

	    body {
	        font-size: 107.692307692308%;
	        }

		#portfolio article,
		#resume article {
			float: left;
			width: 33.333%;
		}
		
		#masthead {
			max-width:40em;
		}
		#nav,
		#masthead,
		#content,
		#colophon {
		    margin: 0 5.5%;
		}
			
	  .name, .email {
		  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;
		  }

	  .send {
		  width: 48.6%;
		  }
				
				    /*
    1. Remove padding from one-column layout style.
    */
    
    #nav {
        padding: 0;
    }
    
    /*
    2. Adjust headline baseline using margin-top to align with horizontal menu and margin-right to create a gap/division from the two types of content.
    */

    #nav h3 {
         margin: .39em 1.3em 0 0;
    }
    
    /*
    3. Remove <label> element.
    */

    #nav label {
        display: none;
    }
    
    /* 
    4. Show <nav> on-screen.
    */

    #nav nav {
        height: auto;
		float: right;
    }
    
    /* 
    5. Remove border and margin from one-column layout style.
    */
    
    #nav ul {
        border: 0;
        margin: 0;
        }
        
    /* 
    6. Display <li> as inline for horizontal menu layout.
    7. Remove border.
    */

    #nav li {
        display: inline;
        border: 0;
    }
    
    /* 
    8. Display <a> from block to inline-block to remain inline for horizontal menu layout.
    */
    
    #nav a {
        display: inline-block;
        }
	
	}
	
	/* ******************************************
		Media Queries for screen wider than 60em (960px)
	****************************************** */
	
	@media (min-width: 60em) {

	.name, .email {
	    padding-right: 1.3em;
	    padding-left: 0;
	    clear: both;
	    }
    
	.message textarea {
	    width: 50%;
	    }
    
	.send {
	    width: 25%;
	    margin-left: 50%;
	    }
    
	/* Form Fixes, IE7 and below */
	
	.ie .message textarea {
		width: 49.9%;
		}
	
	.ie .send {
		margin-left: 46.7%;
		}
    
	}

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

	figure {
	    position: relative;
	}

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

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

	/* 
	interpolation-mode
	http://css-tricks.com/ie-fix-bicubic-scaling-for-images/
	 */
	
	
/* Creates hover effect on Portfolio images */
	#portfolio 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 figure:hover {
	    bottom: .26em;
	}
	


/*---------------------------			
MEDIA QUERY FOR BACKGROUND IMAGE WHEN GREATER THAN 45 EM (720PX)
---------------------------*/
	@media screen and (min-width: 48em) {
			#container-header {
			    background: #000 url("../img/bg-photo-l.png") no-repeat top center;
				-webkit-background-size: cover;
			    -moz-background-size: cover;
			    background-size: cover;
				padding: 5% 0;
			}
			#portfolio figure {
        		max-width: 25em;
        	}
		}

/*---------------------------			
MEDIA QUERY FOR BACKGROUND IMAGE WHEN LESS THAN 45 EM (720PX)
---------------------------*/
	@media screen and (max-width: 48em) {
		#container-header {
		    background: #000 url("../img/bg-photo-s.png") no-repeat top center;
			-webkit-background-size: cover;
		    -moz-background-size: cover;
		    background-size: cover;
			padding: 5% 0;
		}
	}
    
/* Headshot */

#pj {
    width: 25%;
    height: 0;
    padding-bottom: 25%;
    }
    
#pj img {
    width: 100%;
    }


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

/* ******************************************
    IE 8 and below, legacy browser style fixes
****************************************** */

/* Figures/Images */

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

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

.ie #portfolio 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.steelguitarcamp.com/C6MajorChords/js/boxsizing.htc");
}