@font-face {
	font-family: 'DinosaurPlanet';
	src:
		local('DinosaurPlanetRegular'),
		url('/fonts/DinosaurPlanetRegular.ttf') format('truetype'),
		url('/fonts/DinosaurPlanetRegular.otf') format('opentype'),
		url('/fonts/DinosaurPlanetRegular.woff2') format('woff2'),
		url('/fonts/DinosaurPlanetRegular.woff') format('woff');
}

* {
	box-sizing: border-box;
}

body {
	background-color: #182239;
	color: #ecdcc7;
	font-family: sans-serif;
	line-height: 1.2;
}

body.custom-cursors {
    cursor: url('../images/cursor.png') 6 1, auto !important;
}

details > summary {
	cursor: pointer;
}

.custom-cursors a,
.custom-cursors a:hover,
.custom-cursors button,
.custom-cursors input,
.custom-cursors select,
.custom-cursors details > summary,
.custom-cursors .headerLink {
    cursor: url('../images/cursor_pointer.png') 6 1, auto !important;
}

#backgroundImageLeft {
	background-color: #182239;
	background-image: url('../images/background_left.png');
	background-size: 300px 752px;
	background-repeat: no-repeat;
	background-position: top 0px right 512px;
	width: 50%;
	height: 752px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
}

#backgroundImageRight {
	background-color: #182239;
	background-image: url('../images/background_right.png');
	background-size: 300px 752px;
	background-repeat: no-repeat;
	background-position: top 0px left 512px;
	width: 50%;
	height: 752px;
	position: fixed;
	top: 0;
	right: 0;
	z-index: -1;
}

ul {
	list-style-type: square;
	list-style-position: inside;
	margin: 1.5em 0;
}

ul ul {
	margin-left: 10px;
	list-style-type: circle;
}

ol {
	list-style-type: decimal;
	list-style-position: outside;
	margin: 1.5em 1.5em 2em;
}

ol > li {
	margin: 0.5em;
}

b, strong {
	font-weight: bold;
}

i {
	font-style: italic;
}

h1 {
	font-weight: bold;
	font-size: 1.75rem;
	margin-top: 1em;
	/* margin-top: 10px;
	margin-bottom: 20px; */
	color: #e3ad67;
}

h2 {
	font-weight: bold;
	font-size: 1.375rem;
	/* margin-bottom: 20px; */
	margin-top: 1em;
	color: #e3ad67;
}

h3 {
	font-weight: bold;
	font-size: 1.125rem;
	/* margin-bottom: 10px;
	margin-top: 10px; */
	margin-top: 1.25em;
}

h4 {
	font-weight: bold;
	font-size: 1rem;
	/* margin-bottom: 10px;
	margin-top: 10px; */
	margin-top: 1.5em;
}

h5 {
	font-weight: bold;
	font-size: 0.75rem;
	/* margin-bottom: 5px; */
	/* margin-top: 10px; */
	margin-top: 2em;
}

p {
	/* margin-bottom: 20px; */
	margin: 1.5em 0;
}

h1, h2, h3, h4, h5, h6 {
	margin-bottom: 0;
	/* line-height: 1.3; */
}

h1:first-child {
	margin-top: 0.75em;
}

h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
	margin-top: 0.5em;
}

a {
	color: #e3ad67;
	text-decoration: underline;
}

a:hover {
	color: white;
}

code {
	font-family: monospace;
	display: inline-block;
	padding: 1px 4px;
	background-color: black;
	border-radius: 4px;
}

pre {
	font-family: monospace;
	padding: 10px;
	background-color: #4c2d1a;
	border-radius: 4px;
}

table {
	width: 100%;
	margin-bottom: 10px;
	font-size: 0.75rem;
}

th {
	background-color: black;
	border: 1px solid black;
	padding: 10px;
	font-weight: bold;
}

td {
	border: 1px solid black;
	padding: 10px;
	background-color: #4c2d1a;
	vertical-align: middle;
}

td > :first-child {
	margin-top: 0;
}

td > :last-child {
	margin-bottom: 0;
}

#main {
	width: 1024px;
	background-color: #4c2d1a;
	min-height: 100vh;
	border-right: 1px solid black;
	border-left: 1px solid black;
	/* filter: drop-shadow(0px 0px 20px #00000080); */
	box-shadow: 0px 0px 20px #00000080;
	margin: 0 auto;
	/* height: 10000px; */
	display: flex;
	flex-direction: column;
}

.picmenu_box {
	display: inline-block;
	position: relative;
	min-width: 80px;
	height: 54px;
	text-align: center;
	--glow-color-0: #fff9f2;
	--glow-color-1: #c47b67;
	--glow-color-2: #f0943df0;
	--glow-size: 18px;
	--glow-step: 3px;
	--glow-shrink: 0.7;
}

.picmenu_box a:link, .picmenu_box a:visited {
	text-decoration: none;
	color: #FFD18B !important;
}

.picmenu_box > .background {
	display: flex;
	flex-direction: row;
	position: absolute;
	width: 100%;
	height: 100%;
}

.picmenu_box .background > div {
	height: 100%;
}

.picmenu_box .background .middle {
	width: calc(100% - 80px);
	background-image: url('/images/picmenumiddle.png');
	background-repeat: repeat-x;
	background-size: auto 100%;
	background-position: left top;
}

.picmenu_box .background .left {
	background-image: url('/images/picmenuleft.png');
}
.picmenu_box .background .right {
	background-image: url('/images/picmenuright.png');
}

.picmenu_box .background .left, .right {
	width: 40px;
	background-repeat: no-repeat;
	background-size: auto 100%;
	background-position: left top;
	transform: scale(1.003, 1.0);
}

.picmenu_box .text {
	position: relative;
	padding: 0px 22px 0px 18px;
	align-items: center;
	font-family: 'DinosaurPlanet', 'Georgia', serif;
	font-style: normal;
	font-weight: 500;
	font-size: 0.9rem;
	line-height: 54px;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #FFD18B !important;
	text-shadow: 0px 0px 4px #301B1B,
				 1px 1px 0px #301B1B,
				 2px 2px 0px #301B1B;
	display: flex;
	align-items: center;
	justify-content: center;
}

.picmenu_box.smaller .text {
	font-size: 0.8rem;
}

.picmenu_box.faded {
	filter: saturate(0.5);
	opacity: 0.5;
}

.picmenu_box.clickable {
	transition: transform 0.2s;
	transition-timing-function: cubic-bezier(0.000, 1.555, 0.045, 1.650);
}

.picmenu_box.clickable a {
	display: block;
	height: 100%;
	width: 100%;
	padding: 0px 22px 0px 18px;
}

.picmenu_box.clickable .text{
	padding: 0px 0px 0px 0px;
	user-select: none;
}

.picmenu_box.clickable:hover {
	filter: brightness(1.2);
}
.picmenu_box.clickable:active {
	transform: translate(1px, 1px);
}
.picmenu_box.clickable:active .background {
	filter: brightness(0.9);
}

.picmenu_box.glow .text:hover {
	-webkit-animation: glow 1.1s ease-in-out infinite alternate;
	-moz-animation: glow 1.1s ease-in-out infinite alternate;
	animation: glow 1.1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
	from {
		text-shadow:
		0 0 calc(var(--glow-shrink) * (var(--glow-size) - 6 * var(--glow-step))) var(--glow-color-0),
		0 0 calc(var(--glow-shrink) * (var(--glow-size) - 5 * var(--glow-step))) var(--glow-color-1),
		0 0 calc(var(--glow-shrink) * (var(--glow-size) - 4 * var(--glow-step))) var(--glow-color-1),
		0 0 calc(var(--glow-shrink) * (var(--glow-size) - 3 * var(--glow-step))) var(--glow-color-1),
		0 0 calc(var(--glow-shrink) * (var(--glow-size) - 2 * var(--glow-step))) var(--glow-color-2),
		0 0 calc(var(--glow-size) - 1 * var(--glow-step)) var(--glow-color-2);
	}
	to {
		text-shadow: 
		0 0 calc(var(--glow-size) - 5 * var(--glow-step)) var(--glow-color-0),
		0 0 calc(var(--glow-size) - 4 * var(--glow-step)) var(--glow-color-1),
		0 0 calc(var(--glow-size) - 3 * var(--glow-step)) var(--glow-color-1),
		0 0 calc(var(--glow-size) - 2 * var(--glow-step)) var(--glow-color-2),
		0 0 calc(var(--glow-size) - 1 * var(--glow-step)) var(--glow-color-2),
		0 0 var(--glow-size) var(--glow-color-2);
		filter: brightness(1.05) contrast(1.05);
	}
}

/* Trying to fix/help an iOS-specific seam between texture DIVs */
@supports (-webkit-touch-callout: none) {
	.picmenu_box .background .left, .right {
		transform: scale(1.008, 1.0);
	}
}

/* Shrinking the PicmenuChapterNav template on devices with narrower resolutions */
@media (max-width: 1200px) {
	.picmenu_box.chapter {
		width: min-content !important;
	}
}
@media (max-width: 800px) {
	.picmenu_chapternav_row {
		flex-wrap: wrap;
		flex-direction: column !important;
		justify-content: center !important;
		align-content: center;
		align-items: center;
		margin: 0px 0px 10px 0px;
	}
	.picmenu_box.faded{
		display: none;
	}
}