﻿
* 
{
	margin: 0;
	padding: 0;
}

html, body
{
	height: 100%;
}

body
{
	background-color: #f1f1f1;
}

#wrap
{
	min-height: 100%;
}

#main
{
	padding-bottom: 32px;
}
/* must be same height as the footer */

/*Opera Fix*/
body:before
{ /* thanks to Maleika (Kohoutec)*/
	content: "";
	height: 100%;
	float: left;
	width: 0;
	margin-top: -32767px; /* thank you Erik J - negate effect of float*/
}

#header
{
	width: 100%;
	border-bottom: 1px solid #010101;
	display: inline-block;
	height: 79px;
	background-image: url('/images/header-background.png');
	background-repeat: repeat-x;
	background-position: left;
	background-size: 100% 79px;
}

	#header a
	{
		display: inline-block;
		margin: 0;
	}

footer#footer
{
	position: relative;
	margin-top: -32px; /* negative value of footer height */
	height: 32px;
	clear: both;
	padding: 0px 0px 0px 6px;
	background: rgb(228,245,252); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(228,245,252,1) 0%, rgba(191,232,249,1) 16%, rgba(159,216,239,1) 31%, rgba(54,135,170,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(228,245,252,1)), color-stop(16%,rgba(191,232,249,1)), color-stop(31%,rgba(159,216,239,1)), color-stop(100%,rgba(54,135,170,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(228,245,252,1) 0%,rgba(191,232,249,1) 16%,rgba(159,216,239,1) 31%,rgba(54,135,170,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(228,245,252,1) 0%,rgba(191,232,249,1) 16%,rgba(159,216,239,1) 31%,rgba(54,135,170,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(228,245,252,1) 0%,rgba(191,232,249,1) 16%,rgba(159,216,239,1) 31%,rgba(54,135,170,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(228,245,252,1) 0%,rgba(191,232,249,1) 16%,rgba(159,216,239,1) 31%,rgba(54,135,170,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e4f5fc', endColorstr='#3687aa',GradientType=0 ); /* IE6-9 */
}

	footer#footer h3
	{
		font-size: 9px;
		text-align: left;
		color: #555;
		padding: 3px 0px 0px 0px;
		margin: 0;
		display: inline-block;
		line-height: 26px;
	}

	footer#footer nav
	{
		display: inline;
	}

	footer#footer time
	{
		display: none;
	}


body.home-page
{
	padding: 0;
	text-align: left;
}

#loader
{
	background: url("/images/loading.gif") no-repeat scroll center center #FFFFFF;
	height: 100%;
	position: fixed;
	text-indent: -9999px;
	width: 100%;
	z-index: 9999;
}

section.container-fluid
{
	text-align: left;
}

article.content
{
	display: block;
}

nav.menu
{
	background: #BDD2FF;
	background: #3687AA;
	width: 100%;
	display: inline-block;
	margin: 0 -20px 0 -20px;
	padding: 0 40px 0 0;
}

.sf-menu
{
	margin-bottom: 0;
	background-color: #3687aa;
}

#content
{
	width: 100%;
	float: left;
	clear: both;
}

#left-nav
{
	display: block;
	float: left;
	width: 15%;
	padding: 6px;
}

	#left-nav div
	{
		margin: 3px 0px;
	}

#content-inner
{
	display: block;
	float: left;
	width: 82%;
	padding: 6px;
}

.content h1
{
	font-size: 1.3em; /* For IE<9 that doesn't understand rem */
	font-size: 1.3rem;
	color: #0000ee;
}
.content h2
{
	font-size: 1.1em; /* For IE<9 that doesn't understand rem */
	font-size: 1.1rem;
}

.mobile-menu
{
	position: absolute;
	top: 26px;
	right: 6px;
	margin: 0;
	padding: 0;
	display: none;
}

.contact .label
{
	display: inline-block;
	width: 100%;
}
.contact .value
{
	display: inline;
}
#main.container-fluid .row-fluid
{
    display: block;
    padding-left: 9px;
}
.module
{
	margin: 0px 0px 6px 6px;
	padding: 6px;
}
.module.float-right
{
	float: right;
}
.module.rounded-corners
{
	border: 1px solid gray;
	border-radius: 6px;
}

.links-of-interest
{
	max-width: 300px;
}

@media screen and (min-width: 1200px)
{
	.row
	{
		margin: 0;
	}
}

@media screen and (min-width: 800px)
{
	#header
	{
		height: 99px;
		background-size: 100% 99px;
	}
}

@media all and (max-width: 799px) and (min-width: 344px)
{
	#main.container-fluid
	{
		display: table-row;
	}
	nav.menu
	{
		display: table-cell;
		width: 20%;
		vertical-align: top;
		margin: 0;
		padding: 0 0 60px 0;
		position: relative;
		right: 0;
		top: 0;
		left: 0;
		background: inherit;
	}
	nav.menu li a
	{
		border-left: none;
		border-bottom: none;
	}
	nav.menu li
	{
		border-bottom: 1px solid #fff;
	}
	div.address
	{
		padding-bottom: 60px;
	}
	div.address .row-fluid
	{
		float: left;
	}
	#main.container-fluid .row-fluid
	{
		display: table-cell;
		width: 80%;
		padding-left: 9px;
	}
	#main.container-fluid .row-fluid:before
	{
		display: inline;
	}
	#main.container-fluid
	{
		display: inline-block;
		padding-right: 12px;
		padding-left: 0px;
	}
	.sf-vertical, .sf-vertical li
	{
	    width: 100%;
	    min-width: 10em;
	}
	.module.links-of-interest
	{
		word-wrap: break-word;
		margin-right: 6px;
		max-width: 12em;
	}
}

@media all and (max-width: 343px)
{
	h1
	{
		line-height: 1.1em;
	}
	#main.container-fluid
	{
		display: inline-block;
		padding-right: 12px;
		padding-left: 0px;
	}
	.mobile-menu
	{
		display: inline;
		height: 41px;
	}	
	nav.menu
	{
		margin: 0;
		padding: 0;
		max-width: 10em;
		display: none;
		position: absolute;
		right: 6px;
		top: 70px;
		border: 2px solid #dfdfdf;
		border-radius: 3px;
		background: inherit;
	}
	nav.menu a
	{
		border: none;
	}
	/* this lacks ul at the start of the selector, so the styles from the main CSS file override it where needed */
	.sf-vertical li:hover ul,
	.sf-vertical li.sfHover ul {
		left: 0;
		top:	0;
		position: relative;
		display: inline-block;
	}

	.sf-menu li li li:hover,
	.sf-menu li li li.sfHover,
	.sf-menu li li a:focus,
	.sf-menu li li a:hover,
	.sf-menu li li a:active {
		background-color: #69BADD;
	}

	.module.links-of-interest
	{
		word-break: break-word;
		margin-right: 3px;
		max-width: 280px;
	}

	footer#footer h1
	{
		font-size: 7px;
	}

}

