/* Reset http://meyerweb.com/eric/tools/css/reset/ */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Main layout */

.clear {
	clear: both;
	height: 1px;
}

html {
	height: 100%;
	width: 100%;
	font-family: Georgia, 'Times New Roman';
	font-size: 15px;
	line-height: 17px;
}

body {
	height: 100%;
	padding: 0px;
	margin: 0px;
	margin-top: 0px;
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/background.png");
	background-repeat: repeat-y;
	background-position: center;
	background-color: #acbdb2;
	color: #222;
	line-height: 18px;
}

a {
	text-decoration: none;
	color: #003480;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: #503480;
}

b {
	font-weight: bold;
}

img {
	border: 0px;
}

input {
	font-family: 'Times New Roman';
	font-size: 1em;
}

.hidden {
	display: none;
}

.text {
	border: 1px solid #5aa9ee;
}

/*.submit {
	background: url("../image/searchbg.jpg");
	height: 17px;
	border: 0px;
	width: 69px;
	color: #fff9e0;
	font-weight: bold;
	font-size: 80%;
	margin-left: 8px;
}*/

/******* Page layout *********/

#bgbody {
	width: 100%;
	height: 100%;
}

.frontpage #topbodybg {	
	height: 198px;
}

#topbodybg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	min-width: 876px;
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/clouds.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-color: #f2e9c6;
	z-index: -1;
	height: 198px;
}

.secondarypage #topbodybg{
	height: 123px;
}

#mainpanel {
	z-index: 1;
	width: 876px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2px;
	position: relative;
}

#main {
	
	border: 1px solid #dd9d00;
	border-bottom: 0px;
	width: 874px;
	min-height: 100%;
	height: 100%;
}

.frontpage #mastheadspace {
	width: 876px;
	height: 123px;
}

.secondarypage #mastheadspace {
	width: 876px;
	height: 48px;
}

#banner {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner.jpg");
	background-repeat: no-repeat;
	background-color: #9b8544;
	height: 100px;
	width: 874px;
	display: block;
}

.frontpage #banner {
	height: 156px;
}

/********** Menu ***********/ 

#menu {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/menubg.jpg");
	background-repeat: repeat-x;
	background-color: #002453;
	height: 2.4em;
	width: 870px;
	vertical-align: bottom;
	padding-left: 4px;
}

.mitem {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/tabunselectedbg.png");
	background-repeat: no-repeat;
	width: 112px;
	height: 30px;
	float: left;
	margin-top: 6px;
	text-align: center;
	line-height: 170%;
	font-weight: bold;
	font-size: 90%;	
	color: #002a67;
}

.mitem span {
	padding: 0px 8px;
	text-decoration: none;
}

.mitem a {
	color: #002a67;
	text-decoration: none;
}

.mitem.menuselected {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/tabactivebg.png");
}

.mitem.menuactive {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/tabbg.png");
}

#submenus {
	height: 30px;
	width: 100%;
	color: #BBC397;
	font-size: .9em;
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/contentbg.jpg");
	background-repeat: repeat-y;
	font-family: arial;
}

#submenus a {
	color: #002a67;
}

#submenus a:hover {
	text-decoration: underline;
}

.submenu {
	display: none;
}

.subactive {
	display: block;
	padding: 5px 0px 5px 20px;
}

.submenu span {
	color: black;
}

.submenu_list {
	margin: 0;
}

.submenu_list li{
	display: inline;
	list-style-type: none;
	white-space: nowrap;
	*margin-right: 3em;
	padding-right: .6em;
}

@media only screen and (min-device-width: 700px) {
	.submenu_list li + li::before, .submenu_list li + li:before {
		content: "|";
		padding-right: .6em;
	}
}

.submenu_list li:before {
		padding: 0 .6em;
	}

/********** Content ***********/ 


#content {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/contentbg.jpg");
	background-repeat: repeat-y;
	min-height: 100%;
}

#contentbody {
	padding: 5px 5px;
}

#contentbottom {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/contentbottom.jpg");
	background-repeat: repeat-x;
	height: 7px;
	width: 100%;
	/*width: 868px;
	margin-left: 4px;*/
}

#footer {
	width: 100%;
	min-height: 48px;
	background-color: #ffe6b1;
	box-shadow: 0 3px 3px #F1C790 inset;
	text-align: center;
	font-size: 75%;
	padding-top: 10px;
	color: #555;
}

#navsearch {
	float: right;
	padding: 7px 8px 0px 3px;
	
}

#navsearch .text {
	border: 1px solid #5aa9ee;
	font-size: 70%;
	height: 13px;
	width: 180px;
	float: left;
}

#navsearch .select {
	border: 1px solid #5aa9ee;
	font-size: 70%;
	height: 17px;
	float: left;
}

#navsearch .submit {
	background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/searchbg.jpg");
	height: 17px;
	border: 0px;
	width: 69px;
	color: #fff9e0;
	font-weight: bold;
	font-size: 80%;	
	float: right;
	margin-left: 8px;
}


/******* Front page *******/

.viewhome #contentbody, .viewhome_ #contentbody {
	padding: 10px 20px;
}

#frontsearch {
	position: relative;
	margin-top: 14px;
	padding-bottom: 1em;
}

#frontsearchcontent {
	background-color: transparent;
	z-index: 101;
	width: 100%;
	position: relative;
}

#frontsearchcontent h1 {
	font-size: 1.3em;
	font-weight: bold;
	margin: .7em 0px .7em 0;
	color: #002a67;
}

#frontpageform {
	border-bottom: 1px solid #ee9D88;
	padding: 0px 5px 5px 0px;
	padding-bottom: 10px;
	margin-bottom: 12px;
}

#frontpage_search_fields {
	margin-bottom: 12px;
	margin-left: .5em;
}

.query_wrapper {
	border: 1px solid #9ba17d;
	background-color: #ffffff;
	width: 475px;
	white-space: nowrap;
	display: inline-block;
	*display: inline;
	zoom: 1;
	overflow: hidden;
	vertical-align: top;
	height: 24px;
	border-radius: 4px;
}

.search_form .text {
	width: 373px;
	border: none;
	padding-left: .3em;
}

.select_wrap {
	width: 100px;
	height: 24px;
	vertical-align: top;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	zoom: 1;
	border-left: 1px solid #9BA17D;
	background: -moz-linear-gradient(top, #ffffff 0%, #cccccc 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ffffff 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ffffff 0%,#cccccc 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ffffff 0%,#cccccc 100%); /* IE10+ */
	background: linear-gradient(to bottom, #ffffff 0%,#cccccc 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
}

.search_form .select {
	width: 120px;
	height: 24px;
	padding-top: 1px;
	border: 0;
	background: none;
}

.search_form .submit {
	margin: 0;
	height: 26px;
}


.search_form .submit.short {
	display: none;
}

.search_form .submit.long {
	display: inline;
	width: 60px; 
}

#frontbrowse {
}

#frontbrowse .submenu_list {
	margin-top: .5em;
}

#frontpage_info {
	margin-top: 10px;
}

#frontpage_info p {
	padding: 8px 0;
}

.album_cover_bar {
	margin: 8px 0;
	white-space: nowrap;
	overflow-x: hidden;
}

.album_cover_bar img {
	margin: 0 4px 0 0;
}

/******** Static pages ********/
.staticPanel {
	padding: 10px;
}

.staticPanel p {
	padding: 0 0 1em;
}

.searchPanel {
	border-radius: 6px;
}

.searchPanel h1 {
	border-radius: 6px 6px 0 0;
}

#advancedSearchPanel {
	border-radius: 6px;
}

#advancedSearchPanel h1 {
	border-radius: 6px 6px 0 0;
}

@media screen and (max-device-width: 700px) {
	#banner {
		height: 46px !important;
		background-color: #9a853d;
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_300.png") no-repeat 4px 50%, -moz-linear-gradient(top, #9a853d 50%, #bdad4d 100%); /* FF3.6+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_300.png") no-repeat 4px 50%, -webkit-gradient(linear, left top, left bottom, color-stop(50%,#9a853d), color-stop(100%,#bdad4d)); /* Chrome,Safari4+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_300.png") no-repeat 4px 50%, -webkit-linear-gradient(top, #9a853d 50%,#bdad4d 100%); /* Chrome10+,Safari5.1+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_300.png") no-repeat 4px 50%, -o-linear-gradient(top, #9a853d 50%,#bdad4d 100%); /* Opera 11.10+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_300.png") no-repeat 4px 50%, -ms-linear-gradient(top, #9a853d 50%,#bdad4d 100%); /* IE10+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_300.png") no-repeat 4px 50%, linear-gradient(to bottom, #9a853d 50%,#bdad4d 100%); /* W3C */
		width: 100%;
	}
}

@media screen and (max-device-width: 700px), 
only screen and (max-device-width: 600px) and (-webkit-min-device-pixel-ratio: 2) {
	#banner {
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_600.png") no-repeat 4px 50%, -moz-linear-gradient(top, #9a853d 50%, #bdad4d 100%); /* FF3.6+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_600.png") no-repeat 4px 50%, -webkit-gradient(linear, left top, left bottom, color-stop(50%,#9a853d), color-stop(100%,#bdad4d)); /* Chrome,Safari4+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_600.png") no-repeat 4px 50%, -webkit-linear-gradient(top, #9a853d 50%,#bdad4d 100%); /* Chrome10+,Safari5.1+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_600.png") no-repeat 4px 50%, -o-linear-gradient(top, #9a853d 50%,#bdad4d 100%); /* Opera 11.10+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_600.png") no-repeat 4px 50%, -ms-linear-gradient(top, #9a853d 50%,#bdad4d 100%); /* IE10+ */
		background: url("http://www.ibiblio.org/hillwilliam/BGdiscography/image/banner_title_600.png") no-repeat 4px 50%, linear-gradient(to bottom, #9a853d 50%,#bdad4d 100%); /* W3C */
		background-size: 300px 22px, auto auto;
		-webkit-background-size: 300px 22px, auto auto;
	}
}

/*@media screen and (max-width: 390px) and (orientation:portrait), screen and (orientation:landscape) and (max-width: 500px) {
	#banner {
		background-image: url("../image/masthead_wide_480.png");
		height: 35px;
		width: 100%;
		background-position: center;
	}
}*/
 screen and (max-device-width: 700px), only screen and (max-device-width: 600px) and (-webkit-min-device-pixel-ratio: 2) {
	html {
		font-family: serif;
	}
	
	body {
		font-size: 12px;
		line-height: 16px;
		color: #000;
	}
	
	a {
		color: #0034B0;
	}
	
	#bgbody {
		/*overflow-x: hidden;*/
	}
	
	#mainpanel {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	
	#main {
		width: 100%;
		border: none;
	}
	
	#mastheadspace {
		display: none;
	}
	
	#topbodybg {
		display: none;
	}
	
	#menu {
		background-image: none;
		background-color: #244D7B;
		width: 100%;
		padding: 0;
		font-size: 17px;
		height: 2em;
	}
	
	#navsearch {
		display: none;
	}
	
	#_home {
		display: none;
	}
	
	.mitem, .mitem.menuselected, .mitem.menuactive {
		background: none;
		color: #ffffff;
		width: 33%;
		margin-top: .3em;
	}
	
	.mitem.menuactive {
		text-shadow: 0 0 6px white;
		color: #efe5e5;
	}
	
	#_browse {
		text-align: left;
		padding-left: 2%;
		width: 31%;
	}
	
	#_sources {
		text-align: right;
		padding-right: 2%;
		width: 31%;
	}
	
	#submenus {
		height: auto;
		background: #FDF8E2;
	}
	
	.submenu {
		display: none;
	}
	
	.submenu.subactive {
		display: none;
	}
	
	.submenu.subselected {
		display: block;
		border: 0;
		padding: 0 0 0 .5em;
		text-align: center;
	}
	
	#home {
		display: none;
	}
	
	#content {
		background: #FDF8E2;
	}
	
	#contentbottom {
		display: none;
	}
	
	#footer {
		background: #FFE6B1;
	}
	
	.frontpage {
		font-size: 15px;
	}
	
	#frontsearch {
		background: none;
		border: none;
		width: 100%;
		height: auto;
	}
	
	#frontsearchcontent {
		padding: 0;
	}
	
	#frontpageform {
		width: 100%;
		margin-left: 0;
	}
	
	#frontsearchcontent h1 {
		font-size: 1.4em;
		margin-left: 0;
	}
	
	.query_wrapper {
		width: 80%;
		width: calc(100% - 4em);
		width: -webkit-calc(100% - 4em);
		height: 1.9em;
		border-radius: 5px;
		vertical-align: top;
		margin-right: 0.2em;
	}
	
	#frontpage_search_fields {
		margin-left: 0;
	}
	
	.search_form .text {
		width: 80%;
		width: calc(100% - 5em);
		width: -webkit-calc(100% - 5em);
		height: 1.8em;
		border-radius: 5px;
		text-indent: .2em;
	}
	
	.select_wrap {
		width: 5em;
		height: 2em;
	}
	
	.search_form .select {
		width: 6em;
		height: 2em;
		padding-top: 2px;
		vertical-align: top;
		margin-top: -1px;
		font-size: 1em;
	}
	
	.search_form .submit.long {
		display: none;
	}
	
	.search_form .submit.short {
		display: inline;
		height: 2em;
		border-radius: 5px;
		background-color: #244D7B;
		border: none;
		color: #ffffff;
		font-weight: 700;
		width: 2.8em;
		font-size: 1em;
	}
	
	#frontbrowse {
		padding: 0;
	}
	
	#browseCrumb {
		margin: .4em 0;
		font-weight: bold;
	}
	
	.album_cover_bar {
		overflow-x: scroll;
	}
	
	.submenu_list li {
		display: inline-block;
		min-width: 31%;
		margin-top: 12px;
		padding-right: 2%;
	}
	
	#submenus a {
		border-radius: 6px;
		background-color: #F4E9C8;
		padding: .2em .8em;
	}
	
	.submenu_list li + li::before {
		content: none;
	}
	
	.viewhome #contentbody, .viewhome_ #contentbody {
		padding: .5em;
	}
}

@media screen and (max-width: 700px) and (orientation:landscape) {
		.submenu_list li {
		display: inline-block;
		min-width: 15%;
		margin-top: .5em;
		padding-right: 1%;
	}
}

@media only screen and (-webkit-max-device-pixel-ratio: 1) and (max-width: 390px) {
	body {
		font-size: 12px;
		line-height: 18px;
	}
}
