/* BUTTONS */
section.substanceb_catalog_section button.ebookbutton, section.substanceb_catalog_section p input[type="submit"]
{
height: 25px;
width: 100px;
text-align: center;
display: block;
padding: 5px;
margin: 0;
color: black;
border: 0;
background: #F78707; /* fallback for non-css3 browsers */
background-image: linear-gradient(bottom, #FFD7AA 0%, #F78707 100%);
background-image: -o-linear-gradient(bottom, #FFD7AA 0%, #F78707 100%);
background-image: -moz-linear-gradient(bottom, #FFD7AA 0%, #F78707 100%);
background-image: -webkit-linear-gradient(bottom, #FFD7AA 0%, #F78707 100%);
background-image: -ms-linear-gradient(bottom, #FFD7AA 0%, #F78707 100%);
border-radius: 8px;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
box-shadow: inset 0px 0px 5px #fff;
-moz-box-shadow: inset 0px 0px 5px #fff;
-webkit-box-shadow: inset 0px 0px 5px #fff;
text-decoration: none;
text-transform: none;
font-size: 11px;
cursor: pointer;
font-family: "Palatino Linotype", "Bookman", "Georgia", serif;
}

section.substanceb_catalog_section button.ebookbutton:hover, section.substanceb_catalog_section p input[type="submit"]:hover
{
color: white;
background: #A35700; /* Non-CSS 3 and IE<=9 */
background-image: linear-gradient(bottom, #F78707 0%, #A35700 100%);
background-image: -o-linear-gradient(bottom, #F78707 0%, #A35700 100%);
background-image: -moz-linear-gradient(bottom, #F78707 0%, #A35700 100%);
background-image: -webkit-linear-gradient(bottom, #F78707 0%, #A35700 100%);
background-image: -ms-linear-gradient(bottom, #F78707 0%, #A35700 100%);
}

section.substanceb_catalog_section button.ebookbutton:active, section.substanceb_catalog_section p input[type="submit"]:active
{
color: #868788;
}

section.substanceb_catalog_section button.ebookbutton:focus, section.substanceb_catalog_section p input[type="submit"]:focus
{
color: #868788;
}

section.substanceb_catalog_section p input[type="search"]:focus
{
border: 3px solid #B3B3B4;
box-shadow: 0px 0px 10px #cccccc;
-moz-box-shadow: 0px 0px 10px #cccccc;
-webkit-box-shadow: 0px 0px 10px #cccccc;
}

section.substanceb_catalog_section
{
width: 95%; /*mobile only!*/
background: #fff;
padding: 0;
margin: 20px auto 0 auto;
border-width: 0;
box-shadow: 10px 10px 15px #000;
-moz-box-shadow: 10px 10px 15px #000;
-webkit-box-shadow: 10px 10px 15px #000;
}


section.substanceb_catalog_section article.substanceb_catalog_article_topbar
{
margin: 0 auto;
padding: 3px 10px;
background-color: #DBDCDD;
border-bottom: 2px black solid;
height: 150px; /*MOBILE ONLY*/
}


section.substanceb_catalog_section article.substanceb_catalog_article_topbar p
{
font-size: 12px;
text-align: left;
float: left;
width: 100px;
}


section.substanceb_catalog_section article.substanceb_catalog_article_topbar p.buttonshrink
{
width: 60px;
}

section.substanceb_catalog_section article.substanceb_catalog_article_topbar p input[type="search"]
{
width: 80px;
}

section.substanceb_catalog_section article.substanceb_catalog_article_topbar p input[type="submit"]
{
width: 100px;
}

/* CATALOG AREA */

section.substanceb_catalog_section article.substanceb_catalog_article
{
margin: 5px;
padding: 5px;
height: 220px;
overflow-y: auto;
background-color: #FFFFFF;
}

section.substanceb_catalog_section article.substanceb_catalog_article ul
{
margin: 0;
padding: 0;
list-style: none;
list-style-image: none;
text-align: center;
}

section.substanceb_catalog_section article.substanceb_catalog_article ul li{
width: 150px;
height: 195px;
font-size: 0.8em;
margin: 5px 5px 0 5px;
padding: 5px;
display: block;
float:left;
color: #fff;
overflow: hidden;
border: 1px solid black;
}


section.substanceb_catalog_section article.substanceb_catalog_article ul li a.catalogicon
{
display: block;
text-decoration: none;
background-color: #DBDCDD;
border: 2px solid black;
margin: 0;
padding: 2px;
height: 170px;
}


section.substanceb_catalog_section article.substanceb_catalog_article ul li p.catalogdownload
{
font-size: 10px;
color: #000000;
text-align: center;
margin: 3px 0 0 0;
}

section.substanceb_catalog_section article.substanceb_catalog_article p.ebook_catalog_cover
{
text-align: center;
margin: 0;
padding: 0;
}

section.substanceb_catalog_section article.substanceb_catalog_article p.ebook_catalog_cover img
{
max-width: 75px;
max-height: 100px
}

section.substanceb_catalog_section article.substanceb_catalog_article p.ebook_catalog_title
{
font-weight: bold;
font-size: 10px;
font-style: italic;
text-align: center;
margin: 1.0em 0 0 0;
padding: 0;
}

section.substanceb_catalog_section article.substanceb_catalog_article p.ebook_catalog_author
{
font-weight: normal;
font-size: 10px;
text-align: center;
margin: 1.0em 0 0 0;
padding: 0;
}

section.substanceb_catalog_section article.substanceb_catalog_article ul li a.catalogicon:hover
{
background-color: #F2F3F4;
border: solid 2px #1981E3;
}

section.substanceb_catalog_section article.substanceb_catalog_article ul li a.catalogicon,
section.substanceb_catalog_section article.substanceb_catalog_article ul li a.catalogicon:hover,
section.substanceb_catalog_section article.substanceb_catalog_article ul li a.catalogicon:visited
{
color: #000;
}

/* VIEWING SECTION */

section.substb_readertoparea
{
width: 95%;
padding: 0;
margin: 20px auto 0 auto;
background-color: #DBDCDD;
text-align: center;
border-bottom: 1px solid black;
box-shadow: 10px 10px 15px #000;
-moz-box-shadow: 10px 10px 15px #000;
-webkit-box-shadow: 10px 10px 15px #000;
min-width: 280px; /* MOBILE ONLY to prevent arrows breaking across */
}


section.substb_readertoparea div#topbar_div
{
margin: 0 auto;
padding: 5px;
width: 100%;
height: 60px;
display: block;
}

section.substb_readertoparea div#topbar_div p
{
font-size: 0.8em;
text-align: center;
float: left;
width: 120px; /*mobile only*/
display: block;
}
section.substb_readertoparea div#topbar_div p.buttonshrink
{
font-size: 0.8em;
text-align: center;
float: left;
width: 70px; /*mobile only*/
display: block;
}
section.substb_readertoparea div#topbar_div input
{
width: 100px;
}

section.substb_readertoparea div#topbar_div button.topbar_button
{
font-weight: bold;
font-size: 11px;
margin: 0 auto;
width: 60px;
}



section.substb_ebook_side
{
background-color: #fff;
padding: 10px 5px;
margin: 10px auto 0 auto; /*mobile only*/
width: 93%; /*mobile only*/
height: 140px; /*mobile only*/
text-align: left;
overflow-y: scroll;
box-shadow: 0 10px 15px #000;
-moz-box-shadow: 0 10px 15px #000;
-webkit-box-shadow: 0 10px 15px #000;
/*min-width: 280px;  MOBILE ONLY to prevent arrows breaking across */
}




section.substb_ebook_side div#ebooknav p
{
text-align: center;
font-size: 0.8em;
}

section.substb_ebook_side div#ebooknav a
{
text-decoration: none;
color: black;
}


section.substb_ebook_side div#ebooknav p#ebook_title_active
{
font-size: 1.0em;
font-weight: bold;
font-style: italic;
}

section.substb_ebook_side div#ebooknav p#ebook_author_active
{
font-size: 1.0em;
}

section.substb_ebook_side div#ebooknav img
{
max-height: 140px;
}

section.substb_ebook_side div#ebooknav ul
{
margin: 20px 0 0 0;
padding: 0;
list-style: none;
list-style-image: none;
text-align: left;
font-size: 0.8em;
}

section.substb_ebook_side div#ebooknav li, section.substb_ebook_side div#ebooknav li.toctexttop, section.substb_ebook_side div#ebooknav li.toctext
{
margin: 0.5em 0 0 0;
}

section.substb_ebook_side div#ebooknav li.toctextmajor
{
margin: 0.5em 0 0 0;
font-weight: bold;
}

section.substb_ebook_side div#ebooknav li.toctext2
{
margin: 0.2em 0 0 0.5em;
}

section.substb_ebook_side div#ebooknav li.toctext3
{
margin: 0.2em 0 0 1.0em;
}

section.substb_ebook_side div#ebooknav li.toctext4
{
margin: 0.2em 0 0 1.5em;
}

section.substb_ebook_side #ebooknav_selected
{
background-color: yellow;
}

section.substb_ebook_read
{
background-color: #fff;
padding: 10px 5px;
margin: 12px auto 20px auto; /*mobile only*/
width: 93%; /*mobile only*/
height: 340px; /*mobile only*/
text-align: left;
border-width: 0;
overflow-y: scroll;
box-shadow: 10px 10px 15px #000;
-moz-box-shadow: 10px 10px 15px #000;
-webkit-box-shadow: 10px 10px 15px #000;
min-width: 280px; /* MOBILE ONLY to prevent arrows breaking across */

}



/* Formatting Fixing in eBook area */
/* General Reset */
div#ebookarea
{
background: transparent;
font-family: 'Georgia', serif;
}

div#ebookarea p, div#ebookarea h1, div#ebookarea h2, div#ebookarea h3, div#ebookarea h4, div#ebookarea h5, div#ebookarea h6, div#ebookarea ul, div#ebookarea ol
{
color: black;
line-height: 120%;
}

div#ebookarea img
{
max-width: 100%;
}

/*===Headings===*/
div#ebookarea h1
{
text-indent: 0;
text-align: center;
margin: 40px 0 0 0;
font-size: 2.0em;
font-weight: bold;
}

div#ebookarea h2
{
text-indent: 0;
text-align: center;
margin: 30px 0 0 0;
font-size: 1.5em;
font-weight: bold;
}

div#ebookarea h3
{
text-indent: 0;
text-align: left;
font-size: 1.3em;
font-weight: bold;
margin: 16px 0 0 0;
}

div#ebookarea h4
{
text-indent: 0;
text-align: left;
font-size: 1.2em;
font-weight: bold;
margin: 16px 0 0 0;
}

div#ebookarea h5
{
text-indent: 0;
text-align: left;
font-size: 1.1em;
font-weight: bold;
margin: 16px 0 0 0;
}

div#ebookarea h6
{
text-indent: 0;
text-align: left;
font-size: 1.0em;
font-weight: bold;
margin: 16px 0 0 0;
}

/*Hyphen Fixer*/
div#ebookarea h1, div#ebookarea h2, div#ebookarea h3, div#ebookarea h4, div#ebookarea h5, div#ebookarea h6
{
-webkit-hyphens: none !important;
hyphens: none;
}

/*===Paragraph Elements===*/

/*firstline indent for fiction*/


/*This is in the substb_toc.php injection*/


/* subheading on chapters */
div#ebookarea p.subheading
{
text-indent: 0;
margin: 0.5em 0 0 0;
text-align: center;
font-size: 1.4em;
font-weight: bold;
font-style: italic;
}

div#ebookarea h2.partheading
{
text-indent: 0;
text-align: center;
margin: 50px 0 0 0;
font-size: 1.8em;
font-weight: bold;
}

/* Front Matter */
div#ebookarea p.subtitle
{
text-indent: 0;
text-align: center;
font-size: 1.3em;
font-weight: bold;
margin: 0.5em 0 0 0;
}

div#ebookarea p.authortitle
{
text-indent: 0;
text-align: center;
font-size: 1.2em;
margin: 1.0em 0 0 0;
}

div#ebookarea p.epigraph
{
text-align: left;
margin: 1.5em 2.0em 0 2.0em;
text-indent: 0;
}

div#ebookarea p.dedication
{
text-align: center;
margin: 2.0em 1.0em 0 1.0em;
text-indent: 0;
font-size: 1.2em;
}

/* for centered text */
div#ebookarea p.centered, div#ebookarea p.centeredbreak
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: center;
}

div#ebookarea p.centeredlilmarg
{
text-indent: 0;
margin: 0.5em 0 0 0;
text-align: center;
}

/* for centered text with no margin */
div#ebookarea p.centerednomarg
{
text-indent: 0;
margin: 0;
text-align: center;
}

/* for small centered text */
div#ebookarea p.centeredsmall
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: center;
font-size: 0.85em;
}

/* for small centered text with no margin */
div#ebookarea p.centeredsmallnomarg
{
text-indent: 0;
margin: 0;
text-align: center;
font-size: 0.85em;
}

div#ebookarea p.centeredbig
{
margin: 1.0em 0 0 0;
font-size: 1.2em;
text-align: center;
text-indent: 0;
}


/* First sentence in chapters following heading */
div#ebookarea p.texttop
{
margin: 1.5em 0 0 0;
text-indent: 0;
}

/* following sub-headings */
div#ebookarea p.paraafterh3
{
margin: 0.4em 0 0 0;
text-indent: 0;
}

div#ebookarea p.paraafterh4
{
margin: 0.2em 0 0 0;
text-indent: 0;
}

div#ebookarea p.paraafterh5
{
margin: 0.2em 0 0 0;
text-indent: 0;
}


div#ebookarea p.paraafterh6
{
margin: 0.2em 0 0 0;
text-indent: 0;
}


/* use for block text */
div#ebookarea p.block
{
margin: 0.8em 0 0 0;
text-indent: 0;
}

div#ebookarea p.blocklilmarg
{
margin: 0.4em 0 0 0;
text-indent: 0;
}

div#ebookarea p.blocknomarg
{
margin: 0;
text-indent: 0;
}

div#ebookarea p.blocksmall
{
margin: 0.8em 0 0 0;
text-indent: 0;
font-size: 0.85em;
}

div#ebookarea p.blocksmallnomarg
{
margin: 0;
text-indent: 0;
font-size: 0.85em;
}

/* for back matter */
div#ebookarea p.bib
{
margin: 0.5em 0 0 0;
text-indent: 0;
}

div#ebookarea p.biblo
{
text-align: left;
margin: 0.5em 0 0 1.5em;
text-indent: -1.5em;
}

/* use for chapter glyphs */
div#ebookarea p.glyph
{
margin: 0;
text-indent: 0;
text-align: center;
}

/* For After Section Breaks */
div#ebookarea p.afterbreak
{
margin: 1.0em 0 0 0;
text-indent: 0;
}

/* For After Section Breaks that need an indent */
div#ebookarea p.afterbreakindent
{
margin: 1.0em 0 0 0;
}

/* For Poems */
div#ebookarea p.poemtop
{
text-align: left;
margin: 1.0em 2.0em 0 2.0em;
text-indent: 0;
}

div#ebookarea p.poem
{
text-align: left;
margin: 0 2.0em 0 2.0em;
text-indent: 0;
}

div#ebookarea p.poemcentertop
{
text-align: center;
margin: 0.8em 2.0em 0 2.0em;
text-indent: 0;
}

div#ebookarea p.poemcenter
{
text-align: center;
margin: 0.2em 2.0em 0 2.0em;
text-indent: 0;
}

/* for pullquotes, articles inside novels, letters, emails */
div#ebookarea p.quotetop
{
margin: 1.0em 1.5em 0 1.5em;
text-indent: 0;
}

div#ebookarea p.quote
{
margin: 0.4em 1.5em 0 1.5em;
text-indent: 0;
}

div#ebookarea p.quoteright
{
margin: 0.8em 1.5em 0 1.5em;
text-indent: 0;
text-align: right;
}

div#ebookarea p.quoterightnomarg
{
margin: 0 1.5em 0 1.5em;
text-indent: 0;
text-align: right;
}

div#ebookarea p.quotenomarg
{
margin: 0 1.5em 0 1.5em;
text-indent: 0;
}

div#ebookarea p.quoteindent
{
margin: 0 1.5em 0 1.5em;
text-indent: 1.5em;
}

/* Spacer Text */
div#ebookarea p.spacer
{
margin: 0;
}

div#ebookarea p.listing
{
text-indent: -0.7em;
margin: 0.2em 0 0 2.2em;
text-align: left;
}

div#ebookarea p.listingnum
{
text-indent: -1.0em;
margin: 0.2em 0 0 2.5em;
text-align: left;
}

div#ebookarea p.listingtop
{
text-indent: -0.7em;
margin: 0.8em 0 0 2.2em;
text-align: left;
}

div#ebookarea p.listingnumtop
{
text-indent: -1.0em;
margin: 0.8em 0 0 2.5em;
text-align: left;
}

div#ebookarea p.listingtopflush
{
text-indent: -0.7em;
margin: 0.8em 0 0 0.7em;
text-align: left;
}

div#ebookarea p.listingflush
{
text-indent: -0.7em;
margin: 0.2em 0 0 0.7em;
text-align: left;
}

div#ebookarea p.listingnumtopflush
{
text-indent: -1.0em;
margin: 0.8em 0 0 1.0em;
text-align: left;
}

div#ebookarea p.listingnumflush
{
text-indent: -1.0em;
margin: 0.2em 0 0 1.0em;
text-align: left;
}

/* use for right-aligned text */
div#ebookarea p.right
{
margin: 0.8em 0 0 0;
text-indent: 0;
text-align: right;
}

div#ebookarea p.rightnomarg
{
margin: 0;
text-indent: 0;
text-align: right;
}

/* Image wrappers */
div#ebookarea p.imgcenter
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: center;
font-size: 0.85em;
}

div#ebookarea p.imgleft
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: left;
font-size: 0.85em;
float: none;
}

div#ebookarea p.imgright
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: right;
font-size: 0.85em;
float: none;
}

div#ebookarea p.fullimage
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: center;
}

div#ebookarea p.fullimage img
{
max-height: 600px;
}

div#ebookarea p.fullimagewide
{
text-indent: 0;
margin: 1.0em 0 0 0;
text-align: center;
}

div#ebookarea p.fullimagewide img
{
max-height: 600px;
}

/* ===TOC=== */

/* First TOC after Break */
div#ebookarea p.toctexttop
{
margin: 1.0em 0 0 0;
text-indent: 0;
text-align: left;
}

/* For Major Headings in the ToC */
div#ebookarea p.toctextmajor
{
margin: 0.8em 0 0 0;
text-indent: 0;
text-align: left;
font-weight: bold;
}

/* 1st level TOC */
div#ebookarea p.toctext
{
margin: 0.4em 0 0 0;
text-indent: 0;
text-align: left;
}

/* 2nd level TOC */
div#ebookarea p.toctext2
{
margin: 0.4em 0 0 1.0em;
text-indent: 0;
text-align: left;
}

/* 3rd level TOC */
div#ebookarea p.toctext3
{
margin: 0.4em 0 0 2.0em;
text-indent: 0;
text-align: left;
}

/* 3rd level TOC */
div#ebookarea p.toctext4
{
margin: 0.5em 0 0 2.5em;
text-indent: 0;
text-align: left;
}

div#ebookarea p.toctexttop a, div#ebookarea p.toctext a, div#ebookarea p.toctext2 a, div#ebookarea p.toctext3 a, div#ebookarea p.toctext4 a, div#ebookarea p.toctextmajor a
{
text-decoration: none;
}

/*==LISTS==*/
div#ebookarea ul
{
margin: 1em 0 0 3em;
text-align: left;
}

div#ebookarea ol
{
margin: 1em 0 0 3em;
text-align: left;
}

/* ===TABLES=== */
div#ebookarea table
{
border-collapse: collapse;
border-spacing: 0;
margin: 1.0em auto 0 auto;
color: black;
}

div#ebookarea tr, div#ebookarea th, div#ebookarea td
{
margin: 0;
padding: 2px;
border: 1px solid black;
font-size: 100%;
vertical-align: baseline;
text-align: left;
}

div#ebookarea table.tablenoborder tr, div#ebookarea table.tablenoborder th, div#ebookarea table.tablenoborder td
{
border: 0;
}

/*===IN-LINE STYLES===*/
div#ebookarea span.i
{
font-style: italic;
}

div#ebookarea span.b
{
font-weight: bold;
}

div#ebookarea span.u
{
text-decoration: underline;
}

div#ebookarea span.st
{
text-decoration: line-through;
}

div#ebookarea  span.sm, div#ebookarea  span.smi, div#ebookarea  span.smib, div#ebookarea  span.smibu, div#ebookarea  span.smiu, div#ebookarea  span.smb, div#ebookarea  span.smbu, div#ebookarea  span.smu
{
font-variant: small-caps;
}

div#ebookarea  span.smi
{
font-style: italic;
}

div#ebookarea  span.smib
{
font-style: italic;
font-weight: bold;
}

div#ebookarea  span.smiu
{
font-style: italic;
text-decoration: underline;
}

div#ebookarea  span.smb
{
font-weight: bold;
}

div#ebookarea  span.smbu
{
font-weight: bold;
text-decoration: underline;
}

div#ebookarea  span.smibu
{
font-style: italic;
font-weight: bold;
text-decoration: underline;
}

div#ebookarea  span.smu
{
text-decoration: underline;
}


div#ebookarea span.super, sdiv#ebookarea pan.superi, div#ebookarea span.superb
{
vertical-align: super;
font-size: 0.6em;
}

div#ebookarea span.superi
{
font-style: italic;
}

div#ebookarea span.superb
{
font-weight: bold;
}

div#ebookarea span.tiny
{
font-size: 0.85em;
}

div#ebookarea span.big
{
font-size: 1.2em;
}

/*==in-line combinations==*/
div#ebookarea span.ib
{
font-style: italic;
font-weight: bold;
}

div#ebookarea span.iu
{
font-style: italic;
text-decoration: underline;
}

div#ebookarea span.bu
{
font-weight: bold;
text-decoration: underline;
}

div#ebookarea span.ibu
{
font-style: italic;
font-weight: bold;
text-decoration: underline;
}



/*==HYPERLINKS==*/
div#ebookarea a
{
color: #00e;
text-decoration: underline;
}

div#ebookarea a:visited, div#ebookarea a:hover
{
color: #008a2e;
}

div#ebookarea a:hover, div#ebookarea a:active
{
outline: 0;
}

div#ebookarea a:focus
{
outline: thin dotted;
}


/*Superscripted Footnote Text*/
div#ebookarea a.footnote
{
vertical-align: super;
font-size: 0.75em;
text-decoration: none;
}

div#ebookarea a.nounderline
{
text-decoration: none;
}

/*==DROP CAPS==*/
div#ebookarea span.dropcap, div#ebookarea span.dropcapi, div#ebookarea span.pushupcap, div#ebookarea  span.pushupcapi
{
font-size: 300%;
font-weight: bold;
height: 1em;
float: left;
margin: 0.3em 0.125em -0.4em 0.1em;
}

div#ebookarea span.dropcapi, div#ebookarea span.pushupcapi
{
font-style: italic;
}

/*==PC/Tablet Viewing Adjustments Here==*/
@media only screen and (min-width: 481px) {



section.substanceb_catalog_section article.substanceb_catalog_article_topbar
{
height: 100px;
}

section.substanceb_catalog_section article.substanceb_catalog_article_topbar p
{
width: 110px;
}

section.substanceb_catalog_section article.substanceb_catalog_article_topbar p.buttonshrink
{
width: 9%;
}


section.substb_readertoparea div#topbar_div p
{
width: 20%;
}

section.substb_readertoparea div#topbar_div p.buttonshrink
{
width: 9%;
}
section.substb_ebook_read
{
height: 400px;
}


}

@media only screen and (min-width: 960px) {
section.substanceb_catalog_section, section.substb_readertoparea
{
width: 960px;
}
section.substanceb_catalog_section article.substanceb_catalog_article_topbar p
{
width: 150px;
}

section.substanceb_catalog_section article.substanceb_catalog_article_topbar
{
height: 60px;
}

section.substb_ebook_side
{
margin: 0 0 20px 0;
width: 240px;
min-width: 200px;
height: 580px;
float: left;
}

section.substb_ebook_read
{
margin: 0 0 20px 260px;
width: 690px;
height: 580px;
}
}