/*
By Oliver King based on Don Grainger & Andy Carslaw original
*/

/* HTML tags */
html {
	box-sizing: border-box;
	word-wrap: break-word;
	height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  word-wrap: inherit;
}
body {
	font-family:Arial,Helvetica,Verdana,Tahoma,sans-serif;
	margin: 0;
	position: relative;
	background-color: #fafafa;
	height: 100%;
	display: flex;
	flex-direction: column;
}
a {
	color: #002147;
}
a:hover {
	color: #d31245;
}
h1, h2, h3, h4, h5, h6 {
	color: #002147;
}
h1 {
	font-size: 2em;
	margin-left: 4px;
	margin-right: 4px;
}
h2 {
	font-size: 1.25em;
}
h3 {
	font-size: 1.125em;
}
h2, h3, h4, h5, h6 {
	margin-bottom: 0.25em;
}
img, embed, object, video {
	max-width: 100%;
}
form {
	display: inline;
}
table {
	width: 100%;
	border-collapse: collapse;
}
th, td {
	padding: 0.5em; 
	border: 1px solid #ddd;
}
label {
    white-space:nowrap;
}
p:last-child {
	margin-bottom: 0px;
}
:first-child {
	margin-top:0px;
}

/* Common page elements */
#top_nav, #footer {
	flex: 0 0 auto;
}
#page {
	min-height: 250px;
	flex: 1 0 auto;
}
#top_nav, #left_nav {
	margin-bottom: 10px;
}
#top_nav a, #left_nav a {
	text-decoration: none;
}
#nav_site_title {
	color: #002147;
	display: block;
	font-family: DINCondensedA,"Tw Cen MT Condensed","Arial Narrow Bold","Arial Narrow",Arial,sans-serif;
	font-size: 30px;
	line-height: 1em;
	letter-spacing: -1px;
	margin-bottom: 8px;
	margin-top: 3px;
	font-weight: normal;
	height: 60px;
	width: 200px;
}
#top_nav_logo {
	float: right;
	padding-right: 4px;
}
#top_nav_logo img {
	width: 197px;
}
#top_nav_line, #left_nav_line {
	width: 100%;
	background-color: #002147;
	height: 1px;
}
#left_nav {
	padding-left: 4px;
	padding-right: 4px;
}
#left_nav_logo {
	padding-bottom: 8px;
}
#left_nav_logo img {
	width: 192px;
}
#left_nav p {
	margin: 0;
	padding-top: 8px;
	padding-bottom: 8px;
}
#page{
	display: block;
}
#footer {
	padding-top: 0.25em;
	padding-bottom: 0.25em;
	width: 100%;
	background-color: #002147;
	color: #fff;
}

/* Classes */
.container {
	width: 100%;
}
.card{
	border-radius: 2px;
	margin: 8px 4px;
	padding: 8px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
	background-color: #fff;
}
.strong_label{
	font-weight: bold;
	color: #467593;
}
.line{
	display: inline-block;
}
.inline_content {
	max-height: 1em;
	display: inline-block;
}
.space{
	padding-left: 1em;
}
.half_space{
	padding-left: 0.5em;
}
.center{
	text-align: center;
}
.subtle {
	opacity: 0.4;
}
.small {
	font-size:0.8125em;
}
.no_underline {
	text-decoration: none !important;
}
.hidden {
	display: none;
}
.bold{
	font-weight: bold;
}
.n_color{
	color: rgb(57,106,177);
}
.k_color{
	color: rgb(218,124,48);
}
.vertical_center {
	height: inherit;
	width: 100vw;
	display:table-cell;
	vertical-align:middle;
}
code, .mono {
	font-family: monospace, monospace;
	font-size: 0.9em;
	background-color: #eee;
	padding-left: 0.25em;
	padding-right: 0.25em;
}
.error {
	color: #800;
	background-color: #fdd;
}
.warning {
	color: #8a6d3b;
	background-color: #fcf8e3;
}
.line_above {
	border-top: 1px solid #ddd;
	padding-top: 0.5em;
	margin-top:0.5em;
}
.big_input_box {
	font-size: 1.5em;
	margin-bottom: 2px;
}

.info_list {
	list-style: none;
	padding:0;
	margin:0;
}
.info_list li {
	position: relative;
	padding-top: 0.5em;
	margin-top:0.5em;
}
.link_button {
	font-variant: small-caps;
	cursor: pointer;
	text-decoration: underline;
	margin: 0 0.25em;
}

.expand {
	z-index: 2;
	position: absolute;
	bottom: 0;
	padding-bottom: 0.5em;
	padding-top: 1em;
	width: 100%;
	text-align: center;
	font-size: 0.75em;
	color: #467593;
}
.fadeout:after {
	content: "";
	position: absolute;
	z-index: 1;
	bottom: 0;
	left: 0;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255, 1) 50%);
	width: 100%;
	height: 3em;
}

.button{
	position: relative;
	display: block;
	margin: 0.5em auto;
	padding: 0.5em 1em;
	text-align: center;
	border-radius: 2px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
	background-color: #467593;
	color: #fff;
	transition: background-color .2s;
}
.button:hover, .button:focus{
	background-color: #2d5c7a;
}
.button:active{
	background-color: #5f8eac;
}

.flex_form {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}
.flex_grow {
	flex: 1;
}

.left_right_button_wrapper {
	overflow: hidden;
	padding-left: 6px;
	padding-right: 6px;
}
.left_button_wrapper {
	float: left;
	width: 50%;
	padding-right: 4px;
}
.right_button_wrapper {
	float: right;
	width: 50%;
	padding-left: 4px;
}

.headed_list li {
	font-weight: bold;
}
.headed_list li li {
	font-weight: normal;
}
.spaced_list li {
	margin-bottom: 1em;
}
.spaced_list li li {
	margin-top: 0.5em;
	margin-bottom: 0;
}
.unspaced_list li {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.floating_message {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: inherit;
	text-align:center;
	font-size:3em;
	color:#555;
	text-shadow: 0em 0em 0.1em #fff, 0em 0em 0.2em #fff, 0em 0em 0.3em #fff;
	font-style: italic;
	display:table-cell;
	vertical-align:middle;
	z-index: 1;
	background-color: rgba(255, 255, 255, 0.5);
	opacity: 0.75;
}

/* Responsive design */
@media (max-width: 650px) {
	/* These are overridden by @media (max-width: 340px) {...}, so only apply for 340px < width <= 650px */
	#left_nav_menu_container {
		display: flex;
		flex-flow: row wrap;
		justify-content: space-evenly;
	}
	#left_nav_menu_container a{
		flex-grow: 1;
		padding-right: 4px;
		padding-left: 4px;
		border-left: 1px solid #eee;
		border-right: 1px solid #eee;
	}
}
@media (max-width: 340px) {
	#left_nav_menu_container {
		display: block;
	}
	#left_nav_menu_container a{
		padding-right: 0;
		padding-left: 0;
		border-left: 0;
		border-right: 0;
	}
	#top_nav {
		text-align: center;
	}
	#top_nav_logo {
		float: none;
		padding-right: 0;
		width: 100%;
		background-color: #002147;
	}
	#nav_site_title {
		width: 100%;
		height: 100%;
	}
	#left_nav_logo {
		max-width: 100%;
	}
	label {
    	white-space:normal;
	}
}

@media (max-width: 650px) {
	#top_nav {
		margin-bottom: 0;
	}
	#left_nav {
		padding-left: 0;
		padding-right: 0;
	}
	#left_nav_logo {
		width: 100%;
		text-align: center;
		padding-bottom: 0;
		padding-top: 5px;
		background-color: #002147;
	}
	#left_nav_menu_container a{
		text-align:center;
	}
}
@media not all and (max-width: 650px) {
	/* width > 650px (stops confilct at 650px)*/
	#top_nav, #left_nav {
		margin-bottom: 19px;
	}
	#nav_site_title {
		font-size: 63px;
		line-height: 1em;
		letter-spacing: -2px;
		margin-bottom: 16px;
		height: 1em;
		width: 100%;
	}
	#left_nav {
		width: 200px;
		height: 100%;
		float: left;
	}
	#left_nav_line {
		width: 100%;
		background-color: #002147;
		height: 0px;
	}
	.content {
		margin-left: 210px;
	}
}
@media (min-width: 651px) and (min-height: 350px) {
	/* sticky navigation */
	#left_nav {
		position: -webkit-sticky;
		position: sticky;
		top: 4px;
	}
}
@media (min-width: 1100px) {
	.container {
		width: 1100px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* see <style> tags on indivudual pages for page-level CSS */
