
/* ==== Header/Footer Overrides ==== */

header {
	padding-bottom: 0;
	/* position: relative; */
	background: #1B2A5E;
	background-image: linear-gradient( to bottom, #005183, #1B2A5E);
}
footer {
	background: #333333;
	/* background-image: linear-gradient( to bottom, #005183, #1B2A5E, #333333, #333333, #333333, #333333); */
	border-bottom: 0;
}
body > header h1 {
	width: 93px;
	margin: 0;
	/*
	position: absolute;
	bottom: -1em;
	*/
}
header > div {
	padding: 1em 0;
	background: transparent;
	/* background-size: auto 90%;*/
	background-position: center center;
}
body > header nav.user {
	margin-top: 0;
}
body > header h1 {
	padding-left: 120px;
	max-width: none;
	width: 10em;
	line-height: 93px;
}
body > header h1 .nys,
body > header h1 .contact {
	display: inline;
	color: white;
	font-family: Trebuchet MS, Arial, sans-serif;
	font-size: 1em;
	border-bottom-width: 0;
	text-shadow: 1px 1px 1px black;
}

/* ==== Nav Menu ==== */

.toggleNav {
	color: #F5A81C;
}



/* ==== Public Homepage ==== */

	ul.publicSocialList {
		display: block; list-style: none;
		margin: 0 0 1em 0; padding: 0;
		overflow: auto;
	}
	ul.publicSocialList > li {
		box-sizing: border-box;
		width: 31%; 
		min-width: 6em;
		float: left;
		background-color: #ededed;
		background-image: url('graphics/stripe_e1e1e1_ededed_12.png');
		padding: 1em 2%; 
		margin: 0 1% 0.5em 1%;
		text-align: center;
	}
	/*
	ul.publicSocialList > li:hover {
		background-color: #ff8;
		background-image: none;
	}
	*/
	ul.publicSocialList > li > a {
		display: block;
		border: solid 2px #e1e1e1;
		padding: 1em 0;
		color: #333;
		background: #ededed;
		-webkit-transition: all 0.8s ease-in-out;
		transition: all 0.8s ease-in-out;
		border-radius: 1px;
	}
	ul.publicSocialList > li > a:hover {
		/* background-color: #ff8; */
		border-color: #666;
		box-shadow: 0 0 1em rgba(50,50,50,0.5);
	}
	ul.publicSocialList > li > a > img {
		/*display: block;*/
	}
	ul.publicSocialList > li > a > span {
		display: block;
	}
	
	
	/* Remove this to put the page back */
	body > #main { 
		min-height: 0; 
		/* height: 0; 
		margin: 0; padding: 0; display: none; */
	}


/* ==== Generic ==== */

h2.headerWithRoomForQuickControls {
	margin-top: 0;
	max-width: 32em; 
	float: left;
}
.quickControls {
	display: block;
	float: right;
	margin-top: 0;
	margin-bottom: 1em;
}
.quickControls a {

}

/* ==== Buttons ==== */

.publicButton {
	padding: 1em 1em;
	background-color: #FDB813;
	border: solid 0.5em #005183;
	border-radius: 1em;
	text-shadow: 0 0 3px white;
	box-shadow: inset 0 1em 1em rgba(255,255,255,0.5), 0 0.6em 1em rgba(50,50,50,0.5), 0 0.1em 0.3em black;
	text-decoration: none;
	text-align: center;
	color: #333;
}
.publicButton:hover {
	color: #005183;
	text-decoration: none;
	text-shadow: 0 0 3px white, 0 0 1em white, 0 0 0.5em white;
}

.smallButton {
	font-size: 80%;
	border-width: 0.25em;
}

.thinButton {
	padding: 0.5em 1em;
}
.finalButton {
	display: block;
	clear: both;
	margin: 2em auto;
	width: 30%;
	min-width: 12em;
}




/* ==== Search ==== */

	form.publicSearchForm {
		margin-bottom: 3em;
	}
	form.publicSearchForm input[type="text"] {
		min-width: 12em;
		width: 80%;
		margin-bottom: 0.5em;
		padding: 0.5em 0.5em;
	}
	form.publicSearchForm input[type="submit"] {
		float: right;
		border-width: 0.2em;	
	}

/* ==== News ==== */

ol.newsList {
	list-style: none;
	display: block;
	padding: 0;
	margin: 2em 0;
	clear: both;
}
	ol.newsList > li {
		display: block;
		/* box-shadow: inset 0 -1em 1em #eee */;
	}
	ol.newsList > li > a {
		display: block;
		padding: 1em 2em 2em 2em;
		border: solid 1px #ccc;
		border-top: solid 1px #eee;
		border-left: solid 0.4em #ccc;
		border-radius: 1em;
		-webkit-transition: all 0.3s ease-in-out;
		transition: all 0.3s ease-in-out;
	}
	ol.newsList .headline {
		float: left;
		display: block;
		width: 80%;
		min-width: 10em;
	}
	ol.newsList .publishDate {
		float: right;
		color: #333;
		font-size: 80%;
		text-align: right;
		margin-bottom: 0.5em;
	}
	ol.newsList .published {
		display: block;
		color: #aaa;
	}
	ol.newsList .sample {
		clear: both;
		display: block;
		font-size: 80%;
		color: #333;
	}
	ol.newsList > li > a:hover {
		text-decoration: none;
		border-color: #005183;
		border-left: solid 0.6em #005183; 
		/*
		border-left: solid 1em #005183;
		margin-left: -0.5em;
		border-right: solid 1em #005183;
		margin-right: -0.5em;
		*/
	}
	ol.newsList > li > a:hover span.headline {
		color: #55bbff; text-decoration: underline;
	}

a.more {
	display: block;
	margin: 0 auto 2em auto;
	width: 50%;
	padding: 1em;
	border: solid 2px #e1e1e1;
	text-align: center;
	background-color: #ededed;
}
a.more:hover {

	border-color: #bbb;

	-webkit-transition: all 0.8s ease-in-out;
	transition: all 0.8s ease-in-out;
	/*box-shadow: 0 0 1em rgba(50,50,50,0.5);*/
}




/* ==== Agency Pref Selection ==== */

ul.agencyList {
	display: block;
	list-style: none;
	padding: 0;
	margin: 1em 0;
	overflow: auto;
	clear: both;
}	
ul.agencyList > li {
	display: block;
	overflow: hidden;
	position: relative;
	float: left;
	padding: 1em;
	margin: 0.25em 1%;
	width: 12%;
	height: 5em;
	min-width: 10em;
	border: solid 1px #ccc;
	border-radius: 0.2em;
	text-align: center;
}
	ul.agencyList > li > img {
		width: 100px;
	}
	ul.agencyList > li > input[type="checkbox"] {
		position: absolute;
		z-index: 2;
		top: 0.5em;
		right: 0.5em;
	}
	ul.agencyList > li > label {
		display: block;
		position: absolute;
		z-index: 1;
		top: 0; left: 0;
		padding: 0;
		height: 100%;
		width: 100%;
		background-color: white;
		background-color: rgba(255,255,255,0.75);
		
		text-shadow: 1px 1px 0 white, -1px 1px 0 white, -1px -1px 0 white, 1px -1px 0 white, 1px 0 0 white, -1px 0 0 white, 0 1px 0 white, 0 -1px 0 white, 0 0 0.5em white;
		/*, 0 0 0.5em rgba(50,50,50,0.5);*/
	}

form.agencyPref .quickControls {
	float: right;
	text-align: right;
}


form.agencyPref input[type="checkbox"]:checked + label {
	background-color: #005183;
	background-color: rgba(0,81,131,0.75);
	box-shadow: inset 0 0 1em #005183, inset 0 1em 1em rgba(255,255,255,0.2);
	color: white;
	text-shadow: 0 0.1em 0.5em black, 0 0.1em 0.1em black;
}

.littleName {
	font-size: 65%;
}
form.agencyPref .littleName {
	display: block;
	margin: 0.5em 1em;
}
form.agencyPref .bigName {
	display: block;
	margin: 1em 1em 0.5em 1em;
}



/* ============================= RESPONSIVE ========================== */

@media (max-width: 800px) {
	ul.agencyList > li {
		width: 40%;
	}
}

@media (max-width: 600px) {

	ul.publicSocialList > li {
		padding: 0.5em;
	}
	ol.newsList > li > a {
		padding: 1em;
		overflow: auto;
		border-left-width: 2px;
		border-right-width: 2px;
	}
	ol.newsList > li > a:hover {
		border-left: solid 2px #005183;
	}
	
	ol.newsList .headline {
		width: 100%;
	}


	a.more {
		width: 90%;
	}

	
	.finalButton {
		width: 80%;
	}
	ul.publicSocialList > li {
		font-size: 90%;
	}
	ul.publicSocialList > li > a > span {
		
		height: 2em;
	}
	
}

@media (max-width: 500px) {
	ul.agencyList > li {
		width: 33%;
		min-width: 6em;
		height: 4em;
	}
	ul.publicSocialList > li {
		padding: 0.25em;
		font-size: 80%;
		background-image: none;
		background-color: #E1E1E1;
	}
	ul.publicSocialList > li > a > span {
		
	}
	/*
	ul.publicSocialList > li {
		display: block;
		width: auto;
		float: none;
	}
	ul.publicSocialList > li > a {
		padding: 0.2em;
		text-align: left;
	}
	ul.publicSocialList > li > a > span {
		display: inline;
	}
	*/
}
@media (max-width: 340px) {
	ul.agencyList > li {
		width: 80%;
		margin: 0.25em auto;
		height: 3em;
	}
	
	ol.newsList .sample {
		display: none;
		clear: both;
	}
	ol.newsList .publishDate {
		margin-bottom: 0;
	}
	
	ul.publicSocialList > li {
		min-width: 0;
	}
	ul.publicSocialList > li > a {
		padding: 0.5em 0;
	}
	ul.publicSocialList > li > a > span {
		display: none;
	}
}



