/**	main.css
	Copyright 2015-2018, Yves Piguet
*/

body {
	background: #eee;
	max-width: 60em;
	margin-left: auto;
	margin-right: auto;
	font-family: helvetica, sans-serif;
	color: #444;
}

#main {
	min-height: 400px;
	margin: 0px;
	padding: 0px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row;
	flex-flow: row;
}

#main > nav {
	width: 22ex;
}

header, footer {
	padding-left: 23ex;
	margin-right: 1ex;
}

header {
}

header h1 {
	margin-top: 0;
	margin-bottom: 0;
	padding-left: 1ex;
	height: 52px;
	background-color: #666;
	color: white;
	font-weight: normal;
	font-size: 28pt;
}

header a {
	text-decoration: none;
}

div.lang {
	font-size: 80%;
	float: right;
}

div.lang a:link, div.lang a:visited {
	margin-top: 0.2ex;
	margin-right: 1ex;
	color: silver;
	text-decoration: none;
}

div.lang strong {
	margin-top: 0.2ex;
	margin-right: 1ex;
	color: white;
	font-weight: bold;
}

footer p {
	margin-top: 0ex;
	font-size: 9pt;
}

footer p span.date {
	float: right;
	color: #bbb;
}

#main > nav li {
	list-style-type: none;
	text-align: center;
	padding-top: 0.1ex;
	padding-bottom: 0.1ex;
	margin-bottom: 0.7ex;
	background-color: #ddd;
	border-radius: 5px;
}

#main > nav li.sub {
	margin-left: 2ex;
}

#main > nav li:hover {
	background-color: #ccc;
}

#main > nav li a:link {
	display: block;
	color: navy;
	text-decoration: none;
}

#main > nav li.sep, #main > nav li.sep:hover {
	margin-bottom: 0.7ex;
	background-color: transparent;
}

div.box {
	float: left;
	width: 350px;
	height: 330px;
	padding: 5px;
	margin: 5px;
	box-shadow: 1px 1px 3px #aaa;
}

div.box img.center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

article {
	margin-left: 1ex;
	margin-right: 1ex;
	padding-top: 1ex;
	padding-bottom: 1ex;
	padding-left: 5ex;
	padding-right: 5ex;
	background: white;
	-webkit-flex: 3 1 60%;
	flex: 3 1 60%;
	-webkit-order: 2;
	order: 2;
}

article > h1:first-child {
	margin-top: 0ex;
}

p, dl, dt, ul, table, td, th {
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 10pt;
	line-height: 1.5
}
pre {
	font-size: 10pt;
	font-family: monaco, courier, fixed;
}

h1 {
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 18pt;
}

h2 {
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 13pt;
	margin-top: 8pt;
}

h3 {
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 12pt;
	margin-top: 1em;
	font-weight: bold;
}

table.framed {
	border-collapse: collapse;
	margin-bottom: 1ex;
}
table.framed td {
	padding:10px;
}
table.framed tr:nth-child(2) {
	border-top:1px #333 solid;
}
table.framed tr:last-child {
	border-bottom:1px #333 solid;
}

div.framebox {
	padding: 10px;
	background: #ffeeee;
}

aside {
	float: left;
	width: 22ex;
}

@media all and (max-width: 1000px) {
	h1 {font-size: 22pt;}
	h2 {font-size: 14pt;}
	h3 {font-size: 11pt;}
}

@media all and (max-width: 800px) {
	body {
		background: white;
		font-size: 80%;
	}

	#main, #page {
		-webkit-flex-flow: column;
		flex-direction: column;
	}

	header, footer {
		padding-left: 0ex;
		padding-right: 0ex;
		margin-left: 2ex;
		margin-right: 2ex;
	}

	article, #main > nav, #main > aside {
		/* document order */
		-webkit-order: 0;
		order: 0;
	}

	article {
		margin-left: 0ex;
		margin-right: 0ex;
	}

	#main > nav {
		width: 100%;
	}

	#main > nav ul {
		margin-left: 1ex;
		padding-left: 0ex;
		padding-bottom: 1ex;
	}
	#main > nav li {
		margin-left: 0px;
		text-align: left;
		padding-left: 1ex;
		padding-right: 1ex;
		background-color: white;
		float: left;
	}
	#main > nav li.sep {
		display: none;
	}
}

@media all and (max-width: 640px) {
	h1 {font-size: 18pt;}
	h2 {font-size: 13pt;}

	header h1 {
		height: 26px;
	}
}

@media all and (max-width: 540px) {
	h1 {font-size: 15pt;}
	h2 {font-size: 13pt;}
}
