/* #### Main */
/* ########################################################################## */

* {
	font-family: "Noto Sans", sans-serif;
}


html {
	background-color: #EEE;
}

body {
	background-color: #FFF;

	max-width: 115vh; /* don't allow the body to keep growing wider on large screens */
	margin: 0px auto; /* center the body, and make it flush with the top of the viewport */
}

/* Media queries are CSS statements that allow us to query the device the
 * user is viewing the page on, and apply styles according to the screen width,
 * or whether the device is in portrait or landscape mode, etc.
 * 
 * Here, we apply larger padding on larger screens, and smaller padding on
 * smaller screens. */

/* Mobile media query */
@media (max-width: 768px) {
	header, section, nav {
		padding: 0.75em 1.25em;
	}
	html { /*workaround to fix some bugs*/
		background-color: #FFF;
	}
}

/* Desktop media query */
@media (min-width: 768px) {
	header, section, nav {
		padding: 1.5em 2.5em;
	}

	html { /*workaround to fix some bugs*/
		background-color: #EEE;
	}
}

/* #### Links */
/* ########################################################################## */
a:link {
	color: #0000aa;

	font-family: inherit;
}

a:visited {
	color: #3333aa;

	font-family: inherit;
}

/* #### Headings */
/* ########################################################################## */
h1 { font-size: 32px; font-weight: normal; }
h2 { font-size: 28px; font-weight: normal; }
h3 { font-size: 24px; font-weight: normal; }
h4 { font-size: 20px; font-weight: normal; }
h5 { font-size: 16px; font-weight: bold;   }

h1, h2, h3 { 
	margin-top:    0.5em;
	margin-bottom: 0.5em;
}

h4, h5 {
	margin-top:    1em;
	margin-bottom: 1em;
}

/* #### Text */
/* ########################################################################## */

blockquote {
	padding-left: 1.5em;
	margin-left:  0px;
	margin-right: 0px;

	text-indent: 1em;
	text-align: justify;

	font-family: "Noto Serif", serif;
}

.blockquote-themed {
	padding-left: 1.5em;
	margin-left:  0px;
	margin-right: 0px;

	text-indent: 1em;
	text-align: justify;

	font-family: "Noto Serif", serif;
}

.blockquote-right {
	padding-left: 1.5em;
	margin-left:  10%;
	margin-right: 0px;

	text-indent: 1em;
	text-align: justify;
	font-family: "Noto Serif", serif;
}

.centered {
	text-align: center;
	font-family: inherit;
}

.inote {
	color: #888;
	font-family: inherit;
}

/* Mobile media query */
@media (max-width: 768px) {
	p, blockquote, ol, ul {
		font-size:   15px;
		line-height: 27px;
	}
}

/* Desktop media query */
@media (min-width: 768px) {
	p, blockquote, ol, ul {
		font-size:   16px;
		line-height: 29px;
	}
}

table {
	font-family: inherit;
}

li {
	font-family: inherit;
}

p {
	text-indent: 1em;
	text-align: justify;
	font-family: "Noto Serif", serif;
}

/* ########################################################################## */
.header-title {
	background-color: #FFF;
	text-align: center;

	border-width: 1em 0px 0px 0px;
	border-color: #555588;
	border-style: solid;
	font-family: inherit;
}

.fst {
	text-indent: 0;
	font-family: "Noto Serif", serif;
}

.sig-left {
	text-indent: 0;
	font-weight: bold;
	font-size: 14pt;
	font-style: italic;
	line-height: 125%;
	text-align: left;
	margin-left: 8%;
	text-indent: 0;
	font-family: "Noto Serif", serif;
}

em {
	font-family: inherit;
}

.sig-right {
	text-indent: 0;
	font-weight: bold;
	font-size: 14pt;
	font-style: italic;
	line-height: 125%;
	text-align: right;
	margin-left: 8%;
	text-indent: 0;
	font-family: "Noto Serif", serif;
}

.endnote {
	font-size: medium;
	text-align: justify;
	font-family: "Noto Serif", serif;
}

.header-notes {
	text-align: center;
	font-family: inherit;
}

.sup-note {
	padding-right: 1em;
	font-family: "Noto Serif", serif;
}
.sup-text-note {
	font-family: inherit;
}

sup {
	font-size: x-small;
	font-weight: normal;
	font-family: inherit;
}

sub {
	font-size: x-small;
	font-weight: normal;
	font-family: inherit;
}


.li-endnote {
	list-style-type: none;
	text-indent: 0;
	font-family: inherit;
}

.header-info, .header-chapter {
	background-color: #DDD;

	border-width: 0.5em 0px 0.5em 0px;
	border-color: #CCC;
	border-style: solid;
	font-family: inherit;
}

.header-info > ul {
	list-style-type: none;
	padding: 0px;
	margin:  0px;
	font-family: inherit;
}

.header-chapter {
	text-align: center;
	font-family: inherit;
}

.article-sections {
	text-align: center;
	font-weight: normal;
	font-family: inherit;
}

/* ########################################################################## */
.book-info {
	text-align: center;
	font-family: inherit;
}

.article-toc {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: left;
	font-family: inherit;

}

.article-main {
	font-family: inherit;
}

strong {
	font-family: inherit;
}
.article-notes {
	border-width: 0.5em 0px 0px 0px;
	border-color: #CCC;
	border-style: solid;
	font-family: inherit;
}

.paragraph-notes {
	text-indent: 0;
	font-family: "Noto Serif", serif;
}

/* ########################################################################## */
nav {
	background-color: #DDD;
	text-align: center;

	border-width: 0.5em 0px 0px 0px;
	border-color: #CCC;
	border-style: solid;
	font-weight: bold;

	font-family: inherit;
}

hr {
	height: 0.5em;
	color: #CCC;
	background-color: #CCC;
	border: none;

	font-family: inherit;
}
