/* Fonts */
@font-face {
    font-family: "Libertine";
    src: url("gfx/libertine/LinLibertine_R.woff") format("woff"), url("gfx/libertine/LinLibertine_Rah.ttf") format("truetype");
}

@font-face {
    font-family: "Libertine";
    font-weight: bold;
    src: url("gfx/libertine/LinLibertine_RB.woff") format("woff"), url("gfx/libertine/LinLibertine_RBah.ttf") format("truetype");
}
@font-face {
    font-family: "Libertine";
    font-style: italic;
    src: url("gfx/libertine/LinLibertine_RI.woff") format("woff"), url("gfx/libertine/LinBiolinum_RIah.ttf") format("truetype");
}
@font-face {
    font-family: "Libertine";
    font-style: italic;
    font-weight: bold;
    src: url("gfx/libertine/LinLibertine_RBI.woff") format("woff"), url("gfx/libertine/LinLibertine_RBIah.ttf") format("truetype");
}

/* html */

body {
	font-family: "Libertine", serif;
	font-size: 16pt;
	margin: 0;
	padding: 0;
}


a {
	text-decoration: none;
	color: #CC6600;
}

a:hover {
	color: #C13100;
}

.grayed-out {
	color: #CFCFCF;
}

.italic {
	font-style: italic;
}

.page-elements {
	margin: auto;
	max-width: 960px;
	padding: 0 1em;
}

/* Top menu */

#top-menu span {
	font-family: sans-serif;
	font-size: 0.6em;
	margin-left: 1.5em;
}

/* Logo & Title*/
#logo {
	background: url('gfx/cover.jpg');
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center;
	border-top: 0.5em solid #C13100;
	height: 20em;
}

#author a {
	color: black;
}

#author {
	padding: 2em 0;
	font-family: sans-serif;
	font-size: 0.6em;
	text-align: center;
}

.disclaimer {
	font-size: 0.8em;
	font-family: sans-serif;
	width: 100%;
	display: block;
	text-align: center;
	
}

#thesis-heading h1  {
	text-align: center;
	font-size: 3em;
	color: #C13100;
	margin: 1em 0;
}

#thesis-heading h2 {
	font-size: 1.3em;
	text-align: center;
	margin: 1em 0;
}


/* Shared TOC */
.toc-info {
    display:none;
}

.janchor {
	cursor: pointer;
}

.toc {
    margin: 0;
    padding: 0;
    list-style: none;
}


.level-h1, .level-hgroup {
    font-size: 1em;
    padding: 0.4em;
    font-weight: bold;
}

.level-h2 {
    padding: 0.2em 0.2em 0.2em 4em;
    font-size: 1em;
}

.level-h3 {
    padding: 0.2em 0.2em 0.2em 6em;
    font-size: 0.8em;
}


/* Global TOC */

#global-toc li {
	display: block;
	width: 100%
}

#global-toc a {
	display: block;
	color: black;
}

#global-toc a:hover {
	background-color: #FFFBD0;
}

/* Footer TOC */
#footer-toc li {
	width: 100%;
	display: block;
}

#footer-toc a {
	
	display: block;
	margin: 0;
}


/* Chapters */

.chapter h1 {
	text-align: center;
	font-size: 3em;
	color: #C13100;
	margin-bottom: 0;
}

.chapter h1 a  {
	color: #C13100;
}

.chapter h1 a:hover  {
	color: #B52E00;
}

.chapter h2, #toc  {
	font-size: 1.8em;
	color: #A5AD09;
	margin: 0.5em 0 0 0;
	clear: both;
}


.chapter h2 a {
	color: #A5AD09;
}

.chapter h2 a:hover { color: #8B910A; }

.chapter h3 {
	font-size: 1.2em;
	text-align: center;
	margin: 0.8em 0 0 0;
	clear: both;
}

.chapter h3 a {
	color: black;
}

.chapter h3 a:hover {
	color: #C13100;
}

.chapter h4 {
	text-align: center;
	color: grey;
	font-family: sans-serif;
	font-weight: 300;
}

.chapter hgroup {
	margin: 3em 0 2em 0;
}

.chapter hgroup .chapter-indicator {
	text-align: center;
	color: grey;
	width: 100%;
}

.chapter hgroup h1, h2, h3 {
	margin: 0;
}


/* Pages */


.page-break {
	clear: both;
	display: block;
	color: #BABABA;
	border-bottom: 0.1em dashed #BABABA;
	margin: -0.5em 0;
	text-align: right;
	font-family: sans-serif;
	font-size: 0.6em;
}

.page-break:before {
	content: "[end of page ";
}

.page-break:after {
	content: "]";
}

.page img {
	display: block;
	width: 100%;
	max-width: 945px;
	margin: auto;
	margin-top: 1em;

}

.page p.caption {
	padding: 0 10%;
	max-width: 945px;
	text-align: center;
	font-style: italic;
	font-size: 0.9em;
	color: gray;

}

.page {
	margin-bottom: 1em;
}

#signature {
	text-align: right;
	font-style: italic;
}


/* Paragraphs */

.page p, .page li {
	text-align: justify;
	line-height: 1.8em;
	margin-top: 0.2em;
	margin-bottom: 0.2em;
	clear: both;
}

#preface-chapter p, #summary-pages p {
	margin: 1em 0;
}

#acknowledgements-page p {
	text-align: center;
	padding: 1em 3em;
}

.runtxt {
	text-indent: 1.5em;
}

.quote {
	margin: 0.8em 1.5em;
	padding-left: 0.4em;
	color: gray;
	font-size: 0.9em;
	border-left: 0.1em solid #BABABA;
}

.quote-src {
	display: block;
	float: right;
}
.abstract:first-letter {
	font-size: 5em;
	float: left;
}


.pause {
	text-align: center;
	color: grey;
	font-weight: bold;
	font-size: 1.2em;
}

.ref {
	font-size: 0.8em;
	padding: 0 0 1em 3em;
	text-indent: -3em;
	word-break: break-all;
}

.double { text-decoration: underline; }


/* Footnotes */
.footnotes {
}

.footnote-top {
	width: 20%;
	height:0.2em;
	background: black;
}

.fref {
	font-size: 0.6em;
	line-height: 1.3em;
 	vertical-align: top;
 	font-weight: bold;
}

.footnote {
	font-size: 0.8em;
	padding: 0 2em;
}

.footnote-id {
}

.footnote-id:after {
	content: "] ";
}


/* Footer */

footer {
	width: 100%;
	position: fixed;
	bottom: 0;
}


#footer-content {
	background: #404040;
	opacity: 0.9;
	max-width: 960px;
	margin: auto;
}

footer a {
	color: white;
}

footer a:hover {
	color: white;
}

#footer-close {
	padding: 0.5em;
	float: right;
	opacity: 0.5;
	z-index: 25;

}

#footer-close img {
	width: 3em;
}

#footer-close:hover {
	background: none;
	opacity: 1;
}

#footer-toc .active, footer a:hover {
    background: #A5AD09;
}

#footer-toc-current, #footer-close-current {
	text-align: center;
	display: block;
	width: 100%;
	line-height: 1.5em;
}

#footer-toc-wrap {
	border-bottom: 3px solid #A5AD09;
	border-top: 3px solid #C13100;
	z-index: 20;
	overflow-y: auto;
}

#footer-close-current {
	font-weight: bold;
}

/* tables */

#open-open-matrix {
	width: 80%;
	margin: 1em auto;
}
#open-open-matrix td {
	border: 1px solid black;
	text-align: center;
}

