

/************************************************** GENERAL SITE STYLING
*/

body {
	font-family: Helvetica, Sans serif;
	font-size: 13px;
}


/* Some basic text formatting
*/
.underline { text-decoration: underline; }
.bold { font-weight: bold; }
.italic { font-style: italic; }
.left { text-align: left; }
.center {text-align: center; }
.right { text-align: right; }
.spread { letter-spacing: 2px; }
.uppercase { text-transform: uppercase; }
.indent { margin-left: 1em; }

/* */
img.left { float: left; }
img.right { float: right; }


/* Reset some default element spacing
*/
h1, h2, h3, h4, h5, h6, ul, li {
	margin: 0;
	padding: 0;
}

#page-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 480px;
	min-height: 610px;
	overflow: hidden;
}

.background-image {
	/* fixed position auto-centered bounding box */
	position: fixed;
	width: 400%;
	height: 400%;
	top: -150%;
	left: -150%;
	/* */
	opacity: 1.0;
	display: block;
}

.background-image img {
	/* auto-centered at least the size of the window */
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	min-width: 26%;
	min-height: 26%;
}

.background-image img.blur-onload.blurred {
	filter: blur(15px);
}

header.page-header, footer.page-footer {
	min-width: 460px; /* use px bc font size vary */
}

header.page-header {
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	height: 4em;
	background-color: black;
	opacity: 0.75;
	color: rgb(255, 255, 255);
}

header.page-header > div.masthead {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0.5em 1em;
}

div.masthead > .sitename {
	letter-spacing: 0.2em;
}

div.masthead > .sitedesc {
	letter-spacing: 1px;
}

header.page-header > nav.page-nav {
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 0 1em 0.5em 0;
}

nav li {
	display: inline-block;
	min-width: 4em;
	margin: 0 0.5em;
	padding: 0.2em;
	border: 1px solid white;
	border-radius: 4px;
	text-align: center;
	cursor: pointer;
	font-weight: 500;
	letter-spacing: 0.1em;
}
nav li.selected { cursor: default; }

nav li:hover {
	background-color: rgba(255, 255, 255, 0.9);
	color: black;
}

nav li.selected:hover {
	background-color: inherit;
	color: inherit;
}

nav li > a {
	text-decoration: none;
	color: inherit;
}


main {
	position: absolute;
	top: 7em;
	/*
	min-height: 30em;
	max-height: 80%;
	*/
	bottom: 7em;
	width: 90%;
	right: 0;
	padding: 0.5em 0;
	overflow: hidden;
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
	background-color: white;
	z-index: 90;
	/* */
	opacity: 0.98;
	display: none;
}

footer.page-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 0.5em 1em;
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	font-size: smaller;
	font-weight: 500;
	letter-spacing: 0.1em;
	z-index: 10;
	text-align: left;
}




/************************************************** MEDIA ADJUSTMENTS
*/

@media screen and (min-width: 1350px) and (max-height: 800px),
screen and (max-width: 1350px) and (max-height: 800px) and (min-aspect-ratio: 1000/640){
/* SEE ABOVE CALCULATION. Move footer to left and up a bit from the bottom when the footer
   would otherwise interfere with the content.
*/
	#page-container {
		overflow-x: hidden;
		overflow-y: scroll;
	}

	main.main-photo ~ footer.page-footer {
		min-width: initial;
		width: 11%;
		bottom: 6.5em;
	}
}

