/*fonts*/

/* Meyer Reset Modified */
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 definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 14px; line-height: 1.2; }

body, button, input, select, textarea { font-family: "Georgia", serif; color: black; }

/* 
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: #002e8a; color: #fff; text-shadow: none; }
::selection { background: #002e8a; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #E57A00; }
a:visited { color: #666666; }
a:hover { color: #666666; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; quotes: none; }

dfn { font-style: italic; }

em, i { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em auto; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; text-align: left; font-size: 1.0em;}
ul ul, ol ol, ul ol, ol ul { margin: 0 0; padding: 0 0 0 20px; text-align: left; font-size: 0.8em;} /*For Nested Lists*/
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e 
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9 
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */

table button, table input { *overflow: auto; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/*
* Place Holder text
*/

input::-webkit-input-placeholder
{color: #999;}
input:-moz-placeholder
{color: #999;}
/* 
 * Remove inner padding and border in FF3/4: h5bp.com/l 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* 
 * 1. Remove default vertical scrollbar in IE6/7/8/9 
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { /*background-color: #f0dddd;*/ }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* ==|== primary styles =====================================================
   Author: Paul Salvette
   ========================================================================== */

/* ==== BODY and WRAPPER =====*/


body.substanceb_body
{
background: #FFD7AA; /* 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%);
}

body.substanceb_body h1, body.substanceb_body h2, body.substanceb_body h3
{
color: #E57A00;
}

div#substanceb_outerwrapper
{
width: 95%; /* mobile only */
background: transparent;
margin: 20px auto;
border-width: 0;
}


/* ==== COMMON =====*/

body
{
font-family: "Palatino Linotype", "Bookman", "Georgia", serif;
}

p
{
text-align: justify;
margin: 1.0em 0 0 0;
}

h1
{
text-align: left;
font-size: 22px;
font-weight: bold;
margin: 0;
}

h2
{
text-align: left;
font-size: 20px;
font-weight: bold;
margin: 0.5em 0 0 0;
}

h3
{
text-align: left;
font-size: 18px;
font-weight: bold;
margin: 1.0em 0 0 0;
}

h4
{
text-align: left;
font-size: 16px;
font-weight: bold;
margin: 1.0em 0 0 0;
}


p.imgleft, p.imgright, p.imgcenter
{
text-align: center;
margin: 1.0em 0 0 0;
font-size: 0.8em;
}

p.centered
{
text-align: center;
}

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

span.b
{
font-weight: bold;
}

span.u
{
text-decoration: underline;
}

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


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

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

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

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


/*===BOX SHADOWS COMMON===*/
header.substanceb_header, section.substanceb_content,  footer.substanceb_footer
{
box-shadow: 10px 10px 15px #000;
-moz-box-shadow: 10px 10px 15px #000;
-webkit-box-shadow: 10px 10px 15px #000;
}

/*===RADII COMMON===*/

section.substanceb_content, section.bbebooks_content article.bbebooks_formentry, footer.substanceb_footer
{
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}

/* ==== HEADER =====*/

header.substanceb_header
{
width: 100%;
background-color: #fff;
padding: 0;
margin: 0 auto;
text-align: center;
border-width: 0;
}

p#substanceb_banner
{
padding: 0;
margin: 0 auto;
text-align: center;
}

p#substanceb_banner img
{
width: 100%;
}

/* ==== NAV =====*/

hr#substanceb_navbar
{
width: 100%; 
text-align:center;
color: black;
background-color: black;
border: 0;
height: 2px;
margin: 0 auto;
padding: 0;
}

nav.substanceb_navsection
{
width: 100%;
margin: 0 auto;
padding: 0;
background: #D6D6D6; /* Non-CSS 3 and IE<=9 */
background-image: linear-gradient(bottom, rgb(255,255,255) 0%, rgb(184,178,184) 100%);
background-image: -o-linear-gradient(bottom, rgb(255,255,255) 0%, rgb(184,178,184) 100%);
background-image: -moz-linear-gradient(bottom, rgb(255,255,255) 0%, rgb(184,178,184) 100%);
background-image: -webkit-linear-gradient(bottom, rgb(255,255,255) 0%, rgb(184,178,184) 100%);
background-image: -ms-linear-gradient(bottom, rgb(255,255,255) 0%, rgb(184,178,184) 100%);
}

nav.substanceb_navsection ul
{
margin: 0;
padding: 0;
list-style: none;
list-style-image: none;
text-align: center;
}

nav.substanceb_navsection ul li a{
width: 20%; /*mobile only!*/
border-bottom: 1px solid black; /*mobile only!*/
border-right: 1px solid black; /*mobile only!*/
height: 30px;
font-weight: bold;
font-size: 0.8em; /*mobile only!*/
margin: 0;
padding: 6px;
display: block;
float: left;
background-color: transparent;
text-decoration: none;
}

nav.substanceb_navsection ul li a:hover, nav.substanceb_navsection ul li a.selected_nav
{
background-color: white;
}

nav.substanceb_navsection ul li a,
nav.substanceb_navsection ul li a:hover,
nav.substanceb_navsection ul li a:visited
{
color: #000;
}

nav.substanceb_navsection ul li a:active
{
color: #868788;
}

/*===IMAGES===*/

section.substanceb_content img
{
max-width: 150px; /* Mobile Only! */
}



/* === CONTENT === */
section.substanceb_content
{
width: 95%; /*mobile only!*/
background: #fff;
padding: 5px;
margin: 20px auto;
border-width: 0;
}

hr.bbebooks_content_hr
{
text-align:center;
width: 100%;
color: black;
background-color: black;
border: 0;
height: 2px;
margin: 3px auto 10px auto;
padding: 0;
box-shadow: 2px 2px 2px #888;
-moz-box-shadow: 2px 2px 2px #888;
-webkit-box-shadow: 0px 0px 5px #888;
}


section.substanceb_content h1, section.substanceb_content h2
{
background: #EAEAEA; /* Non-CSS 3 and IE<=9 */
border-bottom: 1px dashed gray;
border-top: 1px dashed gray;
}

section.substanceb_content h2, section.substanceb_content h3
{
margin: 0 0 10px 0;
}

section.substanceb_content article
{
text-align: justify;
margin: 5px auto 10px auto;
padding: 0 5px;
}

section.substanceb_content article p
{
font-size: 1.2em;
margin: 0 0 10px 0;
}



section.substanceb_content article li
{
font-size: 1.2em;
}

section.substanceb_content article.substanceb_formentry
{
text-align: left;
line-height: 1.5em;
margin: 12px auto 0px auto;
padding: 5px;
}

/* === SOCIAL SPRITES */
ul.social_icons
{
margin: 12px auto 0 auto;
padding:0;
list-style:none;
list-style-image: none;
/* width: 300px; removed this due to iPad issues*/
width: 100%;
height:100px;
}

ul.social_icons li, ul.book_icons li {
float: left;
width: 40px;
height: 40px;
text-align: center;
}

ul.genre_icons li
{
float: left;
width: 60px;
height: 60px;
text-align: center;
}

ul.social_icons li a
{
margin: 3px auto;
padding: 0;
height: 30px;
width: 30px;
background-image: url('../images/socialsprites.png');
display: block;
}

ul.social_icons_footer
{
margin: 6px auto 0 auto;
padding:0;
list-style:none;
list-style-image: none;
width: 160px;
height: 40px;
}

ul.social_icons_footer li
{
float: left;
width: 40px;
height: 40px;
text-align: center;
}

ul.social_icons_footer li a
{
margin: 3px auto;
padding: 0;
height: 30px;
width: 30px;
background-image: url('../images/socialsprites.png');
display: block;
}

ul.book_icons 
{
margin: 12px auto 0 auto;
padding:0;
list-style:none;
list-style-image: none;
width: 100%;
height:60px;
}

ul.book_icons li a
{
margin: 3px auto;
padding: 0;
height: 30px;
width: 30px;
background-image: url('../images/booksprites.png');
display: block;
}


ul.genre_icons 
{
margin: 12px 10px 0 10px;
padding:0;
list-style:none;
list-style-image: none;
width: 100%;
height:60px;
}

ul.genre_icons li a
{
margin: 3px auto 0 auto;
padding: 0;
height: 50px;
width: 50px;
background-image: url('../images/genresprites.png');
display: block;
}

ul.social_icons_footer li a.social_icons_twitter, ul.social_icons li a.social_icons_twitter {background-position: -30px 0;}
ul.social_icons_footer li a.social_icons_amazon, ul.social_icons li a.social_icons_amazon {background-position: -180px 0;}
ul.social_icons_footer li a.social_icons_facebook, ul.social_icons li a.social_icons_facebook {background-position: -150px 0;}
ul.social_icons_footer li a.social_icons_linkedin, ul.social_icons li a.social_icons_linkedin {background-position: -60px 0;}
ul.social_icons_footer li a.social_icons_goodreads, ul.social_icons li a.social_icons_goodreads {background-position: -120px 0;}
ul.social_icons_footer li a.social_icons_youtube, ul.social_icons li a.social_icons_youtube {background-position: 0 0;}
ul.social_icons_footer li a.social_icons_googleplus, ul.social_icons li a.social_icons_googleplus {background-position:-90px 0;}
ul.social_icons_footer li a.social_icons_pinterest, ul.social_icons li a.social_icons_pinterest {background-position:-210px 0;}
ul.social_icons_footer li a.social_icons_website, ul.social_icons li a.social_icons_website {background-position:-240px 0;}
ul.social_icons_footer li a.social_icons_substanceb, ul.social_icons li a.social_icons_substanceb {background-position:-270px 0;}

ul.social_icons_footer li a.social_icons_twitter:hover, ul.social_icons li a.social_icons_twitter:hover {background-position: -30px -30px;}
ul.social_icons_footer li a.social_icons_amazon:hover, ul.social_icons li a.social_icons_amazon:hover {background-position: -180px -30px;}
ul.social_icons_footer li a.social_icons_facebook:hover, ul.social_icons li a.social_icons_facebook:hover {background-position: -150px -30px;}
ul.social_icons_footer li a.social_icons_linkedin:hover, ul.social_icons li a.social_icons_linkedin:hover {background-position: -60px -30px;}
ul.social_icons_footer li a.social_icons_goodreads:hover, ul.social_icons li a.social_icons_goodreads:hover {background-position: -120px -30px;}
ul.social_icons_footer li a.social_icons_youtube:hover, ul.social_icons li a.social_icons_youtube:hover {background-position: 0 -30px;}
ul.social_icons_footer li a.social_icons_googleplus:hover, ul.social_icons li a.social_icons_googleplus:hover {background-position:-90px -30px;}
ul.social_icons_footer li a.social_icons_pinterest:hover, ul.social_icons li a.social_icons_pinterest:hover {background-position:-210px -30px;}
ul.social_icons_footer li a.social_icons_website:hover, ul.social_icons li a.social_icons_website:hover {background-position:-240px -30px;}
ul.social_icons_footer li a.social_icons_substanceb:hover, ul.social_icons li a.social_icons_substanceb:hover {background-position:-270px -30px;}



ul.book_icons li a.book_icons_smashwords {background-position: 0 0;}
ul.book_icons li a.book_icons_kobo {background-position: -30px 0;}
ul.book_icons li a.book_icons_pod {background-position: -60px 0;}
ul.book_icons li a.book_icons_allromance {background-position: -90px 0;}
ul.book_icons li a.book_icons_ibooks {background-position: -120px 0;}
ul.book_icons li a.book_icons_amazon {background-position: -150px 0;}
ul.book_icons li a.book_icons_nook {background-position: -180px 0;}

ul.book_icons li a.book_icons_smashwords:hover {background-position: 0 -30px;}
ul.book_icons li a.book_icons_kobo:hover {background-position: -30px -30px;}
ul.book_icons li a.book_icons_pod:hover {background-position: -60px -30px;}
ul.book_icons li a.book_icons_allromance:hover {background-position: -90px -30px;}
ul.book_icons li a.book_icons_ibooks:hover {background-position: -120px -30px;}
ul.book_icons li a.book_icons_amazon:hover {background-position: -150px -30px;}
ul.book_icons li a.book_icons_nook:hover {background-position: -180px -30px;}

ul.genre_icons li a.genre_btn_religion {background-position: 0 0;}
ul.genre_icons li a.genre_btn_literary {background-position: -50px 0;}
ul.genre_icons li a.genre_btn_fantasy {background-position: -100px 0;}
ul.genre_icons li a.genre_btn_erotica {background-position: -150px 0;}
ul.genre_icons li a.genre_btn_nonfic {background-position: -200px 0;}
ul.genre_icons li a.genre_btn_romance {background-position: -250px 0;}
ul.genre_icons li a.genre_btn_thriller {background-position: -300px 0;}
ul.genre_icons li a.genre_btn_western {background-position: -350px 0;}
ul.genre_icons li a.genre_btn_scifi {background-position: -400px 0;}
ul.genre_icons li a.genre_btn_travel {background-position: -450px 0;}
ul.genre_icons li a.genre_btn_howto {background-position: -500px 0;}
ul.genre_icons li a.genre_btn_selfhelp {background-position: -550px 0;}
ul.genre_icons li a.genre_btn_crime {background-position: -600px 0;}
ul.genre_icons li a.genre_btn_horror {background-position: -650px 0;}
ul.genre_icons li a.genre_btn_military {background-position: -700px 0;}
ul.genre_icons li a.genre_btn_ya {background-position: -750px 0;}
ul.genre_icons li a.genre_btn_humor {background-position: -800px 0;}

ul.genre_icons li a.genre_btn_religion:hover {background-position: 0 -50px;}
ul.genre_icons li a.genre_btn_literary:hover {background-position: -50px -50px;}
ul.genre_icons li a.genre_btn_fantasy:hover {background-position: -100px -50px;}
ul.genre_icons li a.genre_btn_erotica:hover {background-position: -150px -50px;}
ul.genre_icons li a.genre_btn_nonfic:hover {background-position: -200px -50px;}
ul.genre_icons li a.genre_btn_romance:hover {background-position: -250px -50px;}
ul.genre_icons li a.genre_btn_thriller:hover {background-position: -300px -50px;}
ul.genre_icons li a.genre_btn_western:hover {background-position: -350px -50px;}
ul.genre_icons li a.genre_btn_scifi:hover {background-position: -400px -50px;}
ul.genre_icons li a.genre_btn_travel:hover {background-position: -450px -50px;}
ul.genre_icons li a.genre_btn_howto:hover {background-position: -500px -50px;}
ul.genre_icons li a.genre_btn_selfhelp:hover {background-position: -550px -50px;}
ul.genre_icons li a.genre_btn_crime:hover {background-position: -600px -50px;}
ul.genre_icons li a.genre_btn_horror:hover {background-position: -650px -50px;}
ul.genre_icons li a.genre_btn_military:hover {background-position: -700px -50px;}
ul.genre_icons li a.genre_btn_ya:hover {background-position: -750px -50px;}
ul.genre_icons li a.genre_btn_humor:hover {background-position: -800px -50px;}

a.arrow_btn_down, a.arrow_btn_up, a.arrow_btn_left, a.arrow_btn_right
{
margin: 3px 0 0 0;
padding: 0;
height: 30px;
width: 30px;
background-image: url('../images/arrowsprites.png');
display: block;
}
a.arrow_btn_down  {background-position: -71px -30px;}
a.arrow_btn_down:hover  {background-position: -71px 0;}
a.arrow_btn_up {background-position: -140px -30px;}
a.arrow_btn_up:hover {background-position: -140px 0;}
a.arrow_btn_right  {background-position: 0 -30px;}
a.arrow_btn_right:hover  {background-position: 0 0;}
a.arrow_btn_left {background-position: -206px -30px;}
a.arrow_btn_left:hover {background-position: -206px 0;}

p.epubmobiiconpara
{
float: left;
padding: 0;
width: 60px;
height: 60px
}

ul.sampler_icons 
{
margin: 12px 10px 0 10px;
padding:0;
list-style:none;
list-style-image: none;
width: 100%;
height:80px;
}

ul.sampler_icons li
{
float: left;
width: 60px;
height: 60px;
text-align: center;
}

a.epubmobiicon_btn_talk, a.epubmobiicon_btn_computer, a.epubmobiicon_btn_sample, a.epubmobiicon_btn_html5, a.epubmobiicon_btn_inscription, a.epubmobiicon_btn_epub, a.epubmobiicon_btn_mobi, a.epubmobiicon_btn_epub3
{
margin: 5px 0 0 0;
padding: 0;
height: 50px;
width: 50px;
background-image: url('../images/epubmobisprites.png');
display: block;
}
a.epubmobiicon_btn_talk  {background-position: 0 0;}
a.epubmobiicon_btn_talk:hover  {background-position: 0 -50px;}
a.epubmobiicon_btn_computer {background-position: -50px 0;}
a.epubmobiicon_btn_computer:hover {background-position: -50px -50px;}
a.epubmobiicon_btn_sample {background-position: -100px 0;}
a.epubmobiicon_btn_sample:hover {background-position: -100px -50px;}
a.epubmobiicon_btn_html5 {background-position: -150px 0;}
a.epubmobiicon_btn_html5:hover {background-position: -150px -50px;}
a.epubmobiicon_btn_inscription {background-position: -200px 0;}
a.epubmobiicon_btn_inscription:hover {background-position: -200px -50px;}
a.epubmobiicon_btn_epub {background-position: -250px 0;}
a.epubmobiicon_btn_epub:hover {background-position: -250px -50px;}
a.epubmobiicon_btn_mobi {background-position: -300px 0;}
a.epubmobiicon_btn_mobi:hover {background-position: -300px -50px;}
a.epubmobiicon_btn_epub3 {background-position: -350px 0;}
a.epubmobiicon_btn_epub3:hover {background-position: -350px -50px;}



/*==Blocks Layout for books and other stuff==*/

article.substanceb_blocks
{
margin: 0 auto 5px auto;
padding: 5px;
width: 100%;
display: block;
}

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

article.substanceb_blocks ul li
{
width: 150px;
height: 175px;
font-size: 0.8em;
margin: 5px 5px 0 5px;
padding: 5px;
display: block;
float: left;
color: #fff;
overflow: hidden;
}
article.substanceb_blocks ul li a
{
display: block;
text-decoration: none;
background-color: #DBDCDD;
margin: 0;
padding: 2px;
border: 2px solid black;
height: 165px;
}

article.substanceb_blocks ul p
{
text-align: center;
font-size: 10px;
margin: 0;
}

article.substanceb_blocks ul p.book_title
{
font-size: 11px;
font-weight: bold;
font-style: italic;
margin: 5px 0 0 0;
}

article.substanceb_blocks ul p.book_desc
{
margin: 5px 0 0 0;
}

article.substanceb_blocks ul p img
{
max-width: 150px;
max-height: 100px
}

article.substanceb_blocks ul li a:hover
{
background-color: #F2F3F4;
border: 2px solid #E57A00;
}

article.substanceb_blocks ul li a, article.substanceb_blocks ul li a:hover, article.substanceb_blocks ul li a:visited
{
color: #000;
}

article.substanceb_authorblocks
{
margin: 0 auto 5px auto;
padding: 5px;
width: 100%;
display: block;
}

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

article.substanceb_authorblocks ul li
{
width: 125px;
height: 125px;
font-size: 0.8em;
margin: 5px 5px 0 5px;
padding: 5px;
display: block;
float: left;
color: #fff;
overflow: hidden;
}
article.substanceb_authorblocks ul li a
{
display: block;
text-decoration: none;
background-color: #DBDCDD;
margin: 0;
padding: 2px;
border: 2px solid black;
height: 115px;
}

article.substanceb_authorblocks ul p
{
text-align: center;
font-size: 10px;
margin: 0;
}

article.substanceb_authorblocks ul p.author_name
{
font-size: 11px;
font-weight: bold;
margin: 5px 0 0 0;
}

article.substanceb_authorblocks ul p.author_location
{
margin: 5px 0 0 0;
}

article.substanceb_authorblocks ul p img
{
max-width: 75px;
max-height: 50px
}

article.substanceb_authorblocks ul li a:hover
{
background-color: #F2F3F4;
border: 2px solid #E57A00;
}

article.substanceb_authorblocks ul li a, article.substanceb_authorblocks ul li a:hover, article.substanceb_authorblocks ul li a:visited
{
color: #000;
}

/*===FORM ENTRY==*/

section.substanceb_content article.substanceb_formentry p
{
font-size: 12px;
font-weight: bold;
text-align: left;
margin: 1em 0 0 0;
}

article.substanceb_formentry p.help
{
font-size: 12px;
text-align: justify;
margin: 1em 0 0 0;
font-weight: normal;
}

a.helphint, a.helphint:visited, a.helphintbig, a.helphintbig:visited
{
text-decoration: none;
border-bottom: 1px dotted #999;
color: #999;
font-weight: normal;
}

a.helphint:hover, a.helphint:active, a.helphint:focus, a.helphintbig:hover, a.helphintbig:active, a.helphintbig:focus
{
border-bottom: 1px dotted #EBEAEA;
color: #EBEAEA;
}

a.helphint {font-size: 11px;}
a.helphintbig {font-size: 16px;}


span#approxquoteshow
{
font-size: 1.3em;
font-weight: bold;
color: green;
text-decoration: underline;
}

article.substanceb_formentry input
{
font-size: 12px;
font-weight: normal;
height: 20px;
font-family: "Courier", "Courier New", monospace;
}

article.substanceb_formentry input, article.substanceb_formentry textarea, article.substanceb_formentry select
{
width: 220px; /*Mobile Only*/
}

article.substanceb_formentry div.right_content input
{
width: 220px;
}

article.substanceb_formentry input[type="radio"], article.substanceb_formentry input[type="checkbox"]
{
width: 20px;
height: 12px;
}

article.substanceb_formentry textarea
{
height: 100px;
border: 3px solid #cccccc;
padding: 5px;
font-family: Courier, "Courier New", monospace;
font-size: 12px;
font-weight: normal;
}

article.substanceb_formentry textarea: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;
}

article.substanceb_formentry select
{
font-family: "Courier", "Courier New", monospace;
font-size: 12px;
height: 18px;
}

article.substanceb_formentry input#captcha_codeid
{
font-family: "Courier", "Courier New", monospace;
font-size: 12px;
height: 20px;
width: 100px;
}


article.substanceb_formentry input[type="file"]
{
font-family: "Courier", "Courier New", monospace;
font-size: 12px;
height: 20px;
width: 220px;
}

article.substanceb_formentry input:focus
{
border: 2px solid #B3B3B4;
box-shadow: 0px 0px 4px #cccccc;
-moz-box-shadow: 0px 0px 4px #cccccc;
-webkit-box-shadow: 0px 0px 4px #cccccc;
}

article.substanceb_formentry fieldset
{
padding: 5px;
border: 1px dotted blue;
}

article.substanceb_formentry legend
{
color: black;
font-size: 14px;
font-weight: bold;
}



/* == FOOTER == */

footer.substanceb_footer
{
padding: 5px;
margin: 20px auto;
width: 95%;  /*mobile only!*/

background: #fff;
margin: 0 auto;
text-align: center;
border-width: 0;
clear: both;
}

hr.substanceb_footer_hr
{
text-align: center;
width: 100%;
color: black;
background-color: black;
border: 0;
height: 1px;
margin: 2px auto;
padding: 0;
}

footer.substanceb_footer p
{
font-size: 10px;
margin: 0;
text-align: center;
}

/*==BUTTONS*/

a.btn, button, input.btn, article.substanceb_formentry input.btn
{
height: 20px;
text-align: center;
display: block;
padding: 5px;
margin: 1em 0 0 0;
width: 100px;
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-transform: uppercase;
text-decoration: none;
font-size: 12px;
cursor: pointer;
font-family: "Palatino Linotype", "Bookman", "Georgia", serif;
}

a.btn:hover, button:hover, input.btn:hover, article.substanceb_formentry input.btn:hover, a.btn:focus, button:focus, input.btn:focus, article.substanceb_formentry input.btn:focus
{
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%);
}

a.btn:active, button:active, input.btn:active, article.substanceb_formentry input.btn:active
{
color: #868788;
}

a.btn:focus, button:focus, input.btn:focus, article.substanceb_formentry input.btn:focus
{
color: #868788;
}

a.btn:visited
{
color: black;
}

article.substanceb_formentry input.btn
{
display: inline;
font-size: 11px;
font-weight: bold;
width: 120px;
height: 20px;
}

article.substanceb_formentry input.btn:focus
{
border: 0;
box-shadow: inset 0px 0px 5px #fff;
-moz-box-shadow: inset 0px 0px 5px #fff;
-webkit-box-shadow: inset 0px 0px 5px #fff;
}

/* == FLOAT HANDLER == */
p.clearfixold
{
margin-top: 0em;
margin-bottom: 0em;
}

p.clearfixold:after
{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

p.clearfixright
{
margin: 0;
}

p.clearfixright:after
{
content: ".";
display: block;
height: 0;
clear: right;
visibility: hidden;
}

/*===Response===*/

.validresponse
{
color: green;
}

.invalidresponse
{
color: red;
}

.requiredinfo
{
color: red;
}

.optionalinfo
{
color: green;
}

/*===Technical Considerations===*/
span.tech_text
{
font-family: "Courier New", monospace;
color: black;
background-color: #EFEEEE;
font-size: 0.95em;
}

span.keyboard_text
{
font-family: "Courier New", monospace;
color: black;
background-color: #B4EBA8;
font-weight: bold;
font-size: 0.95em;

}

div.codeblock
{
font-family: "Courier New", monospace;
background-color: #EFEEEE;
color: black;
overflow-x: auto;
overflow-y: scroll;
padding: 5px;
font-size: 12px;
margin: 1.0em 0 0 0;
max-height: 600px;
border: 2px solid #cccccc;
}

div.codeblock pre
{
white-space: pre;
}

div.codeblock div.htmlcomment, div.codeblock div.csscomment
{
display: inline;
}

/* HTML Syntax Highlights */
div.codeblock .htmltag {color: #0A178D;}
div.codeblock .htmlattr {color: #C41223;}
div.codeblock .htmlvalue {color: #520B6A;}
div.codeblock .htmlcomment {color: #21870D;}

/* CSS Syntax Highlights */
div.codeblock .csssel {color: #391BE3;}
div.codeblock .cssclass {color: #F22731;}
div.codeblock .csspseudo {color: #F29D27;}
div.codeblock .cssproperty {color: #2789F2;}
div.codeblock .cssid {color: #9D9D9E;}
div.codeblock .csscomment {color: #21870D;}
div.codeblock .cssimportant {color: #DB2800; font-weight: bold;}

/*===BLOG===*/

div.blockquote
{
margin: 1.5em 2.5em 1.5em 2.5em;
background-color: white;
padding: 0 10px 10px 10px;
border: 1px solid #cccccc;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}

div.blockquote p
{
margin: 1.0em 0 0 0;
color: #4C4C4C;
font-family: "Helvetica", sans-serif;
font-style: italic;
font-size: 1.0em;
}



article.blogpost_article p
{
text-align: justify;
}



article.blogpost_article p.imgleft, article.blogpost_article p.imgright, article.blogpost_article p.imgcenter
{
font-size: 0.8em;
font-style: italic;
}
article.blogpost_article p.imgleft {padding: 5px 5px 5px 0;}
article.blogpost_article p.imgright {padding: 5px 0 5px 5px;}

article.blogpost_article h2
{
font-variant: small-caps;
}

article.blogpost_article p.blogpost_date, article.blogpost_article p.blogpost_label
{
font-variant: small-caps;
font-size: 0.8em;
font-weight: bold;
margin: 1.0em 0 0 0;
text-align:left;
}

article.blogpost_article p.blogpost_related
{
font-variant: small-caps;
font-size: 0.8em;
font-weight: bold;
margin: 0 0 1.0em 0;
text-align: left;
}

article.blogpost_article p.blogpost_by
{
font-variant: small-caps;
font-size: 0.8em;
font-weight: bold;
margin: 0;
text-align: left;
}

article.blogpost_article p.blogpost_notice
{
font-style: italic;
}

article.blogpost_article span.blogpost_appendum
{
font-size: 0.8em;
font-variant: small-caps;
}
article.blogpost_article ul#blogpost_archive_ul, article.blogpost_article ul#blogpost_label_ul
{
list-style: none;
list-style-image: url("../images/arrow_icon.png");
}

article#blog_sidebar p
{
text-align: left;
font-size: 0.9em;
}

article#blog_sidebar ul
{
margin: 0 0 1em 0;
font-size: 0.9em;
list-style: none;
list-style-image: url("../images/arrow_icon.png");
}

div.social_addons
{
width: 95%;
margin: 1.0em 0 0 0;
height: 60px;
display: block;
}

div.social_addons div
{
display: block; /* MOBILE Only */
}

div.social_addons div.twitter_social
{
width: 100px;
}



/*===EXTRAS */
div#googlemap
{
margin: 12px auto 0 auto;
text-align: center;
}

div#quoteresults
{
text-align: left;
font-family: "Courier New", monospace;
}

span.u
{
text-decoration: underline;
}

span.ub
{
text-decoration: underline;
font-weight: bold;
}

p.nocsswarning
{
display: none;
}

/*===Newsletter and Search Query===*/
div#newsletter_signup_div input, input#inputsearchid
{
width: 200px;
font-size: 10px;
}

div#newsletter_signup_div input:focus, input#inputsearchid:focus
{
border: 2px solid #B3B3B4;
box-shadow: 0px 0px 4px #cccccc;
-moz-box-shadow: 0px 0px 4px #cccccc;
-webkit-box-shadow: 0px 0px 4px #cccccc;
}



/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }



/* ==|== media queries ======================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 481px) {
  /* Style adjustments for viewports 481px and over go here */


nav.substanceb_navsection ul li a
{
width: 81px;
border-bottom: 0;
border-right: 0;
font-size: 0.9em;
}

div.left_content
{
width: 60%;
float: left;
}

div.right_content
{
margin: 0 0 0 62%;
width: 30%;
border-left: 1px solid #999;
padding-left: 5px;
}


article.substanceb_formentry div.right_content input
{
width: 150px;
}

article.substanceb_formentry input[type="radio"], article.substanceb_formentry input[type="checkbox"]
{
width: 20px;
height: 12px;
}

p.imgleft
{
text-align: left;
padding: 0 5px 0 0;
float:left;
margin: 0;
}

p.imgright
{
text-align: right;
padding: 0 0 0 5px;
float: right;
margin: 0;
}

p.imgcenter
{
text-align: center; 
padding: 0 5px 0 5px;
font-size: 0.8em;
margin: 1.0em 0 0 0;
}



}

@media only screen and (min-width: 960px) {
  /* Style adjustments for viewports 768px and over go here */
div#substanceb_outerwrapper {width: 960px;}


section.substanceb_content
{
width: 950px;
}

div.left_content
{
width: 590px;
float: left;
}

div.right_content
{
margin: 0 0 0 600px;
width: 340px;
border-left: 1px solid #999;
padding-left: 5px;
}


section.substanceb_content img
{
max-width: 400px;
}

article.substanceb_formentry input, article.substanceb_formentry textarea, article.substanceb_formentry select
{
width: 450px;
}


article.substanceb_formentry div.right_content input
{
width: 300px;
}

footer.substanceb_footer
{
width: 950px;
}

}



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}