* { 
	margin: 0px; 
	padding: 0px; 

    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

	font-family: Verdana, Arial, Helvetica, sans-serif; 
}

*:focus {
	outline: none;
}

html { 
    overflow: auto; 
    width: 100%;
    height: 100%;
	min-width: 340px;
	min-height: 340px;
}

body {
    font-size: 1em;
    margin: 0px;
    padding: 0px;
    text-decoration: none;
    width: 100%;
    min-height: 100%;
}

h1 {
	text-align: center;
}

#header {
    display: flex;
    flex-flow: row nowrap;
	align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0.125em 0;
	overflow: hidden;
	font-size: 1em;
	border-bottom: 0.125em solid #6696C8;
}

#header > img, #header > h1 {
	display: block;
	margin: 0 0 0 0.25em;
	color: #6696C8;
}

#header > img {
	flex: 0 0 auto;
	border: none;
}

#header > h1 {
	flex: 1 1 auto;
	font-size: 1.25em;
	font-weight: bold;
	text-align: left;
}

#footer {
    width: 100%;     
	margin: 0;
	padding: 0;
    overflow: hidden;
	font-size: 1em;
	text-align: right;
	border-top: 0.125em solid #6696C8;
}

#footer h3 {
	display: inline-block;
	padding: 0.5em;
	margin: 0 1em;
    font-size: 0.75em;
	font-weight: normal;
}

#main {
	position: relative;
    width: 100%;
	min-height: 80vh;
	min-height: calc(100vh - 4.75em);
	margin: 0;
	overflow: hidden;
	font-size: 1em;
}

.content {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	z-index: 10;
}

.content h2, .content h3 {
	display: block;
	margin: 0.5em;
	font-size: 1.125em;
	font-weight: bold;
}

.content p {
	display: block;
	margin: 0.5em;
}

.content ul, .content ol {
	display: block;
	margin: 0.5em;
	padding: 0 0 0 1.75em;
}

.content ul {
	list-style: disc;
}

.content ol {
	list-style: decimal;
}

.content ol.alpha {
	list-style: upper-alpha;
}

.content ul > li, .content ol > li {
	display: list-item;
	margin: 0.5em 0;
}

.content .list-caption {
	display: block;
	margin: 1.5em 0.5em 0.5em 0.5em;
	font-weight: bold;
}

.content .list-subcaption {
	display: block;
	margin: 1.5em 0.5em 0.5em 0.5em;
	font-weight: bold;
	font-style: italic;
	font-size: 0.875em;
}

.content .links {
    display: flex;
    flex-flow: row wrap;
	align-items: center;
    justify-content: flex-start;
    width: 100%;
	margin: 1em 0;
	padding: 1em;
	overflow: hidden;
}

.link-button, .img-button {
	display: block;
	flex: 0 0 auto;
	padding: 0;
    cursor: pointer;
	outline: none;
	text-decoration: none;
	text-align: center;
	font-size: 1em;
	border: solid 0.125em #6696C8;
	border-radius: 0.5em;
}

.link-button > span {
	display: inline-block;
	font-weight: bold;
	font-size: 0.875em;
	min-width: 10em;
	line-height: 2em;
	margin: 0.125em;
	padding: 0;
	vertical-align: middle;
	
	border: solid 0.125em #6696C8;
	border-radius: 0.325em;
}

.img-button > img {
	display: inline-block;
	vertical-align: middle;
	margin: 0.25em;
	padding: 0;
}

.img-button > span {
	display: inline-block;
	vertical-align: middle;
	font-weight: bold;
	font-size: 0.75em;
	margin: 0 0.25em 0 0;
	padding: 0;
	text-align: left;
}

.middle-space {
	display: block;
	flex: 1 1 auto;
	width: auto;
	height: 1em;
	margin: 0 1em;
}

.theme-fg {
	color: #000000;
}

.theme-bg {
    background-color: #FFFCF9;
}

.theme-active-border {
	border-color: #6696C8;
}

.theme-active-bg {
	background-color: #6696C8;
}

.theme-active-border:hover, .theme-active-border:active {
	border-color: #82A1BF;
}

.theme-active-bg:hover, .theme-active-bg:active {
	background-color: #82A1BF;
}

@media (prefers-color-scheme: dark) {
	.theme-fg {
		color: #FFFCF9;
	}
	
	.theme-bg {
		background-color: #000000;
	}

	.theme-active-border:hover, .theme-active-border:active {
		border-color: #4787C6;
	}

	.theme-active-bg:hover, .theme-active-bg:active {
		background-color: #4787C6;
	}
}

@media all and (max-width: 800px) {
	.link-button {
		font-size: 0.875em;
	}
}

@media all and (max-width: 640px) {
	body {
		font-size: 0.875em;
	}

	.link-button {
		font-size: 0.825em;
	}
}

@media all and (max-width: 480px) {
	body {
		font-size: 0.825em;
	}

	.link-button {
		font-size: 0.825em;
	}
}

@media all and (max-width: 400px) {
	.link-button {
		font-size: 0.75em;
	}
}
