/*===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, 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%; vertical-align: baseline; } @page { margin: 20px;} table { border-collapse: collapse; border-spacing: 0; } /*===Base Body===*/ body { text-align: justify; line-height: 120%; } /*===Headings===*/ h1 { text-indent: 0; text-align: center; margin: 1.5em 0 0.6em 0; font-family:"Georgia","serif"; font-size: 2.0em; font-weight: bold; line-height: 150%; /* gets squished otherwise on ADE */ } h2 { text-indent: 0; text-align: center; margin: 1.5em 0.5em 1em 0.5em; font-family:"Georgia","serif"; font-size: 1.5em; font-variant:small-caps; line-height: 145%; /* gets squished otherwise on ADE */ } h3 { text-indent: 0; text-align: left; font-size: 1.4em; font-weight: bold; margin: 1.0em 0 0 0; } h4 { text-indent: 0; text-align: left; font-size: 1.2em; font-weight: bold; margin: 1.0em 0 0 0; } h5 { text-indent: 0; text-align: left; font-size: 1.1em; font-weight: bold; margin: 1.0em 0 0 0; } h6 { text-indent: 0; text-align: left; font-size: 1.0em; font-weight: bold; margin: 1.0em 0 0 0; } /* Hyphen and pagination Fixer */ h1, h2, h3, h4, h5, h6 { page-break-after: avoid; page-break-inside: avoid; } /*===Other Block Elements===*/ /* first-line indent type paragraph for fiction */ /* first-line indent type paragraph for fiction */ p { text-indent: 1.25em; margin: 0; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0; widows: 2; orphans: 2; } /*need to set a css style for all paragraphs or else Nook will change the margins */ p.bodytext { text-indent: 1.25em; margin: 0; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0; widows: 2; orphans: 2; } p.Block{ text-indent:0; margin: 0.5em 0 0 0; } /* block type paragraph for non-fiction */ /* p { text-indent: 0; margin: 1.0em 0 0 0; widows: 2; orphans: 2; } */ /* Not a brilliant name, but what I'm used to. Use this for first paragraph of first-line indent style to flush it left*/ p.FirstLine { text-indent: 0; margin: 0; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0;} /* for use on front page, mostly*/ p.MainTitle{ text-indent: 0; text-align: center; margin: 1.5em 0 0.6em 0; font-family:"Caecilia","serif"; font-size: 2.0em; font-variant:small-caps; font-weight: bold; line-height: 160%; /* gets squished otherwise on ADE */ } p.MainTitle2{ text-indent: 0; text-align: center; margin: 1.5em 0 0.6em 0; font-family:"Caecilia","serif"; font-size: 1.5em; font-variant:small-caps; font-weight: bold; line-height: 140%; /* gets squished otherwise on ADE */ } p.MainTitle{ text-indent: 0; text-align: center; margin: 1.5em 0 0.6em 0; font-family:"Caecilia","serif"; font-size: 2.0em; font-variant:small-caps; line-height: 150%; /* gets squished otherwise on ADE */ font-weight: normal; text-shadow: 1px 1px 2px #999; } p.MainTitle2{ text-indent: 0; text-align: center; margin: 1.5em 0 0.6em 0; font-family:"Caecilia","serif"; font-size: 1.5em; line-height: 140%; /* gets squished otherwise on ADE */ text-decoration: none; font-weight: normal; font-variant:small-caps; text-shadow: 1px 1px 2px #999; } /*Means for adding a page break through CSS*/ p.PageBreakBefore{ text-indent: 0; margin: 0; page-break-before: always; } p.FrontMatter{ text-indent: 0; text-align: center; font-size:90%; } p.BlankSpace{ text-indent: 0; text-align: center; margin: 0.6em 0 0.6em 0; } p.SpaceBelow{ text-indent: 0; text-align: center; margin: 0 0 0.5em 0; } p.h2nopagebreak{ text-indent: 0; text-align: center; margin: 1em 0 0.6em 0; font-family:"Georgia","serif"; font-size: 1.5em; font-weight: bold; line-height: 135%; /* gets squished otherwise on ADE */ } /*Ahmad-specific */ p.RightAlignQuote{ text-align:right; text-indent:0; font-style: italic; margin:0; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0; } p.RightAlign{ text-align:right; margin:0 } p.ChapterSubHeading{ text-indent: 0; text-align: center; margin: 1em 0 0.6em 0; font-family:"Georgia","serif"; font-size: 1.5em; font-weight: bold; line-height: 135%; /* gets squished otherwise on ADE */ } p.subheading{ text-indent: 0; text-align: center; margin: 1em 0 0.6em 0; font-family:"Georgia","serif"; font-size: 1.3em; font-weight: bold; line-height: 135%; /* gets squished otherwise on ADE */ } p.ChapterQuote{ text-indent: 0; text-align: center; margin: 1em 1em 0.6em 1em; font-family:"Georgia","serif"; font-size: 1.2em; line-height: 125%; /* gets squished otherwise on ADE */ } /*===Images===*/ img { max-width: 100%; max-height: 100%; } /*===Inline Elements===*/ span.i { font-style: italic; } span.b { font-weight: bold; } span.u { text-decoration: underline; } span.st { text-decoration: line-through; } span.sm { font-variant: small-caps; font-size:115%; } /*==Inline combinations==*/ /* Using something like … may seem okay, but it causes problems on the Kindle */ 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; } /* Superscripted Text */ .super { vertical-align: super; font-size: 0.6em; text-decoration: none; } /* This fixes the bug where the text-align property of block-level elements is not recognized on iBooks example: HTML markup would look like

Centered Content

*/ span.ipadcenterfix { text-align: center; } span.ipadrightfix { text-align: right; } /*==eBook Specific Styles==*/ p.texttop { margin: 1.5em 0 0 0; text-indent: 0; } p.clearit { clear: both; } p.BigAndCentered{ text-indent:0; margin: 0.5em 0 0.5em 0; text-align: center; font-size: 110%; } p.smallblock{ text-indent:0; margin: 0.6em 0 0.6em 0; text-align: justify; font-size: 80%; } /* for centered text and element wrappers on images */ p.centered { text-indent: 0; margin: 0; text-align: center; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0;} /* Section Breaks */ p.centeredbreak { text-indent: 0; margin: 1.0em 0 1.0em 0; text-align: center; } p.scenebreak { text-indent: 0; margin: 1.0em 0 1.0em 0; text-align: center; } /* section Breaks with a page break */ p.centeredpgbrk { text-indent: 0; margin: 1.0em 0 0 0; text-align: center; page-break-before: always; } p.BlockPara{ text-indent: 0; margin: 0.6em 0 0 0; widows: 2; orphans: 2; } .imgCentred{ text-align:center; text-indent:0; margin: 0.5em 0 0.5em 0; } div.titleimagePort { height:100%; max-height:100%; max-width:100%; } div.titleimageLand { width:100%; max-height:100%; max-width:100%; } /* subheading quotes -- italicised quotes at top of a story/ chapter */ p.SubQ{ font-style: italic; text-indent:0; text-align:left; margin: 0.2em 0 0.2em 1.25em; } p.SubQC{ font-style: italic; text-indent:0; text-align:center; margin: 0.2em 0 0.2em 1.25em; } /* post-story notes */ p.NotesFL{ text-indent:0; font-size:90%; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0;} p.Notes{ text-indent:1.25em; font-size:90%; margin-top:0; /*annoying, but we have to enter these explicitly to override Nook's overrides. Even though we've already set margin:0*/ margin-bottom:0;} p.TOC{ text-indent:0; font-size:115%; font-variant:small-caps; text-align:center; margin-top:0.3em; } span.ch_big{ font-size:125%; } p.SmallGap{ margin-top:0.3em; }