@font-face {
	font-family: valkyrie_ot_a;
	font-style: normal;
	font-weight: bold;
	font-stretch: normal;
	font-display: auto;
	src: url('valkyrie_ot_a_bold.woff2') format('woff2');
}
@font-face {
	font-family: valkyrie_ot_a;
	font-style: normal;
	font-weight: normal;
	font-stretch: normal;
	font-display: auto;
	src: url('valkyrie_ot_a_regular.woff2') format('woff2');
}
@font-face {
	font-family: valkyrie_ot_a;
	font-style: italic;
	font-weight: normal;
	font-stretch: normal;
	font-display: auto;
	src: url('valkyrie_ot_a_italic.woff2') format('woff2');
}
@font-face {
	font-family: 'icons';
	font-weight: normal;
	font-style: normal;
	font-display: auto;
	src: url('icons.woff') format('woff')
}
[class^="icon-"], [class*=" icon-"] {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	cursor: pointer;
	direction: ltr;
	font-family: 'icons' !important;
	font-size: 1.125rem;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	letter-spacing: normal;
	margin-bottom: .125rem;
	margin-top: auto;
	speak: never;
	text-rendering: optimizeLegibility;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
}
.icon-android:before {
	content: "\e900";
}
.icon-ios:before {
	content: "\e901";
}
.icon-menu:before {
	content: "\e902";
}
.icon-home:before {
	content: "\e903";
}
.icon-list:before {
	content: "\e904";
}
.icon-text-decrease:before {
	content: "\e906";
}
.icon-text-increase:before {
	content: "\e907";
}
.icon-close:before {
	content: "\e908";
}
:root {
	--bg: 240, 239, 254; /* #f0effe */
	--bg-dark: 225, 223, 252; /* #e1dffc */
	--text: 7, 7, 7; /* #070707 */
	--highlight: 247, 206, 91; /* #f7ce5b */
	--highlight-neg: 170, 68, 101; /* #aa4465 */
	--highlight-pos: 5, 168, 170; /* #05a8aa */
	--white: 255,255,255; /* #ffffff */
}

/* Basic Styles */
* {
	-webkit-tap-highlight-color: transparent;
	margin: 0;
	padding: 0;
}
html {
	height: 100%;
	font-size: 18px;
}
body {
	background-color: rgb(var(--bg));
	color: rgb(var(--text));
	font-family: valkyrie_ot_a;
	font-size: 1rem;
	line-height: 1.33;
	margin: 0 2rem;
	height: calc(100% - 4rem);
}
menu {
	display: flex;
	justify-content: space-between;
	height: 2rem;
	position: absolute;
	top: 0;
	width: calc(100% - 4rem);
	z-index: 4;	
}
menu div {
	display: flex;
	align-items: center;
}
.menuPersistent {
	width: 100%;
	justify-content: flex-end;
}
h1 {
	font-size: 2rem;
	line-height: 2rem;
	margin-bottom: 2rem;
	text-align: center;
}
h2 {
	font-feature-settings: "c2sc", "smcp";
	font-size: 1rem;
	line-height: 1.125rem;
	font-weight: normal;
	margin: 1rem 0 1.25rem;
	text-align: center;
}
#toc h2, h2.alt {
	font-feature-settings: normal;
	line-height: inherit;
	font-weight: bold;
	margin: 0 0 0.25rem;
}
h2.alt {
	text-align: left;
}
a {
	color: rgb(var(--text));
	text-decoration: none;
}
p {
	-webkit-hyphens: auto;
	hyphens: auto;
	margin: 0 0 1.25rem;
}
ul {
    margin: 0 0 1.5rem;
}
li {
	list-style-type: none;
    margin-bottom:  0.25rem;
}
hr {
	height: .1667rem;
	background: url("svg/hr070707.svg") repeat-x 0 0;
	border: 0;
	margin-bottom: 2rem;
}
input[type="text"], input[type="submit"], textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
   	border: .0625rem solid rgb(var(--text));
    font-family: valkyrie_ot_a;
    font-size: 1rem;
    margin-right: .5rem;
    padding: .75rem;
    width: 16rem;
}
input[type="submit"] {
	border-radius: 2rem;
	background: rgb(var(--text));
	color: rgb(var(--white));
	cursor: pointer;
	margin-right: 0;
	padding-left: 2rem;
	padding-right: 2rem;
	width: auto;
}

/* Page-Specific Styles */


#toc, #chapter, #page {
	width: 100%;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
#chapter {
	text-align: center;
}
#title {
	display: flex;
	flex-direction: column;
	height: calc(100% - 2rem);
	margin: 0 auto;
}
#title-top {
	display: flex;
	flex-direction: column;	
	flex-grow: 0;
}
#title h1 {
	flex-grow: 1;
	font-size: 3rem;
	line-height: 3.125rem;
	margin-bottom: 0;
}
#title-bottom {
	align-items: flex-end;
	display: flex;
	flex-grow: 1;
}
#title img {
	margin: 0 auto 4.5em;
	padding: 0 2rem 0 0;
}
#toc {
	padding-bottom: 2rem;
	text-align: center;
}
#toc h1 {
	margin-bottom: .25rem;
}
#toc ul {
	columns: 2;
}
#page ul.alt li {
	list-style-type: disc;
	margin: 0 0 0 1rem;
	padding: 0 0 .125rem 1rem;
}
#page ul.alt li.qr {
	list-style-type: none;
	margin: 0.75em 0 0.5em 1.25em;
}
.pg a {
	background: rgb(var(--bg));
	border-radius: .1875rem;
	color: rgb(var(--text));
	margin: -.0625rem -.0625rem -.0625rem -.125rem;
	padding: .0625rem .0625rem .0625rem .125rem;
	text-decoration: underline;
	transition-property: background;
    transition-duration: 0.25s;
}
.pg a:hover {
	background: rgb(var(--bg-dark));
} 
.pg {
	padding-bottom: 4rem;
}
.icon-android:before {
  content: "\e900";
  vertical-align: text-top;
}
.icon-ios:before {
  content: "\e901";
  vertical-align: inherit;
}

/* Navigation Styles */
a.next, a.previous {
	-webkit-tap-highlight-color: rgb(var(--bg-dark));
	color: transparent;
	height: 100%;
	position: fixed;
	top: 0;	
	right: 0;
	width: 2rem;
}
.cover a.next, .cover a.previous {
	-webkit-tap-highlight-color: rgb(var(--bg-dark));
}
a.previous {
	left: 0;
}
#page {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding-bottom: 2rem;
}
#chapter {
	height: 100%;
}
#content {
	flex-grow: 1;
	height: 100%;
}
nav {
	align-items: flex-end;
	background-image: linear-gradient(to top, rgba(240, 239, 254, 1), rgba(240, 239, 254, 1) 3.75rem, rgba(240, 239, 254, 0));
	bottom: 0;
	display: flex;
	flex-grow: 0;
	font-size: 1.25rem;
	height: 5.5rem;
	line-height: 1.25rem;
	margin: 0;
	padding-bottom: 2rem;
	position: fixed;
	width: calc(100% - 4rem);
}
nav ul {
	align-items: flex-end;
	display: flex;
	flex-grow: 1;
	height: 1.5rem;
	justify-content: space-between;
	margin: 0;
}
nav li {
	align-content: stretch;
	align-items: flex-end;
	display: flex;
	flex-grow: 1;
	margin: 0;
}
nav li a {
	flex-grow: 1;
}
nav li.center {
	cursor: default;
	display: block;
	flex-grow: 0;
}
li.left a, li.left a:hover, li.right a, li.right a:hover {
	display: block;
	margin-left: 0;
	margin-right: -.875rem;
	transition-duration: .5s;
	transition-property: margin-left, margin-right;
}
li.right a, li.right a:hover {
	margin-left: -.875rem;
	margin-right: 0;
}
li.left a:hover {
    margin-left: -.875rem;
	margin-right: 0;
}
li.right a:hover {
	margin-left: 0;
	margin-right: -.875rem;
}
#chap {
	padding: 0 1rem;
}

/* PWA Styles */
#pwaMessage {
	cursor: pointer;
	display: none;
}
.hide {
	display: none;
}

/* Various Styles */
.smallCaps, strong {
	-webkit-hyphens: none;
	font-feature-settings: "c2sc", "smcp";
	hyphens: none;
}
strong {
	font-weight: normal;
}
.copyright {
	font-size: 1rem;
}
.highlight {
	color: rgb(var(--highlight));
}
.highlightNeg {
	color: rgb(var(--highlight-neg));
}
.highlightPos {
	color: rgb(var(--highlight-pos));
}
.center {
	text-align: center;
}
.left {
	text-align: left;
}
.right {
	text-align: right;
}
.noWrap {
	-webkit-hyphens: none;
	hyphens: none;
}
@media all and (display-mode: standalone) {
	nav, #page {
		padding-bottom: 3rem;
	}
	nav {
		background-image: linear-gradient(to top, rgba(240, 239, 254, 1), rgba(240, 239, 254, 1) 4.75rem, rgba(240, 239, 254, 0));
		height: 6.5rem;
	}
	#title img {
		margin-bottom: 5em;
	}
	
}
	