@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/* CSS I understand */
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;
}

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

table {
	border-spacing: 0px;
}

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 #000;
    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: 5px solid #dddddd;
}

.char-img {
	float: left;
	margin-right: 20px;
	border: 1px #000 solid;
}

/*@font-face {
	font-family: 'OpenSansBold';
	src: url('../css/OpenSans-Bold.ttf');
}
@font-face {
	font-family: 'OpenSansLight';
	src: url('../css/OpenSans-Light.ttf');
}*/

/* CSS I dont understand */

body {
	display: flex;
	flex-flow: row wrap;
	margin: 0;
	font-family: "Lexend", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	background-color: #8899bb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23c9d2e3' fill-opacity='0.15' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

header {
	display: flex;
	font-size: 3em;
	/*font-family: "OpenSansBold";*/

}
header * {
    -webkit-flex: 1 1 0%;
        flex: 1 1 0%;
}
header img {
        -webkit-flex: 0 0 150px;
        flex: 0 0 150px;
        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: #333;
		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: #333;
		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: 170px;
		margin-left: 22%;
		padding: 0% 15% 2% 2%;
	}

	aside {
		flex: 1 1 0%;
		margin-top: 170px;
		text-align: right;
		position: fixed;
		width: 18%;
		padding: 2%;
		border-right: 1px solid #000;
		border-bottom: 0px;

	}

	header {
		display: flex;
		flex-flow: row wrap;
		font-size: 6em;
		position: fixed;
		padding-left: 20%;
		width: 100%;
		transition: all 0.5s;
		background-color: #ffffff;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%238899bb' fill-opacity='0.15' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	}

	header.smaller {
		font-size: 3em;
		
	}

	.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;
	}
}