body
{
	padding: 0;
	margin: 0;
	font-family: Verdana;
	background-color: white;
	display: grid;
	min-height: 100vh;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: "nav nav"
						 "main side"
						 "footer footer";
	grid-template-columns: 1fr auto;
}

header
{
	margin: 0;
	paddin: 0;
}

h1, h2, h3
{
	margin: 0;
	padding: 0;
	display: inline;
}

nav
{
	padding: 0px;
	margin: 0px;
	display: flex;
	background-color: #062463;
	justify-content: space-between;
	flex-wrap: wrap;
	grid-area: nav;

}

nav ul
{
	background-color: #062463;
	color: white;
	margin: 0;
	padding: 0;
	list-style-type: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

nav li
{
	margin: 0;
	padding: 0;
}

nav a, nav a:visited
{
	padding: 10px;
	text-decoration: none;
	color: white;
	display: block;
	font-weight: bold;
	text-align: center;
	line-height: 100%;
}

nav a:hover, nav a:focus
{
	padding: 10px;
	text-decoration: underline;
	display: block;
	font-weight: bold;
}

a, a:visited
{
	color: #062463;;
}

a:hover
{
	text-decoration: underline
}

#content
{
	padding: 15px;
	font-family: monospace;
	font-size: 14pt;
	flex: 1;
	grid-area: main;
	overflow-x: scroll;
}

#sidebar
{
	grid-area: side;
}

#sidebar ul
{
	list-style-type: none;
}

#sidebar a, a:visited
{
	color: #062463;
}

#content a, a:visited
{
	color: #062463;
}


footer
{
	width: 100%;
	display: block;
	color: white;
	background-color: #062463;
	font-weight: bold;
	grid-area: footer;
}

footer ul
{
	background-color: #062463;
	margin: 0px;
	padding: 0px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
}

footer li
{
	margin: 0;
	padding: 0;
	display: inline-block;
	line-height: 45px;
	color: white;
	font-weight: bold;
	text-align: center;
}

footer a, a:visited
{
	text-decoration: none;
	color: white;
	display: inline-block;
}

footer a:hover, ul#nav a:focus
{
	text-decoration: underline;
	display: inline-block;
}

#cats
{
	background-color: #062463;
}

.letter_search_result
{
	margin-top: 10px;
	font-weight: bold;
}

ol
{
	counter-reset: item;
}

.indexlink
{
	display: block;
}

.notexists
{
	color: red !important;
	font-weight: bold;
}

#searchlink
{
	display: none;
}

img {
	max-width: 100%;
}

#sidebar
{
	display: none
}

@media screen and (orientation: portrait)
{
	#content {
		font-size: 12pt;
	}
	#content h1 {
		font-size: 1.5em;
	}

	#content h2 {
		font-size: 1.2em;
	}

	#content h3 {
		font-size: 1.0em;
	}

	#content li {
		margin-top: 20px;
		font-size: 10pt;
		margin-left: 2px;
		padding-left: 0;
	}

	#content ul {
		margin-left: 0;	
		padding-left: 0;
	}
	#sidebar
	{
		display: none;
	}

	#footer li:nth-child(-n+2)
	{
		display: none;
	}

	#footer li:nth-of-type(3)
	{
		text-align: center;
		width: 100%;
	}

	#searchlink {
		display: none;
	}

}


#searchbar {
	display: none;
}

pre {
padding: 0;
overflow-x:auto;
}

/* pre blockquote {
padding: 0;
overflow-x:auto;
}
pre code {
padding: 0;
overflow-x:auto;
}
*/
