/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
	font-family: 'Arial', sans-serif;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Global styles & general HTML tag styles */
	
html { 
    overflow-y: scroll;
}

body {
	background:#EEEEEE;
	border-top: #000 solid 0.3em;
	font-family: 'Karla', sans-serif;
}


h1 {
    color: #222;
    display: block;
    font-family: 'Oswald',sans-serif;
    font-size: 3em;
    font-weight: 700;
    left: 0;
    margin: 0;
    padding: 0;
}

h2 {
    color: #222;
    display: block;
    font-size: 0.9em;
    line-height: 1.6em;
    margin: 0 0 0.5em;
    font-weight: normal;
    text-transform: uppercase;
}

h3 {
    color: #000000;
    font-size: 0.9em;
    font-weight: normal;
    margin: 0 0 1.2em;
    line-height: 1.6em;
    text-transform: uppercase;
}

p {
    color: #757575;
    display: block;
    font-size: 0.9em;
    line-height: 1.6em;
    margin: 0.6em 0 1.2em;
}

ul {
	list-style:square;
	padding-left: 20px;
	margin-bottom: 8px;
}

ul li {
	color: #757575;
	line-height: 1.4em;
	font-size: 0.9em;
}

a {
	color:#B0B0B0;
	text-decoration:none;
}

a:hover {
	color:#B0B0B0;
	text-decoration:underline;
}

img {
	width: 100%;
	margin-bottom: 8px;
}

/* Naviagtion */

.navigation {
    border-bottom: 1px dashed #CCCCCC;
    list-style: none outside none;
    margin: 0 0 16px;
    padding: 0 0 16px;
    text-align: right;
    height: 80px;
}
.navigation li {
    font-size: 0.9em;
    line-height: 1.8em;
    text-transform: uppercase;
}

#home .navigation .home a, 
#projects .navigation .projects a, 
#project .navigation .projects a, 
#about .navigation .about a{
	color:#757575;
}

footer {
    border-top: 1px dashed #CCCCCC;
    text-align:right;
    padding: 8px 0px;
    margin: 16px 0px;
}

footer li{
    font-size: 0.7em;
}

footer ul {
    list-style:none;
    margin-top:4px;
}

footer .html5nstuff img{
    width: 100px;
    height: 32px;
    box-shadow: none;
    position:relative;
    left: 8px;
}

#home h2 {
    font-size: 2.2em;
    font-family: 'Oswald',sans-serif;
    text-transform: lowercase;
    margin: 0;
}

#home p {
    font-size: 1em;
    line-height: 1.2em;
}

#projects h3 {
    margin: 0;
}



/* smart phone */

@media only screen and (min-width : 0px) and (max-width : 480px){
    h1 {
        margin-top: 16px;
    }
	body {
		padding: 0px 16px;
	}
	#main-title {
        width: 50px;
        height: 50px;
        position: relative;
        font-size:0px;
        top:16px;
    }
	.navigation {
	    text-align:left;
	    margin-top: 32px;
	    height: 16px;
	}
	.navigation li {
        line-height: 1em;
        display:inline;
        margin-right: 22px;
    }
	#projects img{
		width: 40%;
		float:left;
		margin-right: 16px;
	}
	#projects .html5nstuff img{
        width: 100px;
        height: 32px;
        box-shadow: none;
        position:relative;
        left: 24px;
        float:none;
    }
	#projects .project {
		border-bottom:#CCCCCC 1px dashed;
		margin-bottom:16px;
		min-height: 96px;
	}
	#projects .project:last-child {
		border-bottom:0;
		margin-bottom:0px;
	}
	#projects .project a:hover {
		text-decoration:none;
	}	
}

@media only screen and (max-width : 480px) and (orientation:landscape){
    
    h1 {
        margin-top: 16px;
    }
	
	#projects img{
		width: 100%;
		display:block;
		margin-right: 16px;
	}
	
	#projects .project {
		border-bottom:none;
		margin-bottom:16px;
		min-height: 150px;
	}
	#projects .project:last-child {
		border-bottom:0;
		margin-bottom:0px;
	}
	#projects .project a:hover {
		text-decoration:none;
	}
	.navigation {
        border-bottom: 1px dashed #CCCCCC;
        list-style: none outside none;
        margin: 0 0 16px;
        padding: 0 0 16px;
        text-align: right;
        position: relative;
        top: -40px;
    }
}

/* tablet */
@media only screen and (min-width : 481px) and (max-width : 768px) {
    
    .container header {
        padding-top: 16px;
        position: relative;
    }
    
    h1 {
        position: absolute;
        top: 25px;
    }
    
    body {
		padding: 0px 16px;
	}
    
    .container {
        margin: 0 auto;
        max-width: 960px;
    }
    
    #container a:hover{
        text-decoration:none;
    }
    
    #projects #container .project {
        float: left;
        height: 280px;
        min-height: 280px;
        margin-right: 20px;
        width: 45%;
    }
    
    #projects #container .project:nth-child(2), 
    #projects #container .project:nth-child(4), 
    #projects #container .project:nth-child(6), 
    #projects #container .project:nth-child(8), 
    #projects #container .project:nth-child(10) {
        margin-right: 0px;
    }
    
    #projects #container {
        margin:0;
        width: 100%;
    }
}

@media only screen and (min-width : 640px) and (max-width : 768px) {
    #container .cola {
        float:left;
        width: 35.416666666667%; /* 340 / 960px */
        margin-right: 2.083333333333%; /* 20 / 960 */
        margin-top: 0.3125%; /* 3 / 960 */
    }
    #container .colb {
        float:left;
        width: 62.5%; /* 600px / 960px */
    }

    #projects #container .project {
        height: 320px;
        min-height: 320px;
        
    }


}

/* tablet landscape */

@media only screen and (min-width : 769px) and (max-width : 1024px) {
    
    .container header {
        padding-top: 50px;
        position: relative;
    }
    
    h1 {
        position: absolute;
        top: 75px;
    }
    
    body {
		padding: 0px 16px;
	}
    .container {
        margin: 0 auto;
        max-width: 960px;
    }
    
    #container .cola {
        float:left;
        width: 35.416666666667%; /* 340 / 960px */
        margin-right: 2.083333333333%; /* 20 / 960 */
        margin-top: 0.3125%; /* 3 / 960 */
    }
    
    #container .colb {
        float:left;
        width: 62.5%; /* 600px / 960px */
    }
    
    #container a:hover{
        text-decoration:none;
    }
    #projects #container .project {
        float: left;
        height: 280px;
        min-height: 280px;
        margin-right: 20px;
        width: 30%;
    }
    
    #projects #container .project:nth-child(3), 
    #projects #container .project:nth-child(6), 
    #projects #container .project:nth-child(9) {
        margin-right: 0px;
    }
    
    #projects #container {
        margin: 0;
        width: 100%;
    }

}

/* desktops */
@media only screen and (min-width : 1025px) {
    
    .container header {
        padding-top: 50px;
        position: relative;
    }
    
    h1 {
        position: absolute;
        top: 75px;
    }
    
    .container {
        margin: 0 auto;
        max-width: 960px;
    }
    
    #container .cola {
        float:left;
        width: 35.416666666667%; /* 340 / 960px */
        margin-right: 2.083333333333%; /* 20 / 960 */
        margin-top: 0.3125%; /* 3 / 960 */
    }
    
    #container .colb {
        float:left;
        width: 62.5%; /* 600px / 960px */
    }
    
    #container a:hover{
        text-decoration:none;
    }
    #projects #container .project {
        float: left;
        min-height: 320px;
        height: 320px;
        margin-right: 20px;
        width: 300px;
    }
    
    #projects #container .project:nth-child(3), 
    #projects #container .project:nth-child(6), 
    #projects #container .project:nth-child(9) {
        margin-right: 0px;
    }
    
    #projects #container {
        margin: 0px auto;
        width: 960px;
    }
}

/* dirty hacks */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }