/* 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;
	background-color: #f4f5f9;
}
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;
}


h1, h2, h3, h4, h5, h6 {
	font-family: "Roboto", sans-serif;
}

header {
	background-color: #252c41;
	background-image: url("../img/irongrip.png");
	background-attachment: fixed;
	padding: 2em;
}

header h1, header h5 {
	color: white;
}
header h1 {
	font-size: 2em;
}
header h5 {
	font-size: 1.2em;
}

main {
	width: 100%;
}

main div.flex_grow {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

main article {
	flex-grow: 1;
	height: 5em;
	margin: 0.5em;
	padding: 2em;
	position: relative;
	box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
}

main article:before {
	content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    background-repeat: no-repeat;
    background-position: 50% 0;
    -ms-background-size: cover;
    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    transition: all .3s ease-out;
}

main article:hover:before {
	opacity: 0.2;
}

main article:nth-child(1):before {
	background-image: url("../img/class.jpg");
}

main article:nth-child(2):before {
	background-image: url("../img/circuit.jpg");
}

main article:nth-child(3):before {
	background-image: url("../img/moon.jpeg");
}

main article:nth-child(4):before {
	background-image: url("../img/stars.jpg");
}

main article h3 a {
	color: #dddfe6;
	text-decoration: none;
	font-size: 1.7em;
	position: relative;
	z-index: 2;
}

main article.article_blue {
	background-color: #b52e31;
}

main article.article_green {
	background-color: #331e54;
}

main article.article_red {
	background-color: #002147;
}

main article.article_orange {
	background-color: #00539f;
}

main.main_background {
	background-color: #f4f5f9;
	box-shadow: 0 0 20px rgba(0,0,0,0.1);
	padding: 0em;
	font-family: "Roboto", sans-serif;
}

main p {
	line-height: 1.5;
}

footer {
	display: flex;
	justify-content: space-between;
	background-color: #2c2f33;
	color: white;
	font-family: "Roboto", sans-serif;
	padding: 1.5em;
}
footer a {
	text-decoration: none;
	color: #f15d22;
}

/*// Extra small devices (portrait phones, less than 34em)*/
/*// No media query since this is the default in Bootstrap*/

/*// Small devices (landscape phones, 34em and up)*/
@media (min-width: 34em) { 
	header {
		height: 10em;
		padding: 5em;
		position: relative;
		overflow: hidden;
	}

	header::after {
		background-color: #f4f5f9;
		content: "";
		position: absolute;
		width: 150%;
		height: 30em;
		right: -3em;
		bottom: -25.5em;
		transform: rotate(-4deg);
	}

	header h1 {
		font-size: 2.5em;
	}
	
	header h5 {
		font-size: 0.8em;
	}

	main {
		width: 20.5em;
		margin: auto;
		margin-bottom: 1em;
	}

	main.main_background {
		padding: 3em;
	}

	main article {
		flex-grow: 1;
		height: 10em;
	}

	main article:nth-child(1), main article:nth-child(4){
		width: 100%;
		display: block;
	}
}

/*// Medium devices (tablets, 48em and up)*/
@media (min-width: 48em) {
	header {
		height: 15em;
		padding: 10em;
		position: relative;
		overflow: hidden;
	}
	header h1 {
		font-size: 4em;
	}
	header h5 {
		font-size: 1.5em;
	}
	main {
		width: 29em;
		transform: translateY(-15em);
	}
	main article h3 a {
		font-size: 1.9em;
	}
}

/*// Large devices (desktops, 62em and up)*/
@media (min-width: 62em) {
	header h1 {
		font-size: 5.5em;
	}
	header h5 {
		font-size: 2.3em;
	}
	main {
		width: 37em;
	}
}

/*// Extra large devices (large desktops, 75em and up)*/
@media (min-width: 75em) {
	header h1 {
		font-size: 6.5em;
	}
	header h5 {
		font-size: 3em;
	}
	main {
		width: 45em;
		transform: translateY(-10em);
	}
}