/********************************************
	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%;
    font-size: 100%;
	line-height: 1;
	-moz-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
	min-height: 100%;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}


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

p {
    font-size: 1.063em;
    line-height: 1.223;
    margin: .65em 0;
}

.wrapper {
    padding: 0 .65em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #999;
}

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

h1,h2,h3,h4,h5,h6 {
    font-weight: 400;
}

h5,h6 {
    font-size: .85em;
    line-height: 1.53;
}


h1 {
    font-size: 3.689em;
    line-height: 1.223;
    font-weight: 900;
    text-transform: uppercase;
    color: #af1a1f;
}

h1 a {
    color: #af1a1f;
    text-decoration: none;
}

h1 .second {
    font-weight: 300;
}

h2  {
    font-size: 1.8em;
    line-height: 1.223;
    font-style: italic;
    color: #000;

}

h3 {
    font-weight: bold;
    color: #af1a1f;
}
	
.home a {
               display: block;
               font-size: 1.382em; 
                color: #a8a8a8;
                float: left;
               text-decoration: none;
                margin-right: 2em;
            padding-top: .12em;
            margin-left: 5.3%;
            }
        
.home a:hover {
               background: #696969;
            }


h4 {
    font-size: 1em;
    line-height: 1.56;
    text-transform: uppercase;
    font-weight: bold;
    color: #af1a1f;
}
    
h6 {
    color: #aaa;
    font-weight: 700;
}

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


.about-box {
    float: left;
    width: 68%;
}

.about-box2 {
    float: right;
    width: 27%;
    display: block;
    padding: .975em; /* 3/4 of 1.3 */
    border: 1px solid #96a3a9;
    background: #d7d7d7;
}

#nav,#content,#colophon {
	margin: 0 18px;
}

#masthead {
	color:#fff;
    width: 100%;
}

article.headers {
    float: left;
    text-align: center;
    width: 50%;
}

#container-nav {
    background:#af1a1f;
}

#container-header {
	background:#2B2B2B;
	height: 350px;
	width:100%;
}

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

#container-footer {
	padding: 32px 0;
	background:#2B2B2B;
	color:#eee;
	font-weight:100;
}
.box {
	padding:14px;
    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 */
}

.box ul {
    list-style: none;
    padding: 0;
}

.box h4 {
    color: #999;
    border-top: 4px double #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: .975em; /* 3/4 of 1.3 */
    text-align: center;
}

img {
	max-width:100%;
}

#projects h4 {
    line-height: 1.82;
    text-align: center;
}

#nav h3 {
    text-transform: capitalize;
}

#content article {
    padding-top:.65em;
    padding-bottom:1.3em;
}

figure, section footer {
    clear: both;
}

#projects figure,.box {
	padding: .975em; /* 3/4 of 1.3 */
    border: 1px solid #96a3a9;
    background: #d7d7d7;
}

.error {color: #FF0000;}

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

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

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

/* Form / 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: "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 */
    }

.send {
    display: inline-block;
    max-width: 30em;
    font-size: 1em;
    line-height: 1;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: #af1a1f;
    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;
    }

footer a {
    color: #fff;
}

/* Logo */

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

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

	figure {
	    position: relative;
	}

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

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

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

/* ******************************************
	Navigation
****************************************** */

#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: #fff;
               text-decoration: none;
               padding: .85em .62em;
            }
        
            #nav a:hover {
               background: #696969;
            }
        
            #nav nav {
                height: 0;
                overflow: hidden;
            }
        
        
             body { 
                -webkit-animation: bugfix infinite 1s; 
            }

            @-webkit-keyframes bugfix {
                from {padding: 0;} 
                to {padding: 0;} 
            }
        
            #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;  
            }

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

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

	    body {
	        font-size: 107.692307692308%;
	        }

		#projects article,
		#about article {
			float: left;
			width: 33.333%;
		}
        
        
        #nav,
        #content,
        #colophon {
            margin: 0 5.3%;
        }
        
        .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%;
            }
        
        /*resize header image*/
        
        #container-header {
            background: #352a38 url("../img/bg-photo-l.jpg") no-repeat top center;
            padding: 5% 0;
            -webkit-background-size: cover;
            -moz-background-size: cover;
            background-size: cover;
        }
        
        /*Navigation overide hack*/
        
        #nav {
                    padding: 0;
                }
                
        #nav h3 {
                     margin: .39em 1.3em 0 0;
                }
                
        #nav label {
                    display: none;
                }
                
        #nav nav {
                    height: auto;
                    overflow: visible;
                }
                
        #nav ul {
                    border: 0;
                    margin: 0;
                }
                
        #nav li {
                    display: inline;
                    border: 0;
                }
                
        #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%;
            }
    
}

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

/*resize header image*/

@media screen and (max-width: 45em) {
		#container-header {
		    background: #352a38 url("../img/bg-photo-s.jpg") no-repeat top center;
			-webkit-background-size: cover;
		    -moz-background-size: cover;
		    background-size: cover;
			padding: 10% 0;
		}
    
        #projects figure {
        max-width: 25em;
            }
    
            #masthead figure.header-box {
            margin-left: 7%;
            margin-right: 13%;
        }
    
    #nav nav {
                clear: both;
            }
    
    #projects h4 {
    line-height: 1.82;
    text-align: left;
}
    
    article.headers {
    text-align: center;
    width: 100%;
    }
    
    article.headers .truck {
        display: none;
    }

    
    
	}


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

/*resize header image*/

@media screen and (max-width: 60em) {
    
    .about-box {
    width: 100%;
        float: none;
    }

    .about-box2 {
        width: 87%;
        float: none;
        margin-right: 13%;
    }
    
    h1 {
        font-size: 3em;
    }
    
	}



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

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

/* Figures/Images */

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

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

.ie #projects 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");
}