/*
This is applied to all pages on the website to create a standard style
*/

*{/*Reset styles, this helps set default values for the page.*/
	border: 0;
	font-size:100%;
	margin: 0;
	padding: 0;
	/*font-weight:normal;*/
}
/***** Global *****/
/* Body */
html, body {
	height: 100%;
	width: 100%;
}

body {
	background-color: #FFF;/*#E4E4E4; #507C77; #3c756e;This is the teal green on either side of the content pane.*/
	font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
	min-height: 1080px;/*This ensures that the page content is at least as tall as the window or taller.*/
	overflow-y: scroll;
	overflow-x: hidden;
}

p{

	/*Place holder*/
}

h1, h2, h3, h4, h5, h6{
	color:#111155; /*Sets text color of headings h1-h6*/
}

h1{/*Should not be used except in the title of the page or a major subsection*/
	font-size: 175%;
	font-weight: bold;
	margin-left: 15px;
}
h2{/*Use theis for all paragraph headings*/
	font-size: 130%;
	font-weight: bold;
}
h3{/*This is designed to be inside of paragraphs and sections*/
	font-size: 110%;
	font-weight: bold;
}		

a{
	color: #343C83;
}
	
a:hover {
	color: #CC0000;
}

table{
	border-collapse:collapse;
}

td{
	border:1px solid black;
	padding:2px;
}

ul, ol {
	list-style-position: inside;
}

subscr{/*Because sub drops down too far and won't let me override certain properties*/
	font-size: 80%;
}

/*sub{
	line-height:0; To prevent line height from changing
	font-size: 80%; Unfortunately, this is % of the already smaller text
}*/

#PagePane{
	/*This is an invisible pane that simply centers the content and acts as a parent.
	It was originally designed to handle the box-shadow, but that proved problematic.*/
	position:relative;/*relative allows it to be centered. Default of static won't work because child elements can't then be absolute.*/
	/*background-color:#FFFFFF;White*/
	/*box-shadow:5px 5px 7px 0px #222222;right 5px, down 5p, dither 7px, enlarge 0px, color:#222222*/
	margin:2px auto 0px auto;/*T R B L, Outside of white box. Centers content in browser.*/
	width: 100%;
	max-width:930px;/*Usable inside space.*/
	justify-content: center;
	/*border:1px; put on elements instead.
	border-color:#000;*/
}		

/*
	Header
*****************/
#TitleAndNav {
	position: relative;
	left: 0px;
	top: 7px;
	height: 110px;
	/*text-align:center;*/
	width: 100%;
	background: #FFF;
	background-repeat: repeat-x;
	/*background:#FFF;*/
	border-left: solid;
	border-left-color: #000;
	border-left-width: 0px;
	border-right: solid;
	border-right-color: #000;
	border-right-width: 0px;
}

#Title {
	position: relative;
	width: 100%;
	max-width: 930px;
	height: 65px; /*This is to make mobile not have too much white space above or below. Height scales with viewport width.*/
	margin: 0 auto 10px auto;
	display: grid; /*puts Logo, SiteTitle, SiteTitle2 into a grid*/
	grid-template-columns: 65px 1fr; /*Grid has two columns. Left column has a min width of 55px, max of 65px. Right column takes up the rest of the width of the div (1 frame).*/
	grid-gap: 1%; /*Determines spacing between columns*/
}

#Logo {
	grid-row: span 2;
	margin: auto 0;
	padding-left: 5px;
}

#Logo img {
	position: relative;
	width: 64px;
	height: 61px;
}

#SiteTitle {
	position: relative;
	width: 100%;
	max-width: 855px;
	bottom: 5%; /*Maintains spacing between SiteTitle and SiteTitle2*/
	margin: auto 0 0 0; /*Positions text at the bottom of the row*/
	font-size: min(6.5vw, 24pt); /*Scales font with viewport width, max size 24pt*/
}
#SiteTitle2 {
	position: relative;
	width: 100%;
	max-width: 855px;
	margin: 0 0 auto 0; /*Positions text at top of row*/
	font-size: min(4vw, 12pt); /*Scales font with viewport width, max size 12pt*/
}
	
#navContainer {
	position: relative;
	background-color:#466271;
	width: 100%;
	height: 30px;
}

#TitleAndNav  nav {
	position: absolute;
	text-align: center;
	padding-top: 0px;
	font-size: 10.5pt;
	height: 30px;
	width: 100%;
	display: inline-block;
	/*z-index: 1;*/
}

	
#TitleAndNav  nav ul {
	position: absolute;
	display: inline-block;
	top: 0px;
	left: 0px;
	margin: 0;
	width: 100%;
	background-color: #466271;
}
	
/*#TitleAndNav  nav ul::after {width:100%; display: inline-block; content:"."; visibility: hidden}*/
#TitleAndNav  nav li {
	display: inline; 
}

#TitleAndNav nav .navMenuIcon {
	display: none !important;
}

#TitleAndNav nav .navMenuIcon span {
	color: transparent;
	font: 0/0 a;
	text-shadow: none;
	margin: 14px auto;
	position: relative;
}

#TitleAndNav nav .navMenuIcon span::before, .navMenuIcon span::after, .navMenuIcon span {
	background-color: #fff;
	border-radius: 3px;
	display: block;
	height: 3px;
	width: 24px;
}

#TitleAndNav nav .navMenuIcon span::before {
	content: '';
	position: absolute;
	margin-top: -7px;
}

#TitleAndNav nav .navMenuIcon span::after {
	content: '';
	position: absolute;
	margin-top: 7px;
}

#TitleAndNav nav #navbar .navMenuIcon {
	width: 40px !important;
}
		
#TitleAndNav  nav a:link, #TitleAndNav  nav a:visited {/*padding must be here to make it look like buttons.*/
	background-color: #466271;
	border: 1px solid #466271;
	color: #FFFFFF;/*#c7d7e0;*/
	white-space:nowrap;
	display: inline-block; /*Menu item take up full height of menu bar.*/
	line-height:28px; /*vertical-align text this way.*/
	padding: 0 17px;
	padding: 0px 17px;/* top 0, sides 17px. This number is just guess and check. I cannot find code that allows auto resizing.*/
	text-decoration: none; /*remove underline from links*/
}
	
#TitleAndNav  nav a:hover, #TitleAndNav  nav a:active,
#TitleAndNav  nav .active a:link, #TitleAndNav  nav .active a:visited {
	background-color: #c7d7e0;
	color: #466271;/*hover over text color*/
	text-shadow: none !important;
}
	
#TitleAndNav  nav li:first-child a {
	
}
	
#TitleAndNav  nav a .menuIcon {
	height: 25px;
	width: 27px;
	position: relative;
	left: 0px;
	margin-left: -10px;
	bottom: -2px;
	float: left;
}
	
#PageTitle{/*Some of the properties of this style are not used yet*/
	position: absolute;
	top: 0px;
	left: 0px;
	height: 35px;
	width: 100%;
	background-color: #558791; /*#526b73;*/
	/*display:inline-block;*/
	vertical-align: middle;
	/*line-height:41px;*/
	/*float:left;*/
}
	
#PageTitle h1{/*Not used yet*/
	font-size:16pt;
	color:#FFFFFF;
	padding-left:8px;
	padding-top:4px;
}

#PageContent{
	background: #FFF;
	font-family: Arial, sans-serif, Trebuchet;
	font-size:100%;
	/*min-height: 480px;*/
	width: 100%;
	max-width: 908.666px;/*+20 padding +1.333 border*/
	text-align: left;
	position: relative;/*position absolute messes up the PagePane box shadow*/
	/*display: inline-block;no idea what this does, so leaving it out.*/
	top: 35px;
	left: 0px;
	padding: 10px;
	padding-top:15px;
	/*padding-top:143px;143+0*/
	/*border:1px;
	border-top:0px;
	border-color:#000;*/
	/*z-index:-1;moves to back of z-index so that title and menu will show on top of it*/
	border-left: solid;
	border-left-color: #000;
	border-left-width: 1px;
	border-right: solid;
	border-right-color: #000;
	border-right-width: 1px;
	border-bottom: solid;
	border-bottom-color: #000;
	border-bottom-width: 1px;
}

.button {
	display: inline-block;
	padding: 10px;
}

.button a {
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	color: white;
	text-decoration: none;
	text-align: center;
	font-size: 100%;
	font-weight: bold;
	padding: 5px 20px;
	margin: auto;
	background-color: #466271;
	border: solid 1px black;
	border-radius: 4px;
}

.redtext {
	color: #F00;
}

/*Past this point the width of PageContent is wider than the screen*/
@media screen and (max-width: 932px) {
	#PagePane {
		width: 100%;
	}
	
	#PageContent {
		border-width: 0px;
		padding: 10px 0px 0px 0px;
	}
	
	h2, h3, p {
		padding: 0px 7px;
	}
}

/*Collapsible nav handling*/
@media screen and (max-width: 768px) {
	#TitleAndNav {
	}
	
	#TitleAndNav nav .navMenuIcon {
		display:inline-block !important;
		padding: 0px !important;
		position: absolute;
		left: 0;
		width: 40px;
		height: 92%; /*This change is for mobile since hamburger menu icon was poking out from the bottom of the navbar, minimal enough to not visually affect desktop.*/
	}
	
	#TitleAndNav nav {
		position: absolute;
		width: 100%;
		float: left;
	}
	
	#TitleAndNav nav ul {
		margin: 0 auto;
	}
	
	#TitleAndNav nav ul, #TitleAndNav  nav:active ul { 
		display: none;
		position: absolute;
		padding: 4px;
		top: 32px;
		border: 2px solid #444;
		width: 50%;
		max-width: 300px;
		min-width: 200px;
		border-radius: 4px 4px 4px 4px;
		z-index: 1;/*Must be greater than 0 to win any ties with other relative/absolutely positioned divs.*/
	}
	
	#TitleAndNav nav li {
		display: inline-block;
		width: 98%;
	}
	
	#TitleAndNav nav a {
		background-color:#466271;
		color: #FFFFFF;
		white-space:nowrap;
		display: block;
		line-height:40px;
		width:98%;
	}
	
	#TitleAndNav .navItem:hover ~ ul,
	#TitleAndNav .navItem ~ ul:hover {
		display:none;
	}
	
	#TitleAndNav nav li {
		text-align: center;
		margin: 0;
	}
	
	#TitleAndNav nav a.open ~ ul{/*~ in this context means find a ul on the same level as a.open (sibling)*/
		display: block;
	}
	
	#TitleAndNav nav a:link, 
	#TitleAndNav nav a:visited {
		padding: 0;
		line-height: 40px;
	}
	
	#TitleAndNav nav ul {
		background-color:#466271;
	}
	
	#TitleAndNav nav p {
			margin: auto;
			width: 65px;
		}
	
	p img {
		top: 7px;
		left: 1px;
	}
}