/*
** Living Books stylesheet for static html. Designed to match
** the look to of the Praxis Skins for MediaWiki and Wordpress.
**  Made for the Living Books About Life project 
** by Open  Humanities Press.
*/

/* Reset - gives me a known baseline to work from.
----------------------------------------------------------------------------- */
/* First zero out values */
html,body,h1,h2,h3,h4,h5,h6,div,p,address,blockquote,pre,center,span,a,strong,em,abbr,acronym,dfn,q,cite,code,kbd,samp,var,ins,del,big,small,b,i,tt,sub,sup,img,canvas,time,mark,audio,video
nav,header,hgroup,footer,article,aside,details,section,summary,figcaption,figure,dl,dt,dd,ul,ol,li,table,caption,tbody,tfoot,thead,tr,th,td
	{
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	font-weight: normal;
	font: inherit;
	vertical-align: baseline;
}
/* Then set cross-browser defaults */
body {
	line-height: 1;
}

img {
	border: 0;
	vertical-align: middle;
}

ol,ul {
	list-style: none;
}

caption,th {
	text-align: left;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

blockquote,q {
	quotes: none;
}

blockquote:before,blockquote:after,q:before,q:after {
	content: '';
}

abbr,acronym {
	font-variant: normal;
}

sup {
	vertical-align: text-top;
}

sub {
	vertical-align: text-bottom;
}

form,fieldset,label,legend,input,textarea,select {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/* Baselines - basic styles used if not overridden below
----------------------------------------------------------------------------- */
/* San-serif as base typography*/
body {
	font: 13px/1.231 Helvetica, "Liberation Sans", "Dejavu Sans", Arial, sans-serif;
}
h1,h2,h3,h4,h5,h6 {
	font-weight: bold;
	font-family: Helvetica, "Liberation Sans", "Dejavu Sans", Arial, sans-serif;
	line-height: 1.385;
}

/* Paragraph Type Styles (block elements) */
h1 {
	font-size: 182%;
	line-height: 1.231;
}

h2 {
	font-size: 138.5%;
}

h3 {
	font-size: 100%;
	margin-top: 13px;
	margin-bottom: 0.25em;
}


h4 {
	font-weight: normal;
	font-size: 116%;
	margin-bottom: 7px;
}

h5 {
	font-weight: bold;
	font-size: 100%;
	margin-bottom: 3px;
}

/* Body Text */
p {
	font-size: 100%;
	line-height: 1.385;
}

pre,code,kbd,samp,tt {
	font-family: monospace;
}

code {
	background-color: #f9f9f9;
}

hr {
	height: 1px;
	color: #aaa;
	background-color: #aaa;
	border: 0;
	margin: .2em 0 .2em 0;
}

/* Character Styles (inline elements) */
ins {
	background: #ffd;
}

del {
	text-decoration: line-through;
}

strong, b {
	font-weight: bold;
}

em, i { 
	font-style: italic;
}

abbr,acronym,.explain {
	border-bottom: 1px dotted black;
	color: black;
	background: none;
	cursor: help;
}

/* Hyperlinks */
a {
	/* color: #009; */
	color: #709e07;
	text-decoration: none;
}

a:visited {
	/* color: #009; */
	color: #709e07;
	text-decoration: none;
}

a:active,a:focus,a:hover {
	/* color: #00f; */
	color: #add25b;
}

a:visited:hover {
	/* color: #00f; */
	color: #709e07;
	text-decoration: none;
}

/* Accessibility aids  */
#jump-to-nav {
	display: none;
	padding-top: 0.5em;
}

#jump-to-nav a {
	display: none;
}

#jump-to-nav:hover,#jump-to-nav:focus,#jump-to-nav:active {
	color: blue;
}

/* Structure - the basic divisions that organize a page. These are all
   unique so we use ids rather than classes
----------------------------------------------------------------------------- */
#foreground {
	position: relative;
	margin-left:0;
	margin-right:0;
	margin-left: 6%;
	margin-right: 6%;
}

#accessibility-aids {
	padding-top:0.5em;
}

#header { /* contains the logo element */
	position: absolute;
	overflow:hidden;
	top: 1em;
	width: 100%;
}

#site-navigation { /* contains primary navigation */
    clear: both;
    margin: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

#main { /* contains primary content, related information and local navigation */
	position:relative;
	left: 0;
	top: 5.8em;
	width: 100%;
	border-top: 1px solid #ccc;
}

#content {
}

#footer {
	position: relative;
	top: 7em;
	clear: both;
	text-align: center;
	margin-top: 3.0em;
	padding-top: 1em;
	padding-bottom: 1.5em;
	border-top: 1px solid #ccc;
}

/* Accessibility Aids
----------------------------------------------------------------------------- */
.skip-link {
	color:white;
}

.skip-link:hover, .skip-link:focus, .skip-link:active {
	color:blue;
}

/* Header
----------------------------------------------------------------------------- */
.logo {
}

/* Site Navigation
----------------------------------------------------------------------------- */
.menubar {
	float: right;
	margin: 0;
	margin-top: 1em;
}

.menubar-item {
	list-style: none;
	display: inline;
	margin-left: 1em;
	line-height: 1;
	white-space: nowrap;
}

/* Main
----------------------------------------------------------------------------- */
#firstHeading {
	font-size: 184.6%;
	font-weight: normal;
	font-family: "Century Schoolbook", "URW Bookman L", "Book Antiqua", serif;
	margin-top:2em;
}

#content {
	font-family: "Century Schoolbook", "URW Bookman L", "Book Antiqua", serif;
	font-size: 16px;
}

/* Serifs for the main body copy and headings */
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
	font-family: "Century Schoolbook", "URW Bookman L", "Book Antiqua", serif;
}

/* #content p,#content ol,#content ul {
	font-family: "Century Schoolbook", "URW Bookman L", "Book Antiqua", serif;
    font-size: 106.667%;
} */

#content p {
    margin-top: 0.25em;
    margin-bottom: 0.5em;
}

/* #content ol, #content ul {
	margin-top: 0;
	margin-bottom: 1em;
	margin-left: 2em;
	margin-right: 2em;
	list-style: disc;
} */

#content h1 {
	font-size: 160%;
	font-weight: normal;
	margin-top: 1em;
}

#content h2 {
	font-size: 120%;
	margin-top: 1em;
}

#content h3 {
	font-size: 100%;
	font-weight: normal;
	font-style: italic;
	margin-top: 1em;
}

#content .book-matrix {
	position: relative;
	width: 100%;
	height: 100%;
}

#content .book-matrix-item {
	position: relative;
	display: inline;
	width:135px;
	height:177px;
	list-style: none outside none;
	float: left;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 20px;
	padding-bottom: 20px;
}

#content .book-matrix-item a.block-link {
	display:block;
/* 	padding: 3px 3px; */
	width:135px;
	height:177px;
}

#content .book-matrix-item a.block-link:hover {
	display:block;
	width:180px;
	height:215px;
	position: absolute;
	left: 15px;
	top: 25px;
	z-index: 10;
	padding:5px;
	background: white;
	color: black;
	border: solid 2px #add25b;
	font-size: 86.666667%;
	-moz-box-shadow: 4px 4px 8px #999;
	-webkit-box-shadow: 2px 2px 4px #999;
	box-shadow: px 4px 8px #999;
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#999999');
}

#content img.book-promo-cover {
	float:left;
	-moz-box-shadow: 2px 2px 4px #999;
	-webkit-box-shadow: 2px 2px 4px #999;
	box-shadow: px 2px 4px #999;
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#999999')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#999999');
}

#content a.block-link:hover img.book-promo-cover {
	width:33%;
	margin-bottom: 10px;
}

#content div.book-promo-information {
	display: none;
	visibility: hidden;
}

#content a.block-link:hover div.book-promo-information {
	visibility: visible;
	display: block;
	clear: both;
	width: 100%;
}

#content a.block-link:hover p.book-promo-title {
	font-weight: bold;
	color: #709e07;
	line-height: 120%;
	margin-top: 0;
    margin-bottom: 2px;
}

#content a.block-link:hover p.book-promo-subtitle {
	font-size: 75%;
	color: #709e07;
	line-height: 120%;
	margin-top: 0;
    margin-bottom: 0;
}

#content a.block-link:hover p.book-promo-author {
	line-height: 120%;
	margin-top: 15px;
    margin-bottom: 3px;
}

#content a.block-link:hover p.book-promo-author-affilation {
	font-style: italic;
	font-size: 75%;
	line-height: 120%;
	margin-top: 0;
    margin-bottom: 0;
}

/* Footer - contains the finepreint 
----------------------------------------------------------------------------- */
.jisc {
	margin-top: 8px; /* Bump it down just a tad */
}

#footer li {
	display: inline;
	margin: 0 1.3em;
}

/* Hacks
----------------------------------------------------------------------------- */
/* emulate center */
.center {
	width: 100%;
	text-align: center;
}

.hiddenStructure {
	display: none;
}