/* =====================================================================
	Style Sheet for web books

	Copyright 2004 Steve Thomas <stephen.thomas at adelaide.edu.au>
	Last Updated 16 January 2004 

===================================================================== */

/* ---------------------------------------------------------------------
	Basic ebook formatting:
	- reasonable margins
	- black text on white background
--------------------------------------------------------------------- */

/* text is black on white, but surrounded by gray */
@media screen {
html {	background: #999; }
}
/* for older browsers which don't understand margin:auto */
body {	margin-left:3em; margin-right:2em; width:33em; }
/* note that 33em is a little wide for NS4, but ... */

/* black on white */
body { color:#000; background:#fff; }

/* sophistication! -- center in window, maximum width */
body { max-width:33em; margin:1em auto; padding:3em 3em 1em 3em; }

/* Paragraphs are generally justified with a comfortable line spacing. */
p { text-align: justify; line-height: 140%; }

/* Headings are all centered, non-serif */
/* Don't force font on the user! */
/* h1,h2,h3,h4,h5,h6 { font-family: Verdana, Arial, Helvetica; } */

h1,h2,h3,h4,h5,h6 { text-align: center; }

/* book title */
h1 { font-size: 2em; font-weight: bold; }

/* author */
h2 { font-size: 1.6em; font-weight: bold; }

/* chapter heading */
h3 { font-size: 1.2em; font-weight: bold; margin-top:3em; }

/* section or sub- heading */
h4 { font-size: 1em; font-weight: bold; }

/* sub-headings */
h5 { font-size: 1em; font-weight: bold; }

/* minor heading / ToC precis */
h6 { font-size: 1em; font-weight: normal; font-style: italic; }

/* rules are used to devide major divisions: grey'd to make less dominant */
hr { color: #dddddd; background: #ffffff; }

/* Anchors: these are standard colours, but exclude underlining */

a:link { color: #0000ff; background: #ffffff; text-decoration: none; }
a:active { color: #ff0000; background: #ffffff; text-decoration: none; }
a:visited { color: #990099; background: #ffffff; text-decoration: none; }

/* ---------------------------------------------------------------------
	Title Page -- normally used only in the index.html file
	h1 = title
	h2 = author
	h3 = sub-title
	h4 = other
--------------------------------------------------------------------- */

div.titlepage { text-align: center; font-weight: bold; }
div.titlepage p { margin-top:2em; text-align: center; line-height: 140%; }
div.titlepage h1 { margin-top:3em; margin-bottom:0em; }
div.titlepage h2 { margin-top:2em; margin-bottom:0em; }
div.titlepage h3 { margin-top:2em; margin-bottom:0em; }
div.titlepage h4 { margin-top:2em; margin-bottom:0em; }
div.titlepage hr { margin-top:3em; margin-bottom:1.5em; }

div.titlepage p.imprint { text-align:center; font-style:italic; }

@media print {
div.titlepage { margin-top:33%; }
div.titlepage p.imprint { margin-top:100%; }
}

/* ---------------------------------------------------------------------
	Table of Contents
	h4 = major level
	h5 = minor level
	h6 = precis
--------------------------------------------------------------------- */

/*
div.contents h4 { margin-top:2em; margin-bottom:0; }
div.contents h5 { margin:1em 0; }
div.contents h6 { margin:1em 0; }
div.contents hr { margin-top:3em; margin-bottom:1.5em; }
*/

/* ---------------------------------------------------------------------
	Document header section.
	This should be used at the head of
	individual parts, but NOT on the title page.
--------------------------------------------------------------------- */

div.dochead { text-align: center; }

div.dochead h2 {
	font-family:sans-serif;
	font-weight:normal;
	font-size:1em;
	font-style:normal;
	color:gray;
        /*font-variant: small-caps;*/
}

/* ---------------------------------------------------------------------
	Document body major divisions
--------------------------------------------------------------------- */

/* removed */

/* ---------------------------------------------------------------------
	Notes
	Although there is a "notes" major division, for use where notes
	are separated from the text in an appendix, the preferred style
	is to embed notes in the text as near following the reference as
	possible. In such cases, the "note" class should be used, as it
	differentiates notes from text by enclosing them in a box, and
	using a smalle font size.
	Notes left to end of a division can use the footnote class.
--------------------------------------------------------------------- */

div.footnotes { font-size: .9em; text-indent: 0;
	margin-left: 1em; margin-right: 1em;
	border-top: 1pt solid gray; padding: 2pt;
}
div.footnote { font-size: .9em; text-indent: 0; }

.note {
	font-size: .9em;
	text-indent: 0;
	margin-left: 1em; margin-right: 1em;
	border: 1pt solid gray; padding: 2pt;
}

span.inline-note { font-size: .9em; color:gray; }
span.marginal-note { font-size: .9em; font-style:italic; }

span.popup-note, abbr, acronym {
	border: 1px dotted gray; cursor: help; }

/* ---------------------------------------------------------------------
	Various classes
--------------------------------------------------------------------- */

div.dedication p { text-align: center; }
p.dedication { text-align: center; }

div.inscription { text-align: center; font-variant: small-caps; }
div.inscription p { text-align: center; font-variant: small-caps; }
p.inscription { text-align: center; font-variant: small-caps; }

div.rubric p { text-align: center; font-style:italic; }
p.rubric { text-align: center; font-style: italic; }

.abstract {
        font-style: italic;
        font-size: .9em;
        margin-left: 1em; margin-right: 1em; }

.precis {
        font-variant: small-caps;
        font-size: .9em;
        margin-left: 1em; margin-right: 1em; }

div.epigraph p { text-align: center; font-style: italic; }
p.epigraph { text-align: center; font-style: italic; }

.colophon { text-align: center; font-weight: bold; font-style: italic; }

div.quote p, p.quote, blockquote {
	margin-left: 1em; margin-right: 1em; }

/*
	Use notice for advertisements, handbills, tombstones, etc.
*/

div.notice { border: 1px solid; padding:1em;
	margin-left: 1em; margin-right: 1em; }

div.notice p { text-align: center; font-weight: bold; }

/* ---------------------------------------------------------------------
	Letters -- within a body, e.g. as quotations.
	Where the entire body is a letter, use the .letter class defined
	above (i.e. as a major division)
--------------------------------------------------------------------- */

.letter-typed {
	font-family: "Courier New", Courier, monospace;
	margin-left: 1em; margin-right: 1em; }

.letter-written {
	font-family: cursive;
	margin-left: 1em; margin-right: 1em; }
div.letter-written p { text-align: left; }

/* ---------------------------------------------------------------------
	Plays
	.act is a wrapper for the text
	.speaker is used for character names
	.speech is used for character speech
	.stage is used for stage directions
--------------------------------------------------------------------- */

/* div.act p { text-align: justify; line-height: 140%; } */

.speaker { font-weight: bold; font-variant: small-caps; }

.speech { margin-left: 1em; }

.stage { font-style: italic; }

/* ---------------------------------------------------------------------
	Poetry
--------------------------------------------------------------------- */

div.poem { font-style: normal; }
div.poem p { text-align: left; line-height: 140%; }
div.poem pre { font-family: serif; text-align: left; line-height: 140%; }

div.canto { font-style: normal; }
div.canto p { line-height: 140%; }

.verse { text-align: left; margin-left: 2em; }
.stanza { text-align: left; margin-left: 2em; }

.chorus { margin-left:1em; font-style:italic; }

/* Note: one could use "white-space: pre;", in which case lines need not
be broken with br tags. I.e. this would act like the pre tag but allow
the use of variable-spaced fonts. */

/* ---------------------------------------------------------------------
	Navigation section
--------------------------------------------------------------------- */

div.navigation {
	font-family: sans-serif;
	font-size: .9em;
	text-align: center;
	text-indent: 0;
}
div.navigation p { /* because inheritance doesn't work in Win */
	font-size: .9em;
	text-align: center;
	text-indent: 0;
}

/* ---------------------------------------------------------------------
	Document info (footer)
	Features: we want it unobtrusive, so: grey everything,
	including links.
--------------------------------------------------------------------- */

div.docinfo {
	font-family: sans-serif;
	font-size: .9em;
	color: #666;
	background: #ffffff;
	text-align: center;
}
div.docinfo p { text-align:center; }

div.docinfo p a {
	font-family: sans-serif;
	color: #666; background: #ffffff;
	text-decoration: underline;
}
div.docinfo p a:visited {
	font-family: sans-serif;
	color: #666; background: #ffffff;
	text-decoration: underline;
}
div.docinfo p a:hover {
	font-family: sans-serif;
	color: #f00; background: #ffffff;
	text-decoration: underline;
}

div.docinfo p.citation {
	text-align:left; margin:1em 2em; border:1px solid gray;
	padding:1em;
}

/* ---------------------------------------------------------------------
	Miscellany
--------------------------------------------------------------------- */

/* "primitive" classes, e.g. for IMG placement */

.left { float: left; }
.right { float: right; }
.center { text-align: center; }
.clear { clear: both; }

.border { border:1px solid; padding:1em; }

/* citations are underlined, not italic */
cite { text-decoration: underline; font-style: normal; }

/* Lists */

dl,ol,ul { text-align: left; line-height: 140%; }

dl dd { font-size: smaller; }

/*
ol li	 { list-style-type: decimal; }

ol ol li { list-style-type: lower-alpha; }

ol ul li      { list-style-type: disc; }

ol ol ol li	{ list-style-type: lower-roman }
*/

/*
These added April 2003 for Keynes k44g. Really need to create some
classes for tables with and without borders, etc.
*/
table { border: 1px solid; width:100%; }
th {
	margin:0px; padding:5px; border:1px dotted;
	text-align:center; font-weight: bold;
	background-color:#ccc;
}
td { margin:0px; padding:5px; border:1px dotted; text-align:center; }
tr.total { border:1px solid; font-weight:bold; }

/* superscript is used for note references/numbering. 
   size ensures that the numbers don't intrude by increasing line
   spacing. */
sup { font-size:.7em }

/* pre-format class -- same as pre, but needs br to break lines */
div.pre { font-family:monospace; text-align:left }

/* Fix for IE5.5-Mac */
pre { font-family:monospace; text-align:left }

/* Print controls, for anyone who wants a printed copy */
@media print {
div.frontmatter { page-break-after:always; }
div.titlepage { page-break-after:always; }
div.titlepage hr { display:none; }
div.contents { page-break-after:always; }
div.contents hr { display:none; }
div.docinfo { page-break-after:always; }
div.docinfo hr { display:none; }
div.preface { page-break-after:always; }
div.introduction { page-break-after:always; }
div.chapter { page-break-after:always; }
div.appendix { page-break-after:always; }
div.navigation { display:none; }
h3,h4 { page-break-after:avoid; }
}

/* ================================END=============================== */
