html, body {
  margin: 0;
  padding: 0;
}

body,input,option,select {
	font-family: Segoe UI,Roboto,Tahoma,Helvetica,sans-serif;
	font-size: 12pt;
  overflow-x: hidden;
}

body {
	background-color: white;
}

h1 {
	font-weight: normal;
	margin-top: 0;
	margin-bottom: 24px;
	font-size: 180%;
	line-height: 100%;
}

h2 {
	font-weight: normal;
	font-size: 120%;
	margin-bottom: 24px;
}

dl {
	margin: 0;
}

a:hover {
	color: magenta;
}

code {
	font-family: Courier New,Lucida Console,monospace;
	font-size: 90%;
}

/* common styles */

#logo {
	margin-bottom: 20px;
}

.subitems {
	margin-left: 16px;
}

.pad {
	padding: 12px;
}

.nav {
	text-decoration: none;
}

.nav:hover {
	text-decoration: underline;
}

#copyright {
	margin-top: 32px;
	font-size: 80%;
	line-height: 120%;
}

.illustration {
	max-width: 100%;
	margin: 12px 0 12px 0;
}

.ddm {
	margin-bottom: 8px;
}

/* wide screen */

#main {
	display: table;
	margin: auto;
}

#navigation,#content {
	display: table-cell;
	vertical-align: top;
}

#content {
	min-width: 800px;
	max-width: 800px;
}

#navigation {
	width: 300px;
}

.topitemwrapper {
	display: block;
	font-size: 120%;
	margin-top: 8px;
}

/* medium screen */
@media screen and (max-width: 1024px)
{
	pre {
		white-space: pre-wrap;
	}
	
	#content {
		min-width: 500px;
	}
}

/* small screen */
@media screen and (max-width: 800px)
{

	body,input,option,select {
		font-size: 14pt;
		line-height: 140%;
	}
	
	#logo {
		max-width: 100%;
	}
	
	#main {
		display: block;
	}

	#navigation,#content {
		display: block;
		min-width: 100%;
		max-width: 100%;
	}
	
	.subitems {
		display: none;
	}
	
	.topitem {
		padding: 2px 12px 4px 12px;
		margin-right: 4px;
		line-height: 200%;
		background-color: #E0E0E0;
		border-radius: 4px;
		white-space: nowrap;
	}

	.topitemwrapper {
		display: inline;
		font-size: 100%;
	}

}

