/* CSS I understand */
@font-face { font-family: 'OpenSansBold';
	src: url('ABeeZee-Regular.ttf') format('truetype');
	font-style: bold;
	font-weight: 700;
}

@font-face { font-family: 'OpenSansLight';
	src: url('ABeeZee-Regular.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
			
}
	
a {
	white-space: normal !important;
}	
	
a, a:visited {
	color: #029fe0;
	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: #029fe0;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2em;
	margin-bottom: 0.6em;

}
	
h1 {
	font-size: 3em;
	font-weight: 700;
	color: #029fe0;
	margin-top: 2em;
}

h2 {
	font-size: 2em;
	font-weight: 700;
	color: #029fe0;
	margin-top: -0.5em;
}

h1 {
	font-size: 3em;
	font-weight: 700;
	color: #029fe0;
	margin-top: 0.5em;
}

h2 {
	font-size: 2em;
	font-weight: 700;
	color: #029fe0;
	margin-top: -0.6em;
}

h3 {
	font-size: 1.5em;
	font-weight: 700;
	margin-top: 4em;
	color: #029fe0;
}

h4 {
	font-size: 1.3em;
	font-weight: 900;
	margin-top: 4em;
	color: #029fe0;
}

h5 {
	font-size: 1.3em;
	font-weight: 900;
	margin-top: 2em;
	color: #999;
}

h5:before {
	content: "> "; 
}

p {
	margin-bottom: 1em;
}

ol, ul {
	padding-left: 30px;
	margin-bottom: 1.5em;
}

b, strong {
	font-weight: bold;
	color: #029fe0;
}

i, em {
	font-style: italic;
	font-family: "Times New Roman", Times, serif;
	font-size: 110%;
	color: #999;
}

u {
	text-decoration: underline;
}

abbr, acronym {
	cursor: help;
	border-bottom: 0.1em dotted;
}

table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	margin-bottom: 2.5em;
	table-layout: fixed;
	-webkit-box-shadow:0 1px 3px rgba(0,0,0,.15);
	-moz-box-shadow:0 1px 3px rgba(0,0,0,.15);
	box-shadow:0 1px 3px rgba(0,0,0,.15);
}

td, td img {
	vertical-align: top;
}

td, td ul {
	padding-left: 10px;
}

th, td {
	border: solid 1px #aaa;
	padding: 0.5em;
}
		
tr {
	font-size: 0.8em;
	hyphens: auto;
}
  
tr:nth-child(2n) {
    background-color: #eee;
}

th {
	padding-top: 1em;
	padding-bottom: 1em;
	border: solid 1px #eee;
	border-bottom: none 0px #aaa;
	font-weight: bolder;
	font-size: 1.2em;
	text-align: center;
	color: #fff;
	background: #aaa;
}

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;
	max-width: 100%;
}

pre {
	background: #eee;
	padding: 20px;
	margin-bottom: 5em;
	overflow: auto;
	max-width: 100%;
	white-space: pre-wrap;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
	word-wrap: break-word;	
	border: solid 1px #aaa;
	-webkit-border-radius: .6em;
	-moz-border-radius: .6em;
	border-radius: .6em;	
	-webkit-box-shadow:0 1px 3px rgba(0,0,0,.15);
	-moz-box-shadow:0 1px 3px rgba(0,0,0,.15);
	box-shadow:0 1px 3px rgba(0,0,0,.15);
}

blockquote {
	font-family: "Times New Roman", Times, serif;
	font-size: 110%;
	font-style: italic;
	margin: 0 0 1em 15px;
	padding-left: 10px;
	border-left: 5px solid #dddddd;
}

hr {
	border: 0 none;
	border-top: 1px dotted #000;
	background: none;
	height: 0;
}

content hr {
	margin-top: 7em;
	margin-bottom: 7em;
	
}

hr.normal {
	margin-top: 1em;
	margin-bottom: 1em;
}

/* CSS I dont understand */

body {
	display: flex;
	flex-flow: row wrap;
	margin: 10px;
	font-family: "OpenSansLight";

}

header, aside, nav, footer {
	flex: 1 100%;
	flex-flow: row wrap;
}

header {
	font-size: 2em;
	text-align: center;
	margin: 0 0 50px;
	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%;
}

.header-img {
	position: fixed;
	top: 0px;
	left: 0px;
	height:50px;
}
	
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%;
	text-align: center;
	line-height: 1.5em;
	
}
nav a {
	text-decoration: none;
	color: #029fe0;
	white-space: normal !important;
}

nav a:hover, a:active {
	text-decoration: underline;
}

article {
	margin-top: 25px;
	margin-left: 5%;
	padding: 1% 5% 1% 1%;
}

p {
	line-height:130%;
}

article a {
	color: #029fe0;
	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;
}
article a:visited {
	color: #029fe0;
	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;
}

content a {
	text-decoration: underline;
}
content a:visited {
	text-decoration: underline;
}

article a:hover, a:active {
	color: #029fe0;
	text-decoration: underline;
}

article img {
	width: 100%;
}

aside {
	text-align: center;
	border-bottom: 2px solid #d8d8d8;
	margin-top: 100px;
}
footer {

	font-size: smaller;

}
footer * {
	-webkit-flex: 1 1 0%;
	-webkit-justify-content: space-between;
	flex: 1 1 0%;
}

		
.ui-li-static.ui-collapsible > .ui-collapsible-heading {
	margin: 0;
}
.ui-li-static.ui-collapsible {
	padding: 0;
}
.ui-li-static.ui-collapsible > .ui-collapsible-heading > .ui-btn {
	border-top-width: 0;
}
.ui-li-static.ui-collapsible > .ui-collapsible-heading.ui-collapsible-heading-collapsed > .ui-btn,
.ui-li-static.ui-collapsible > .ui-collapsible-content {
	border-bottom-width: 0;
}

.ui-listview > li a {
  white-space: normal !important;
}


.toc1 {
	margin-left: 0em;
	padding-left: 0em;
	font-weight: bold;
	margin-top: 1em;
	margin-bottom: 0.75em;
}

.toc2 {
	margin-left: 1.5em;
	padding-left: 1.5em;
	font-weight: bold;
	margin-top: 1em;
	margin-bottom: 0.75em;
}

.toc3 {
	font-weight: normal !important;
	color: #999 !important;
	margin-left: 3em;
	padding-left: 3em;	
	margin-bottom: 0.75em;
}

.toc4 {
	font-weight: normal !important;
	color: #999 !important;
	margin-left: 4.5em;
	padding-left: 4.5em;
	margin-bottom: 0.75em;
}

.toc5 {
	font-weight: normal !important;
	color: #999 !important;
	margin-left: 6em;
	padding-left: 6em;
	margin-bottom: 0.75em;
}

.toc6 {
	font-weight: normal !important;
	color: #999 !important;
	margin-left: 7.5em;
	padding-left: 7.5em;
	margin-bottom: 0.75em;
}

@media all and (min-width: 45em) {
	
	article {
		flex: 3 1 0%;
		margin-top: 60px;
		margin-left: 15%;
		padding: 2% 15% 2% 2%;
	}
	
	h1 {
		font-size: 3em;
		font-weight: 700;
		color: #029fe0;
		margin-top: 2em;
	}

	h2 {
		font-size: 2em;
		font-weight: 700;
		color: #029fe0;
		margin-top: -0.6em;
	}

	h3 {
		font-size: 1.5em;
		font-weight: 700;
		margin-top: 4em;
		color: #029fe0;
	}

	h4 {
		font-size: 1.3em;
		font-weight: 900;
		margin-top: 4em;
		color: #029fe0;
	}

	h5 {
		font-size: 1.3em;
		font-weight: 900;
		margin-top: 2em;
		color: #999;
	}
	
	h5:before {
		content: "> "; 
	}
	
	aside {
		flex: 1 1 0%;
		margin-top: 70px;
		text-align: right;
		position: fixed;
		width: 18%;
		padding: 2%;
		border-right: 2px solid #d8d8d8;
		border-bottom: 0px;

	}
	
	.header-img {
		height:150px;
	}
	
	nav li {
		text-align: right;
	}

	header {
		display: flex;
		flex-flow: row wrap;
		font-size: 6em;
		padding: 2% 2% 2% 2%;
		background-color: #fff;
		/*position: fixed;*/
		margin-left: 22%;
		width: 100%;
		transition: all 0.5s;
		text-align: left;
		white-space: normal;
	}

	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%;*/
		margin-top: 50px;
	}

	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;
	}
	
		
	.ui-li-static.ui-collapsible > .ui-collapsible-heading {
		margin: 0;
	}
	.ui-li-static.ui-collapsible {
		padding: 0;
	}
	.ui-li-static.ui-collapsible > .ui-collapsible-heading > .ui-btn {
		border-top-width: 0;
	}
	.ui-li-static.ui-collapsible > .ui-collapsible-heading.ui-collapsible-heading-collapsed > .ui-btn,
	.ui-li-static.ui-collapsible > .ui-collapsible-content {
		border-bottom-width: 0;
	}

	.ui-listview > li a {
	  white-space: normal;
	}


	.toc1 {
		margin-left: 0em;
		padding-left: 0em;
		font-weight: bold;
		margin-top: 1em;
		margin-bottom: 0.75em;
	}

	.toc2 {
		margin-left: 1.5em;
		padding-left: 1.5em;
		font-weight: bold;
		margin-top: 1em;
		margin-bottom: 0.75em;
	}

	.toc3 {
		font-weight: normal !important;
		color: #999 !important;
		margin-left: 3em;
		padding-left: 3em;	
		margin-bottom: 0.75em;
	}

	.toc4 {
		font-weight: normal !important;
		color: #999 !important;
		margin-left: 4.5em;
		padding-left: 4.5em;
		margin-bottom: 0.75em;
	}

	.toc5 {
		font-weight: normal !important;
		color: #999 !important;
		margin-left: 6em;
		padding-left: 6em;
		margin-bottom: 0.75em;
	}

	.toc6 {
		font-weight: normal !important;
		color: #999 !important;
		margin-left: 7.5em;
		padding-left: 7.5em;
		margin-bottom: 0.75em;
	}


}