@import url('https://fonts.googleapis.com/css?family=Palanquin');
@import url('https://fonts.googleapis.com/css?family=Martel');

a, a:visited {
    color: #000;
    text-decoration: none;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

a:hover, a:active {
    color: #6a6a6a;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
    line-height: 1.2em;
    margin-bottom: 0.6em;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.7em;
}

h3 {
    font-size: 1.5em;
    margin-top: 2em;
}

p, table {
    margin-bottom: 1em;
}

ol, ul {
    padding-left: 30px;
    margin-bottom: 1em;
}

b, strong {
    font-weight: bold;
}

i, em {
    font-style: italic;
}

u {
    text-decoration: underline;
}

abbr, acronym {
    cursor: help;
    border-bottom: 0.1em dotted;
}

td, td img {
    vertical-align: top;
}

td, th {
    border: solid 1px #999;
    padding: 0.25em 0.5em;
}

th {
    font-weight: bold;
    text-align: center;
    background: #eee;
}

sub {
    vertical-align: sub;
    font-size: smaller;
}

sup {
    vertical-align: super;
    font-size: smaller;
}

code {
    font-family: Courier, "Courier New", Monaco, Tahoma;
    background: #eee;
    color: #333;
    padding: 0px 2px;
}

pre {
    background: #eee;
    padding: 20px;
    margin-bottom: 1em;
    overflow: auto;
}

blockquote {
    ## font-style: italic;
    margin: 0 0 1em 15px;
    padding-left: 10px;
    border-left: 1px solid #dccd44;
}


/* CSS I dont understand */

body {
	display: flex;
	flex-flow: row wrap;
	### margin: 1em;
	font-family: "Martel", Serif;

}

header, aside, nav, footer {
	flex: 1 100%;
}

header {
	display: flex;
	font-size: 2em;
	font-family: "Palanquin", Verdana, Arial, Helvetica, sans-serif;

}
header * {
    -webkit-flex: 1 1 0%;
        flex: 1 1 0%;
}
header img {
        -webkit-flex: 0 0 120px;
        flex: 0 0 120px;
        margin-right: 20px;
}
header nav {
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
}
nav, nav ul, nav li{
        margin: 0;
        padding:0;
        border:none;
}
nav ul {
        display: -webkit-flex;
        -webkit-flex-direction: column;
        display: flex;
        flex-direction: row;
		flex-wrap: wrap;
        justify-content: flex-start;

}
nav li {
        list-style-type:none;
        margin: 0;
        -webkit-flex: 1 1 100%;
        flex: 1 1 100%;
		line-height: 1.5em;
}
nav a {
		  text-decoration: none;
		  color: #000;
}
article {
}

article a {
		color: #808080;
		text-decoration: underline;
		-webkit-transition: all 0.2s linear;
		-moz-transition: all 0.2s linear;
		-ms-transition: all 0.2s linear;
		-o-transition: all 0.2s linear;
		transition: all 0.2s linear;
}
article a:visited {
		color: #808080;
		text-decoration: underline;
		-webkit-transition: all 0.2s linear;
		-moz-transition: all 0.2s linear;
		-ms-transition: all 0.2s linear;
		-o-transition: all 0.2s linear;
		transition: all 0.2s linear;
}

article a:hover, a:active {
		color: #000;
		text-decoration: underline;
	}

    aside {
		text-align: center;
		border-bottom: 2px solid #d8d8d8;
}
footer {

		font-size: smaller;

}
footer * {
        -webkit-flex: 1 1 0%;
        -webkit-justify-content: space-between;
        flex: 1 1 0%;
}

@media all and (min-width: 35em) {
	article {
		flex: 3 1 0%;
		margin-top: 120px;
		margin-left: 22%;
		padding: 2% 12% 2% 2%;
	}

	aside {
		flex: 1 1 initial;
		margin-top: 100px;
		text-align: right;
		position: fixed;
		min-height: 30%;
		width: 15%;
		min-width: 150px;
		padding: 2%;
		border-right: 2px solid #dccd44;
		border-bottom: 0px;

	}

	header {
		display: flex;
		flex-flow: row wrap;
		font-size: 4em;
		padding-left: 1em;
		background-color: #fff;
		position: fixed;
		margin-left: 20%;
		width: 100%;
		transition: all 0.2s;
	}

	header.smaller {
		font-size: 2em;
		margin-left: 10%;
		min-height: 120px;
		
		
	}

	.header-wrapper {
		display: flex;
		flex-flow: row wrap;
		position: relative;

	}

	header * {
		flex: 1 1 0%;
	}

	header img {
		flex: 0 0 400px;
		margin-right: 50px;
	}

	aside nav {
		flex: 1 1 100%;
	}

	nav, nav ul, nav li {
		margin: 0;
		padding: 0;
		border: none;
	}

	nav ul {
		display: flex;
		justify-content: space-around;
		flex-direction: column;
	}

	nav li {
		list-style-type: none;
		margin: 0 0px;
	}
	
	nav li.active {
		font-weight: bold;
	}
}
