html {
	position: relative;
	min-height: 100%;
}

body {
	font-family: sans-serif;
	padding: 0px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
	height:100%;
}

h2 {
	padding: 0 10%;
}

nav {
	vertical-align: top;
	color: white;
	background-color: #a00000;
}

nav a { color: white; }

table {
	margin-left: auto;
	margin-right: auto;
}

td { border: 1px solid black;}

#mainnav {
	background-image: url(logo-mdesign-3.svg);
	background-size: auto 102px;
	background-repeat: no-repeat;
	-moz-columns: 80px;
	-moz-column-fill: auto;
	-webkit-columns: 80px auto;
	height: 120px;
}

.notice{
	background-color: gold;
	color: black;
	text-align: center;
}

footer {
	background: #a00000;
	text-align: center;
	height: 32px;
	color: white;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
}

footer p {
	display: inline;
	position: relative;
	bottom: -5px;
}

article {
	padding: 0px;
	min-height: 100%;
	vertical-align: top;
	padding-bottom: 32px;
}

article img{
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 80%;
	color: grey;
}

blockquote {font-style: italic; color: #555555; padding: 0 10%; text-align: justify;}
nav hr { display: none; }
.navhead { display: none; }

pre{width: 80%; overflow: auto; margin: auto;}
ul {list-style: square; margin: 0 10%;}
hr {background-color: #dddddd; border: 1; width: 80%;}

/* Desktop */
@media only screen and (min-width: 600px) {

	#mainnav{
		background-position: 30px 9px;
		padding-left: 170px;
	}

	nav a {
		font-size: 18px;
		padding: 5px;
		display: block;
		z-index: 1;
		color: white;
	}

	#mainnav a { padding: 2px; font-size: 18px; }

	h1 {
	  display: block;
	  text-align: right;
	  font-size: 48pt;
	  margin: 0px;
	  position: absolute;
	  top: 20px;
	  right: 40px;
	  color: white;
	}
	
	h1.longtitle { font-size: 30pt; top: 38px; }

	article p { text-indent: 2em; padding: 0 10%; text-align: justify;} 

}

/* Mobile */
@media only screen and (max-width: 599px) {
	h1 {
		font-size: 18pt;
		width: 95%;
		position: relative;
		background: none;
		color: #a00000;
		top: 0px;
		right: 0px;
		margin: 20px;
		text-align: center;
	}
	
	#mainnav{
		background-position: 20px calc((120/2) - (102/2));
		padding-left: 150px;
		-moz-columns: 90px;
		-moz-column-fill: auto;
		-webkit-columns: 90px auto;
	}
	
	nav {
		text-align: left;
		padding: 10px;
	}
	
	nav a {
		display: block;
		font-size: 28px;
		padding: 2px;
	}

	article p {
		padding: 0px 20px;
	}
	
	article img{
		width: 80%;
	}
}

@media only screen and (min-width: 600px) and (max-width: 800px){
	h1 { font-size: 24pt; top: 40px;}
	td img { width: 80%; }
	article img{ width: 80%; }
}

@media only screen and (max-width: 380px){
	nav a { font-size: 16pt; }
	#mainnav {
		-moz-columns: 50px;
		-moz-column-fill: auto;
		-webkit-columns: 50px auto;
	}
}