@charset "UTF-8";

/* Imports */
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab);
@import url(http://fonts.googleapis.com/css?family=Open+Sans);

/* Global Styles */
* {
  box-sizing: border-box;
}

article, aside, footer, header, main, nav, section {
  display: block;
}

/* Body Structure */
body {
  margin: 0 auto;
  padding: 0;
  font-size: 18px;
	line-height: 32px;
	color: #333;
	word-wrap: break-word !important;
	font-family: 'Open Sans', sans-serif;
	width: 90%;
}

h1, h2, h3, h4, h5, h6 {
	color: #333;
	font-family: "Roboto Slab", sans-serif;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
}

h1 {
	font-size: 40px;
}

h2 {
	font-size: 30px;
}

h3 {
	font-size: 24px;
}

p {
	margin: 0 0 24px;
	margin: 0 0 2.4rem;
	padding: 0;
}

/* Header */
header {
	width: 100%;
	padding: 3%;
	background-color: #FF5722;
}

header .title {
  font-size: 50px;
	color: #fff;
}

/* Navigation */
nav {
	width: 97%;
	background-color: #E64A19;
	padding: 0 1.5% 0 1.5%;
}

nav a {
	display: inline-block;
	padding: 15px 1.5% 15px 1.5%;
	text-decoration: none;
	color: #ffffff;
	font-size: 1.2em;
}

nav a:hover {
	color: #000000;
	text-decoration: none;
}

nav .icon {
	display: none;
}

/* Page Structure */
.wrapper {
	margin: 0 auto;
	display: flex;
	flex-flow: row wrap;
}

.wrapper>*{
	flex: 1 100%;
}

.main {
	padding: 3%;
}

.aside {
	padding: 3%;
	background-color: #eee;
}

.aside2 {
	background-color: #000;
	color: white;
}

.aside2 h3 {
	color: white;
}

img {
	max-width: 100%;
	height: auto;
}

.aside2 img {
	max-width: 100%;
	height: auto;
	background-color: #eee;
}

.footer {
	width: 94%;
	padding-top: 3%;
	background-color: #FF5722;
	border-top: 5px solid #E64A19;
	color: #fff;
	text-align: center;
}

@media all and (min-width: 900px) {
	.main {
		flex: 3;
	}
	.aside1 {
		order: 1;
	}
	.aside2 {
		order: 2;
	}
	.main {
		order: 2;
	}
	.footer {
		order: 4;
	}
}

@media all and (min-width: 700px) {
	.aside {
		flex: 1;
	}
}

@media screen and (max-width: 600px) {
  .nav a:not(:first-child) {display: none;}
  .nav a.icon {
    float: right;
    display: block;
	}
}

@media screen and (max-width: 600px) {
  .nav.responsive {position: relative;}
  .nav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
	}
  .nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}