body {
	font-family:robotoregular;
	background:#e5e5e5;
}

#main-nav {
	background:url(../images/header.png) repeat-x;
	padding:10px 0;
	height:72px;
}

#main-nav ul {
	display:flex;
	align-items:center;
	margin:auto;
	padding-left:0px;
	max-width:991px;
	gap:24px;
}

#main-nav li {
	list-style-type:none;
}

#main-nav li.home-link {
	margin-right:auto;
}

nav li.home-link a {
	font-weight:bold;
	font-size:22px;
}	

nav#main-nav li a, 
nav#main-nav li a:hover {
	display:block;
	color:white;
	font-style:none;
	text-decoration:none;
}

nav#main-nav li.home-link img {
	margin-right:10px;
	vertical-align:middle;
}

#top-quick-loan {
	text-align:center;
	background:#333;
	padding:10px 0;
}

#top-quick-loan a {
	font-size: 14px;
	font-weight: bold;
	-moz-box-shadow: 0px 0px 5px #000;
	-webkit-box-shadow: 0px 0px 5px #000;
	box-shadow: 0px 0px 5px #000;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	width: 190px;
	text-align: center;
	margin:10px 0;
}	

#top-quick-loan span {
	color:#fefefe;
}

#container-bottom {
	position:relative;
}

#top {
	margin:3rem 0;
	display: flex;
	flex-direction: column;
}

#top > .week-card,
#top > #membership-how-to {
	flex: 1;
	min-width: 0;
}

#top h2 {
	font-size:2rem;
	margin-top:0;
}

.search-home {
    background: #f3f3f3;
}

.search-home-inner {
	max-width: 991px;
	margin: 0 auto;
}

#circulation-form {
	overflow:hidden;
	display: flex;
	gap: 1rem;
}

#circulation-form > div {
	flex: 1 1 auto;
}

#camera-wrapper {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	justify-items: center;
	text-align: center;
	gap: 1rem;
}

#search-form {
	background:#f3f3f3;
}

.button {
	-webkit-border-radius: 15px;
	-moz-border-radius: 15px;
	border-radius: 15px;
	background: #52574d;
	display: block;
	color: white;
}	

.button:hover {
	color:white;
	cursor: pointer;
	background: #aa1413;
	text-decoration:none;
}	

.book {
	text-align:center;
}

.books .clear + header {
	margin-top:40px;
}

.smaller-font {
	font-size:12px;
}

.clear {
	clear:both;
}

/* Weekly reading card */
.week-card {
	background:#fff;
	border-left:4px solid #999;
	border-radius:6px;
	padding:16px 20px;
	margin-bottom:20px;
	box-shadow:0 1px 4px rgba(0,0,0,0.08);
}

.week-card__season {
	font-size:11px;
	text-transform:uppercase;
	letter-spacing:1px;
	font-weight:bold;
}

.week-card__title {
	font-size:17px;
	font-weight:bold;
	color:#333;
	margin:4px 0 2px;
}

.week-card__theme {
	font-size:12px;
	color:#999;
	margin-bottom:0.5rem;
	font-style:italic;
}

.week-card__books {
	margin-bottom:14px;
	display:flex;
	gap:1rem;
}

.week-card__book {
	flex:1;
	min-width:0;
	padding:10px;
	border-right:1px solid #f0f0f0;
}

.week-card__book:last-child {
	border-right:none;
}

.week-card__book-info {
	flex:1;
	min-width:0;
}

.week-card__book-title {
	font-size:13px;
	color:#333;
}

.week-card__book-meta {
	font-size:11px;
	color:#aaa;
	margin-top:2px;
}

.week-card__ddc {
	display:inline-block;
	background:#f5f0e8;
	color:#8d6e2e;
	font-size:9px;
	padding:1px 5px;
	border-radius:2px;
	margin-left:4px;
	font-weight:bold;
	vertical-align:1px;
}

.week-card__book-desc {
	font-size:11px;
	color:#888;
	margin-top:3px;
	line-height:1.4;
}

/* Reusable excerpt: clipped with gradient fade, click to expand */
.excerpt {
	font-size:12px;
	color:#654;
	max-height:4.2em;
	overflow:hidden;
	position:relative;
}

.excerpt--clipped::after {
	content:'';
	position:absolute;
	bottom:0;
	left:0;
	right:0;
	height:1.4em;
	background:linear-gradient(transparent, #fff);
	pointer-events:none;
	transition:opacity 0.3s ease;
}

.excerpt.excerpt--expanded {
	max-height:none;
	overflow:visible;
}

.excerpt.excerpt--expanded::after {
	opacity:0;
}

.excerpt__toggle {
	display:block;
	text-align:right;
	font-size:10px;
	color:#7a8a99;
	cursor:pointer;
	margin-top:2px;
}

.excerpt__toggle:hover {
	text-decoration:underline;
}

.week-card__avail {
	flex-shrink:0;
	font-size:10px;
	white-space:nowrap;
	padding-left: 2px;
}

.week-card__avail--available {
	color:#66bb6a;
}

.week-card__avail--loan {
	color:#e57373;
}

.week-card__actions {
	padding-top:2px;
	text-align: right;
}

.week-card__cta {
	display:inline-block;
	font-size:12px;
	color:#fff;
	background:#9b1312;
	padding:6px 16px;
	border-radius:4px;
	text-decoration:none;
}

.week-card__cta:hover {
	background:#7a0f0e;
	color:#fff;
	text-decoration:none;
}

.books .col-md-3 {
	width:124px;
	max-width:124px;
	padding:10px;
	box-sizing:content-box;
	-webkit-box-sizing:content-box;
	-moz-box-sizing:content-box;
	margin-right:25px;

}

.books .book-data {
	background:white;
	padding:3px 6px;
	min-height:48px;
}

.books .book-data {
	font-weight:bold;
}

.books .book-thumb {
	background:#9b1312;
	padding:10px;
}

#search-form .inputs {
	padding: 20px;
}

#search-form .inputs label {
	font-size:12px;
}

#search-form .inputs input[type=text] {
	width:100%;
	-webkit-border-radius: 3px 0 0 3px;
	-moz-border-radius: 3px 0 0 3px;
	border-radius: 3px 0 0 3px;
	border:none;
	border-right:none;
	padding:4px 8px;
	height:32px;
	font-size:13px;
}

#search-form header {	
	margin:10px 0;
}

#search-form .inputs header {
	font-weight:bold;
}

#search-form .search-row {
	display:flex;
	margin-top: 1rem;
}

#search-form input[type=submit], #browse-btn {
	background:url(../images/video-hover.png) repeat-x;
	height:32px;
	border:none;
	color:white;
	width:auto;
	padding:0 14px;
	text-transform:uppercase;
	font-size:13px;
	font-weight:bold;
	border-radius:0 3px 3px 0;
	margin:0;
}

#search-form .help {
	font-size:12px;
}

#bottom {
	background:white;
}

#bottom .left {
	margin-top:40px;
	padding-right:20px;
}

#bottom .left header {
	font-weight:bold;
	font-size:14px;
	margin-bottom:5px;
}

#bottom .left section {
	padding-bottom:15px;
	border-bottom:1px solid #ccc;
}

#half-left-bg,
#half-right-bg {
	position:absolute;
	width:50%;
	height:100%;
	top:0;
}

#half-left-bg {
	background:white;
}

#half-right-bg {
	left:50%;
	background:#0d0c0c;
}

#bottom .left section + section {
	margin-top:15px;
}

#bottom .right {
	color:white;
	padding:0;
	padding-left:30px;
}

#bottom .right header {
	margin:30px 0 20px 0;
	font-size:24px;
	font-weight:bold;
}

#info-link {
	cursor:pointer;
}

#search-results {
	padding-top:20px;
}

#search-results .col-xs-12.col-md-4 {
	margin-bottom:5px;
}

#search-results .item {
	margin-bottom:30px;
	padding-left:124px;
	background:url(../images/book.png) no-repeat 10px 10px #9b1312;
	overflow:hidden;
	min-height:131px;
}

#search-results .item > div {
	background:white;
	min-height:131px;
	padding:10px;
}

#search-results .book-title {
	color:#9b1312;	
	font-weight:bold;
}

#search-results .right.alert.alert-danger {
	padding:20px;
}

#search-results .item hr {
	margin:10px 0 10px 0;
}

#search-results .author {
	font-weight:bold;
	max-height:55px;
	overflow:hidden;
}

#book-details {
	padding:20px;
	background:white;
}

#book-details .tblHead {
	font-weight:bold;
}

#book-details tr > td {
	padding-bottom:5px;
}

#loan-return-form {
	background:white;
}

#loan-return-form .help {
	color:#444;
	font-size:12px;
	display: block;
}

#loan-return-form {
	padding:20px;
}

#loan-return-form header {
	margin-bottom:10px;
	font-size:18px;
}

#loan-return-form > form > div {
	overflow:hidden;
}

#loan-return-form > form > div.glyphicon {
	margin-top:10px;
	flex: 1 0 auto;
}

#loan-return-form label {
	font-weight:normal;
	margin-bottom:10px;
}

#loan-return-form input[type=text],
#loan-return-form input[type=password] {
	width:100%;
	font-size:18px;
	padding-left:10px;
	padding-right:10px;
}

#loan-error {
	margin-top:20px;
}

#menubar {
	padding:0 15px;
	background:#efefef;
	
}

#menubar ul {
	overflow:hidden;
	padding:7px 0 7px 0;
	margin-bottom:0;
}

#menubar li {
	list-style-type:none;
	float:left;
	margin-right:30px;
}

#menubar li [class*=glyphicon] {
	margin-right:5px;
}

#return-message {
	padding-top:10px;
	border-top:1px solid #888;
	margin-top:10px;
	clear:both;
}

#circulation-loader {
	margin-top:8px;
	display:none;
}

#circulation-links {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: space-around;
	align-items: center;
	padding: 0 1.5rem;
}

@media (min-width:1200px) {
	.container { width:970px }
}

@media (max-width: 480px) {
	.week-card__books {
		flex-direction: column;
	}

	.week-card__book {
		border-right:none;
		border-bottom:1px solid #f0f0f0;
	}

	.week-card__book:last-child {
		border-bottom:none;
	}
}

@media (min-width: 480px) {
	#circulation-links {
		flex-direction: row;
		justify-content: center;
		gap: 2rem;
	}
}

@media (max-width: 560px) {
	#circulation-form {
		flex-direction: column;
		
		.glyphicon {
			display: none;
		}
	}
}

@font-face {
    font-family: 'robotoitalic';
    src: url('fonts/roboto-italic-webfont.eot');
    src: url('fonts/roboto-italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/roboto-italic-webfont.woff') format('woff'),
         url('fonts/roboto-italic-webfont.ttf') format('truetype'),
         url('fonts/roboto-italic-webfont.svg#robotoitalic') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'robotoregular';
    src: url('fonts/roboto-regular-webfont.eot');
    src: url('fonts/roboto-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/roboto-regular-webfont.woff') format('woff'),
         url('fonts/roboto-regular-webfont.ttf') format('truetype'),
         url('fonts/roboto-regular-webfont.svg#robotoregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotobold';
    src: url('fonts/roboto-bold-webfont.eot');
    src: url('fonts/roboto-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/roboto-bold-webfont.woff') format('woff'),
         url('fonts/roboto-bold-webfont.ttf') format('truetype'),
         url('fonts/roboto-bold-webfont.svg#robotobold') format('svg');
    font-weight: normal;
    font-style: normal;

}

.noselect {
    -webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#catalogue-wrapper {
	background:white;
}

ul.catalogue-list {
	list-style-type:none;
	padding-left:20px;
}

ul.catalogue-list li {
	list-style-type:none;
}


#membership-how-to {
	background:#fff;
	border-radius:6px;
	padding:20px 24px;
	box-shadow:0 1px 4px rgba(0,0,0,0.08);
	font-size:13px;
	color:#555;
	line-height:1.7;
}

#membership-how-to a {
	color:#9b1312;
}

#membership-how-to header h2 {
	color:#333;
}

.just_returned {
	max-width:90%;
}

@media screen and (max-width: 991px) {
	.just_returned {
		max-width:none;
	}

	#membership-how-to {
		padding:15px 20px;
	}

	#half-left-bg,#half-right-bg {
		display:none;
	}

	#bottom .right {
		padding:0;
	}

	#bottom .right header {
		color:#333;
		text-align:center;
	}

	#main-nav {
		min-width:0px;
	}

	#main-nav ul {
		min-width:0px;
		width:auto;
		padding:0 20px;
	}

	#main-nav li + li {
		margin-left:0px
	}

	#search-results .right {
		margin-top:20px;
	}

	#bottom {
		margin-bottom:20px;
	}
}

@media screen and (max-width:766px) {
	#membership-how-to {
		padding:15px;
	}

	#basic_search_wrap {
		padding:0;
		margin:0;
	}

	#adv_search_wrap {
		display:none;
	}

	header h2 {
		text-align:center;
	}

	.just_returned {
		margin-left:10px;
		margin-right:10px;
	}

	.books .book-thumb img {
		max-width:80%;
	}
}
