/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
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{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}


h1 {
	text-align: center;
	font-size: 36px;
	font-weight: 300;
	padding-top: 32px;
}

ul {
	padding-top: 44px;
}

h1, p, ul {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 48px;
	padding-right: 48px;
}

h1, h2, li {
	font-family: 'Lato', sans-serif;
}

p {
	font-family: 'Merriweather';
	font-weight: 300;
}

a {
	text-decoration: none;
	font-family: 'Lato';
}

a:hover {
	transition: color 0.3s ease;
}

header {
	height: 80px;
	background-color: #fff;
	position: fixed;
	box-shadow: 0 1px 7px rgba(0,0,0,0.5);
	z-index: 1;
}

header, section, footer {
	width: 100%;
}

img {
	width: 100%;
}

.active {
	position: relative;
}
.active:after, .active:before {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
}

.active:after {
	border-color: transparent;
	border-top-color: #fff;
	border-width: 10px;
	margin-left: -10px;
	margin-top: 9px;
}


/* logo classes */

.initial {
	text-transform: lowercase;
	color: #fff;
	background-color: #303030;
	padding-left: 10px;
	padding-right: 4px;
	border-left: 6px solid #489dff;
	font-weight: 300;
}

.separator {
	color: #489dff;
}

.lastname {
	text-transform: uppercase;
	color: #303030;
	padding-left: 4px;
}

/* image classes */

.monitor {
	width: 76%;
}

.mobile {
	width: 18%;
}

.monitor, .mobile {
	max-height: 600px;
	border: 1px solid #747474;
	background-color: #747474;
	overflow: hidden;
	margin: 5px;
	padding: 0;
	float: left;
	box-shadow: 2px 2px 5px rgba(0,0,0,.25);
}


/* header */

header h1 {
	text-align: left;
	float: left;
	font-weight: 900;
}

header h1, header ul {
	padding-left: 0;
	padding-right: 0;
}

nav {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 48px;
	padding-right: 48px;
}

header ul {
	float: right;
	text-align: right;
}

header ul li {
	font-size: 24px;
	font-weight: 700;
	display: inline-block;
	padding-left: 48px;
}

header a:link {
	color: #303030;
}

header a:hover {
	color: #a2a2a2;
}

header a:visited {
	color: #303030;
}

header a:visited:hover {
	color: #a2a2a2;
}

/* intro */

#intro {
	padding-top: 80px;
	background-color: #489dff; /* blue */
	text-align: justify;

	background: url("images/workstation2.jpg") no-repeat fixed left top;
	background-size: 100%;
	box-shadow: inset 0 0 0 1000px rgba(70, 157, 256, .8); 
}


#intro h1 {
	font-size: 48px;
	font-weight: 900;
	color: #303030;
	padding-top: 112px;
	padding-bottom: 80px;
}

#intro p, #contact p {
	font-size: 20px;
	line-height: 2em;
	max-width: 800px;
	padding-bottom: 64px;
}

#intro p, #skills p, #skills ul {
	color: #fff;
}

/* technical skills */

#skills {
	background-color: #303030; /* dark gray */
}

#skills h1 {
	color: #489dff;
}

#skills h2 {
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	padding-top: 64px;
	padding-bottom: 16px;
	
}

#skills ul, #portfolio ul {
	display: block; 
	text-align: center;
	padding-bottom: 10px;
}

#skills li {
	display: inline-block;
	width: 360px;
	line-height: 2em;
	
	vertical-align: top;
	background-color: #454545;
	margin: 10px;
	min-height: 390px;
}

#skills p {
	padding: 24px;
	/*font-family: 'Lato';*/
	font-size: 13px;
	font-weight: 300;
	text-align: left;
	float: left;
}

/* portfolio */

#portfolio {
	background-color: #bfbfbf; /* light gray */
}

#portfolio h1 {
	color: #303030;
}

#portfolio h3 {
	text-align: left;
	padding-left: 5px;
	font-weight: 700;
	font-size: 20px;
}

#portfolio li {
	display: inline-block;
	max-width: 1200px;
	text-align: center;
	padding: 10px;
	margin-bottom: 64px;
	border-bottom: 2px solid #303030;
}

#portfolio li:last-of-type {
	border-bottom: none;
}

#portfolio p {
	margin: 20px 5px;
	float: left;
	text-align: left;
	line-height: 1.25em;
}

#portfolio a {
	color: #489dff;

	padding: 5px 10px;
	background-color: #303030;
	font-family: 'Merriweather';
}

#portfolio a:hover {
	color: #5aa7ff;
	background-color: #454545;
}

/* contact */

#contact {
	background-color: #efefef;
	color: #303030;
	text-align: center;
}

#contact h1 {
	color: #a2a2a2;
	padding-bottom: 80px;
}

#contact p:nth-of-type(2) {
	text-align: center;
}

#contact a:link {
	color: #489dff;
	font-size: 36px;
}

#contact a:hover {
	color: #a3ceff;
}

#contact a:visited {
	color: #489dff;
}

#contact img {
	width: 150px;

}

/* footer */

footer {
	background-color: #303030;
	text-align: center;
	color: #fff;
	height: 200px;
}

footer p {
	font-family: 'Lato';
	font-weight: 300;
	padding: 30px;
}



#menu-button {
	display: none;
}


/* For mobile devices */

@media (max-width: 900px) {
	#intro {
		background-size: auto 100%;
		background-position: center;
	}
}

@media (max-width: 870px) {


	h1, p, ul {
		padding-left: 16px;
		padding-right: 16px;
	}
	
	#menu-button {
		display: inline;
		float: right;
		font-size: 24px;
		cursor: pointer;
		padding-top: 40px;
		padding-right: 16px;
	}

	nav {
		padding: 0;
	}

	nav h1 {
		padding-left: 16px;
	}

	header ul {
		display: none;
		width: 100%;
	} 

	header ul.open{
		display: block;
		padding-top: 10px;
		box-shadow: 0 4px 2px rgba(0,0,0,0.2);
	}

	nav ul li {
		text-align: left;
		display: block;
		background-color: #fff;
		width: 100%;
		border-top: 1px solid #efefef;

	}

	nav ul li a {
		display: block;
		padding-bottom: 10px;
		padding-top: 10px;
	}

	.active:before, .active:after {
		display: none;
	}

}


@media (max-width: 480px) {


	/* Intro */
	


	#intro h1 {
		
		
		padding-top: 48px;
		padding-bottom: 32px;
	}

	#intro p, #contact p {
		font-size: 18px;
		line-height: 1.5em;
	}

	/* Skills */

	#skills h2 {
		padding-top: 32px;
	}

	#skills li {
		padding-bottom: 32px;
		margin: 10px 0;
		width: 100%;
	}

	#skills p {
		padding: 10px;
	}


	/* Portfolio */


	#portfolio p {
		margin: 10px 0;
	}


	/* image classes */


	.monitor {
		display: none;
	}

	.mobile {
		width: 100%;
	}


	/* Contact */


	#contact a:link {
		font-size: 30px;
	}

	#contact h1 {
		padding-bottom: 32px;
	}

	#contact p {
		padding-bottom: 32px;
	}

}

@media (max-width: 500px) and (orientation: landscape) {


	header {
		height: 40px;
	}

	#menu-button {
		padding-top: 20px;
		font-size: 12px;
	}

	header ul.open{
		padding-top: 5px;
	}

/* logo classes */

	header h1 {
		font-size: 18px;
		padding-top: 16px;
	}

	.initial {
		padding-left: 5px;
		padding-right: 2px;
		border-left: 3px solid #489dff;
	}

	.lastname {
		padding-left: 2px;
	}


}
