/*	Style sheet for the Mile-High Murder Game website */

/*	----------------------------------------------------------------------------------------------

	Custom Properties (Variables)	

	----------------------------------------------------------------------------------------------	
*/

:root {
	--color-background-dark: rgb(5, 17, 26);
	--color-background-darker: rgb(3, 9, 17);
	--color-background-darkest: rgb(2, 5, 10);
	--color-background-dark-variation: rgb(5, 17, 20);
	--color-background-medium: rgb(8, 26, 32);
	--color-brand-bg: rgb(5, 17, 26);
	--color-brand-cyan: rgb(74, 128, 142);
	--color-brand-cyan-20: rgba(74, 128, 142, 0.2);	
	--color-brand-cyan-30: rgba(74, 128, 142, 0.3);
	--color-brand-cyan-50: rgba(74, 128, 142, 0.5);
	--color-brand-grey: rgb(156, 163, 175); /* a.k.a. text-gray-400 */
	--color-brand-red: rgb(192, 27, 27);
	--color-button-background: rgb(12, 22, 34);
	--color-button-background-hover: rgb(21, 35, 50);
	--color-button-border: rgb(26 43 60);
	--color-dark-blue: rgb(10, 30, 42);
	--color-light-grey: rgb(209, 213, 219); /* a.k.a. text-gray-300 */
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}


/*	-----------------------------------------------------------------------------------------------

	HTML Elements

*/

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Jura", sans-serif;
}

h1 {
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	text-align: center;
	margin: 0;
	margin-bottom: 2rem;
}

	@media (min-width: 768px) {
		
		h1 {
			font-size: 2.25rem;
			
		}
	}

html {
	/* font-size: 100%; /* Is this right? */
}


/*	----------------------------------------------------------------------------------------------
	
	Flexbox Classes

	----------------------------------------------------------------------------------------------
*/

.align-items-center {
	align-items: center;
}

.center-both-ways {
	justify-content: center;
	align-items: center;
}

.flex-child-with-fixed-height,
.flex-child-with-fixed-width {
	flex: none;
}

.flex-child-that-fills-available-height {
	flex: 1 0 0;
}

.flex-child-that-fills-available-width {
	flex: 1 0 0;
}

.flex-child-that-grows-as-needed {
	flex: 1 0 auto;
}

.flex-child-that-shrinks-as-needed {
	flex: 0 1 auto;
}

.flex-child-that-grows-or-shrinks-as-needed {
	flex: 1 1 auto;
}

.flex-parent-horizontal {
	display: flex;
	flex-direction: row;
	overflow-x: hidden;
}

.flex-parent-horizontal.on-wide-screens-only {
	display: block;
}

	@media screen and (min-width: 1200px) {

		.flex-parent-horizontal.on-wide-screens-only {
			display: flex;
		}		
	}

.flex-parent-vertical {
	display: flex;
	flex-direction: column;
	overflow-y: hidden;
}

.flex-parent-responsive {
	
	/*	Displays as flex-column on narrow screens, flex-row on wide screens */
	display: flex;
	flex-direction: column;
}
		
	@media screen and (min-width: 1200px) {

		.flex-parent-responsive {
			display: flex;
			flex-direction: row;
		}		
	}

.justify-content-center {
	justify-content: center;
}

.justify-content-flex-start {
	justify-content: flex-start;
}

.justify-content-space-between {
	justify-content: space-between;
}

.with-optional-wrapping {
	flex-wrap: wrap;
}

	
/*	-----------------------------------------------------------------------------------------------

	Home Page

*/

#home-page-content {
	filter: blur(0px); /* page content gets blurred when a modal window opens */
	transition: filter 0.4s ease;
	padding-top: 5rem;
}

#home-page-content.blurred {
	filter: blur(2px);
}

#home-page-startup-content {
	margin-top: -5rem; /* 	compensate for top padding of #home-page-content so that the binary
							rain starts from the very top of the screen, not 5rem down */
	height: 100vh;
	overflow: hidden;
	display: flex;
	position: relative; /* so Denver skyline and mountains can be absolutely positioned inside */
	flex-direction: column;
	/* border: 10px solid red; */
}

#home-page-main-content {
	color: var(--color-light-grey);
	font-size: 1.25rem;
}

#background-layer-for-binary-rain {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

#home-page-skull-container {
	flex: none;
	height: 35vh;
	margin-top: 15vh;
	text-align: center;
	opacity: 0;
	transform: scale(0.9);
	filter: blur(10px);
	animation-duration: 1.2s;
	animation-timing-function: cubic-bezier(0, 0, 0.2, 1); /* standard ease-out */
	animation-delay: 0.2s;
	animation-fill-mode: forwards; /* keeps the final animated state */
	animation-name: skullEntrance;
}

	@keyframes skullEntrance {
		
		to {
			opacity: 1;
			transform: scale(1);
			filter: blur(0px);
		}
	}

	@media screen and (min-width: 1200px) {
		
		#home-page-skull-container {
			height: 40vh;
		}
	}
	
#home-page-skull {
	max-height: 100%;
	max-width: 100%;
}

#invitation-to-enter-for-mobile {
	margin-top: 5vh;
	color: white;
	letter-spacing: 0.025em;
	line-height: 1.5;
	font-weight: 500;
	font-size: 20px;
	text-align: center;
	
	/*	This layer needs a higher z-index than the div #background-layer-for-binary-rain to
		prevent it from getting dimmed when the "rain" starts falling. */
	position: relative;
	z-index: 2;
}

	@media screen and (min-width: 1200px) {

		#invitation-to-enter-for-mobile {
			display: none;
		}

	}
	
#button-at-bottom {
	position: absolute;
	width: 100%;
	bottom: 5vh;
}

#invitation-to-enter-for-mobile p {
	margin: 0;
}
	
#scroll-down-to-book-summary-button {
	color: var(--color-brand-cyan);
	font-size: 48px;
	text-align: center;
	
	/*	This layer also needs a higher z-index than the div #background-layer-for-binary-rain. */
	position: relative;
	z-index: 2;
	display: none;
}

#book-cover-and-summary-anchor {
	position: relative;
	top: -4rem; /* compensate for height of #header (4rem), which has fixed positioning */
}


#book-cover-and-summary-of-novel {
	justify-content: center;
	align-items: center;
	padding: 5rem 0;
}

	@media screen and (min-width: 1200px) {
		
		#book-cover-and-summary-of-novel {
			gap: 4rem;
		}
		
	}

#book-cover-container {
	flex: none;
	max-width: 100%;
	padding: 0 2rem;
	margin-bottom: 1rem;
	position: relative; /* position light effect absolutely inside it */
}

#light-effect-around-book-cover {
	background-color: rgba(74, 128, 142, 0.2); /* brand cyan at 20% opacity */
	filter: blur(100px);
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	transform: matrix(1.5, 0, 0, 1.5, 0, 0);
}

#book-cover {
	box-shadow:
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(74, 128, 142, 0.3) 0px 0px 40px 0px;
	
	max-width: 100%;
	max-height: 60vh;
	object-fit: contain;
	border-radius: 6px;
	position: relative; /* only so we can assign a z-index */ 
	z-index: 2;
}
	@media screen and  (max-width: 768px) {
		
		#book-cover {
			height: 300px;
		}			
	}
	
	@media screen and (min-width: 1200px) {
	
		#book-cover {
			max-height: none;
		}
		
	}
	
#summary-of-novel {
	width: 30em;
	padding: 2rem;
	max-width: 100%;
	line-height: 1.66;
}

#reading-links {
	padding-top: 2rem;
	gap: 2em;
	justify-content: center;
	align-items: center;
}

#read-first-chapter-pseudo-button {
	font-size: 1rem;	
	background-color: rgb(12, 22, 34);
	border: 1px solid rgb(26, 43, 60);	
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s;
}

#read-first-chapter-pseudo-button:hover {
	background-color: rgb(21 35 50);
}

#read-first-chapter-pseudo-button a {
	display: block;
	padding: 0.75rem 2.5rem;
	color: white;
	text-decoration: none;
}

#want-to-read-the-whole-novel {
	font-size: 1rem;
	color: var(--color-brand-cyan);
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s;
}

#want-to-read-the-whole-novel:hover {
	color: white;
}

#denver-city-image-for-mobile {
	position: absolute;
	bottom: 0;
	width: 100%;
}

#denver-city-image-for-mobile img {
	width: 100%;
}

	@media screen and (min-width: 1200px) {

		#denver-city-image-for-mobile {
			display: none;
		}	
		
	}

#parallax-layers-for-desktop {
	display: none;
}

	@media screen and (min-width: 1200px) {

		#parallax-layers-for-desktop {
			display: block;
		}
		
		.parallax-layer {
			position: absolute;
			bottom: 0;
		}
		
		.parallax-layer img {
			width: 100%;
			pointer-events: none;
		}
	}


/*	-----------------------------------------------------------------------------------------------

	"Chapter One" page

*/

.pseudo-screen {
	margin: 2em 2.5em;
	color: var(--color-brand-cyan);
	font-family: var(--font-mono);
	font-weight: bold;
	text-align: left;
}

#reading-area {
	width: 40em;
	max-width: 100%;
	margin: 1rem auto;
	padding: 2em;
	text-align: justify;
	line-height: 1.6;
}

	@media (min-width: 768px) {

		#reading-area {
			font-size: 1.125rem;
		}		
	}
	
	@media (min-width: 1200px) {
		
		#reading-area {
			font-size: 1.25rem;
		}
	}


#reading-area p {
    text-indent: 2em;
}

#reading-area .pseudo-screen p {
	text-indent: 0;
}

/*	-----------------------------------------------------------------------------------------------

	"Puzzles" page

*/

#app-body {
	margin-top: 3rem;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	padding-top: 3rem;
	max-width: 42rem;
	height: calc(100vh - 3rem);
	overflow-y: auto;
	scrollbar-width: none;  /* hide vertical scrollbar but still allow scrolling*/
}

#app-header {
	position: fixed;
	width: 100%;
	height: 3rem;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;

	/*	Change this so that the background color only appears on scroll: */		
	background-color: rgba(0, 0, 0, 0.2);
}

#app-home-screen {
	padding-top: 8rem;
	max-width: 42rem;
	margin: 0 auto;
	font-family: var(--font-mono);
	letter-spacing: 0.1em;
}

#app-home-screen h2 {
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.2em;
	font-size: 1.5rem;
}

#app-home-screen-footer {
	margin-top: 2rem;
	border-top: 1px solid rgba(74, 128, 142, 0.2);
	padding-top: 1rem;
	color: var(--color-brand-grey);
	font-size: 0.75rem;
}

	@media screen and (min-width: 768px) {
		
		#app-home-screen-footer {
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: center;
		}
	}

#app-home-screen-footer > div {
	padding: 1em;
	display: flex;
	flex-direction: row;
	justify-content: center;
}

#app-in-full-screen-mode {
	width: 100%;
	height: 100vh;
	overflow-y: hidden;
	background-color: rgb(8, 26, 41);
	display: none; /* reveal with JavaScript */
}

#app-intro-screen,
#app-maze-game-screen,
#app-my-first-victim-screen {
	display: none;
}

#app-maze-game-screen h2 {
	font-family: var(--font-mono);
	font-size: 1.125rem;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.2em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid rgba(74, 128, 142, 0.2);
	margin-bottom: 1em;
}

#app-version {
	color: var(--color-brand-cyan);
	font-size: 0.75rem;
	text-align: center;
	margin-top: 1.5em;
}

#back-button-in-app-header {
	color: rgba(255, 255, 255, 0.7);
}

#back-button-in-app-header:hover {
	color: white;
}

#back-button-in-app-header svg {
	width: 1.5rem;
	height: 1.5rem;
}

#enter-app-button {
	color: var(--color-brand-cyan);
	font-family: var(--font-mono);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	background-color: rgba(2, 10, 16, 0.5);	
	border: 1px solid rgba(74, 128, 142, 0.3);
	padding: 1em 2em;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#enter-app-button:hover {
	background-color: rgba(74, 128, 142, 0.2);
	border: 1px solid rgba(74, 128, 142, 0.7);
	box-shadow:
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(74, 128, 142, 0.5) 0px 0px 30px 0px;
	color: white;
}

#enter-app-button-wrapper {
	position: absolute;
	bottom: 3rem;
	left: 0;
	width: 100%;	
}

#exit-app-button {
	color: hsl(218, 10%, 65%);
	transition: color 100ms ease-out;
	width: 1.75rem;
}

#exit-app-button:hover {
	color: white;
}

.indicator-light {
	width: 0.5em;
	height: 0.5em;
	background-color: var(--color-brand-cyan);
	border-radius: 50%;
	margin: 0 1em;
}

.indicator-light.lit {
	background-color: rgb(52, 211, 153); /* emerald */
	box-shadow: 0px 0px 1.5em 0.5em rgba(52, 211, 153, 0.3);
}

.labeled-indicator-light {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 1em;
}

#launch-maze-game {
	color: rgb(52, 211, 153); /* emerald */
}

#launch-my-first-victim-puzzle {
	color: var(--color-brand-grey);
}

#launch-my-first-victim-puzzle .puzzle-pseudo-button svg {
	/*	Make padlock icon smaller for now */	
	width: 2em;
	height: 2em;
}

#launch-maze-game .puzzle-pseudo-button {
	border: 1px solid rgb(52, 211, 153); /* emerald */
}

#login-info-in-app-home-screen-footer {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-top: 2em;
}

#logo-inside-phone {
	position: relative;
	transform: translateY(75%); /* top: 25%; */
	width: 90%;
	filter: drop-shadow(rgba(74, 128, 142, 0.6) 0px 0px 20px);
	transition: all 0.3s ease-out;
}

#logo-inside-phone.after-entering-app {
	transform: translateY(20%);
	width: 70%;
}

#logo-on-app-home-screen {
	width: 150px;
	filter: drop-shadow(rgba(74, 128, 142, 0.6) 0px 0px 20px);
}

	@media screen and (min-width: 640px) {
		
		#logo-on-app-home-screen {
			width: 200px;
		}
	}

.blue-terminal {
	padding: 0 2rem;
	color: var(--color-brand-cyan);
	font-family: var(--font-mono);
	font-size: 1.25rem;
	letter-spacing: 0.025em;
	line-height: 1.75em;	
}

#maze-game-instructions {
	padding: 0 2rem;
	color: var(--color-brand-cyan);
	font-family: var(--font-mono);
	font-size: 1.25rem;
	letter-spacing: 0.025em;
	line-height: 1.75em;
}

#maze-game-instructions h3 {
	color: var(--color-brand-grey);
	/* font-family: "Jura", sans-serif; */
	font-size: 1.75rem;
}

#maze-game-instructions-continue-button,
#maze-game-instructions-continue-button.custom,
#dismiss-maze-game-instructions-button,
#dismiss-maze-game-instructions-button.custom {
	color: var(--color-brand-grey);
	font-family: var(--font-mono);
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: all 0.3s ease;
	margin-top: 1em;
}

#maze-game-instructions-continue-button:hover {
	color: white;
}

#maze-game-instructions-navigation-controls {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 0;
}

.phone-content {
	padding: 15% 10% 12% 10%;
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: center;
}

.phone-glow {
	background-color: rgba(74, 128, 142, 0.2);
	border-radius: 50%;
	filter: blur(80px);
	transform: matrix(1, 0, 0, 1, -275, -500); /* see below */
	position: absolute;
	z-index: 1;
	width: 120%;
	height: 120%;
	top: 50%;
	left: 50%;
	/*	I don't fully understand the matrix measurements. I just fiddled with the last two numbers
		until the glow looked more or less centered around the phone. */
}

.phone-wrapper {
	width: 330px; /* 400px; */
	height: 693px; /* 840px; */
	margin-bottom: 2.5rem;
	border-radius: 13.25% / 6.31%;
	background-color: rgba(0, 0, 0, 0.7);
	background-image:
		url("images/phone-wrapper.svg"),
		repeating-linear-gradient(
			rgba(74, 128, 142, 0.08) 0px,
			rgba(74, 128, 142, 0.08) 1px,
			rgba(0, 0, 0, 0) 1px,
			rgba(0, 0, 0, 0) 5px
		);
	background-repeat: no-repeat;
	background-size: contain;
	box-shadow:
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(0, 4, 10, 0.8) 0px 0px 50px 0px;
	position: relative;
	z-index: 2;
}


.phone-wrapper.expanding {
	transform: translate(-50%, -50%) scale(1);
	animation: fillWindow 1.5s forwards ease-in-out;	
}

	@keyframes fillWindow {
		
	  0% {
		/* Start at regular size, centered */
		transform: translate(-50%, -50%) scale(1);
		border-radius: 8px; /* Optional: start with rounded corners */
	  }
	  
	  100% {
		/* Scale it up dramatically until it completely covers the viewport.
		   A scale factor of 15-20 ensures a 10vw box comfortably overflows all corners */
		transform: translate(-50%, -50%) scale(5);
		border-radius: 0%;  /* Snap to sharp edges to fill the screen cleanly */
	  }
	  
	}

.puzzle-launcher {
	flex: 0 0 7rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	position: relative;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.puzzle-launcher:hover {
	transform: translateY(-2px);
	cursor: pointer;
}

.puzzle-launcher:hover .puzzle-name {
	color: var(--color-brand-cyan);
}

#puzzle-launchers {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4rem;
	margin-top: 3rem;
}

.puzzle-name {
	font-size: 0.875rem;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: 0.1em;
	margin-top: 1em;
	color: white;
	font-weight: 700;
}

.puzzle-pseudo-button {
	width: 5rem;
	height: 5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: linear-gradient(to right bottom, rgb(6, 36, 36), rgb(2, 19, 21));
	border: 1px solid var(--color-brand-cyan);
	border-radius: 1rem;
	transition: all 0.25s ease;
}

.puzzle-pseudo-button:hover {
	box-shadow: 0 0 20px rgba(74, 128, 142, 0.6);
	border-color: #00f0c0;
	transform: matrix(1.05, 0, 0, 1.05, 0, 0);	
}

.puzzle-pseudo-button:hover svg {
	color: white;
}

.puzzle-pseudo-button svg {
	width: 3rem;
	height: 3rem;
}

#puzzles-intro {
	flex: none;
	font-size: 1.25rem;
	line-height: 1.625;
	width: 30em;
	max-width: 100%;
	padding: 3rem;
}

#puzzles-in-phone {
	flex: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 3rem 0;
	width: 30em;
	max-width: 100%;
	position: relative; /* position .phone-glow absolutely inside it */
	/* border: 5px solid green; */
}

#puzzles-main-content-area {	
	justify-content: center;
	align-items: center;
	/* border: 5px dashed yellow; */
}

	@media (min-width: 1200px) {
		
		#puzzles-main-content-area {
			gap: 10rem;
		}
	}
	
#username-in-app-header {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.7);
	margin-left: 1rem;
}


/*	-----------------------------------------------------------------------------------------------

	ReaderMap page

*/

.circle-on-readermap,
.dot-on-readermap {
	transition-property: all;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 300ms;
}

#readermap-close-panel-button {
	color: var(--color-brand-grey);
	cursor: pointer;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	padding: 0.5em;
	font-family: var(--font-mono); /* prevent override by button.custom style */
}

#readermap-close-panel-button:hover {
	color: white;
}

#readermap-container {
	position: relative;
	aspect-ratio: 16/9;
}

#readermap-explanatory-text {
	margin: 3em auto;
	max-width: 37em;
	font-size: 1.25rem;
	line-height: 1.7;
}

#readermap-hover-instructions {
	color: var(--color-brand-grey);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 0.75rem;
}

#readermap-legend {
	/*	This div needs some top and bottom padding. Without it, the glow of the buttons inside the
		legend will get cut off at top and bottom. */
	padding-top: 2.5rem;
	padding-bottom: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2em;
	font-family: var(--font-mono);
	font-size: 0.75rem;	
	color: var(--color-brand-grey);
	letter-spacing: 0.1em;
}

#readermap-legend > div {
	flex: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75em;
}

#readermap-loading-map-message {
	display: none;
}

#readermap-number-of-readers-in-clicked-state {
	color: var(--color-light-grey);
	letter-spacing: 0.1em;
	font-size: 0.875rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--color-brand-cyan-30);
	margin-bottom: 1rem;
}

#readermap-outer-container {
	border: 1px solid var(--color-brand-cyan-20);
	background-color: var(--color-background-dark-variation);
	margin-bottom: 4rem;
}

#readermap-state-name {
	color: var(--color-brand-cyan);
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 0;
}

#readermap-state-panel {
	position: absolute;
	top: -1.5rem;
	right: 1rem;
	width: 15rem;
	background-color: var(--color-background-dark-variation);
	border: 1px solid var(--color-brand-cyan-50);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(74, 128, 142, 0.5) 0px 0px 15px 0px;
	backdrop-filter: blur(4px);
	padding: 1.25rem;
	font-family: var(--font-mono);
	text-transform: uppercase;
	display: none;
}

#readermap-state-panel.closing {
	animation-name: shrinkAway;
	animation-duration: 0.3s;	
}

#readermap-stats {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

	@media (min-width: 768px) {

		#readermap-stats {
			grid-template-columns: repeat(4, minmax(0, 1fr));
		}
	}

#readermap-svg {
	width: 100%;
	height: 100%;
}

.readermap-symbol {
	border-radius: 50%;
	border: 2px solid rgb(0, 203, 188);
}

.readermap-symbol.few-readers {
	background-color: rgba(0, 203, 188, 0.2);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 203, 188, 0.3) 0px 0px 6px 0px;
	width: 0.5rem;
	height: 0.5rem;
}

.readermap-symbol.many-readers.inner {
	background-color: rgb(0, 203, 188);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 203, 188, 0.3) 0px 0px 10px 0px;	
	width: 0.375rem;
	height: 0.375rem;
}

.readermap-symbol.many-readers.outer {
	background-color: rgba(0, 203, 188, 0.2);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 203, 188, 0.3) 0px 0px 10px 0px;	
	width: 1.5rem;
	height: 1.5rem;
	flex: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;	
}

.readermap-symbol.some-readers {
	background-color: rgba(0, 203, 188, 0.2);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 203, 188, 0.3) 0px 0px 8px 0px;
	width: 1rem;
	height: 1rem;
}

.readermap-symbol.story-location {
	background-color: rgba(255, 65, 54, 0.8);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(255, 65, 54, 0.5) 0px 0px 8px 0px;
	border: 2px solid rgb(255, 65, 54);
	width: 0.75rem;
	height: 0.75rem;
}

#readermap-tooltip {
	position: absolute;
	pointer-events: none;
	border: 1px solid var(--color-brand-cyan-50);
	background-color: var(--color-background-medium);
	box-shadow:	rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(0, 0, 0, 0) 0px 0px 0px 0px,
				rgba(74, 128, 142, 0.3) 0px 0px 10px 0px;
	padding: 0.5em 1em;
	opacity: 0; /* This will be changed by a script I didn't write. */
}

#readers-by-state {
	margin-bottom: 4rem;
}

#readers-by-state h2 {
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 1.5rem;	
	margin-bottom: 2rem;
}

#sign-up-invitation-below-readermap {
	text-align: center;
	margin-top: 4rem;
	margin-bottom: 6rem;
}

#sign-up-invitation-below-readermap h2 {
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 1.875rem;
}

.state-readout {
	padding: 1em;
	justify-content: space-between;
	background-color: var(--color-background-medium);
	color: var(--color-light-grey);
	border: 1px solid var(--color-brand-cyan-20);
	font-family: var(--font-mono);
	font-weight: 700;
}

.state-readout > span:last-child {
	color: var(--color-brand-cyan);
}

#total-number-of-readers {
	color: var(--color-brand-cyan);
	font-size: 1.5rem;
	font-weight: bold;
	margin-right: 0.75rem;
}

#total-number-of-readers-box {
	flex: none;
	align-items: center;
	background-color: var(--color-background-medium);
	color: var(--color-light-grey);
	border: 1px solid var(--color-brand-cyan-30);
	padding: 1rem 1.5rem;
	margin-bottom: 3rem;
	text-transform: uppercase;
	font-family: var(--font-mono);
	font-size: 0.875rem;
}

#total-number-of-readers-label {
	letter-spacing: 0.1em;
}


/*	-----------------------------------------------------------------------------------------------

	Header

*/

#header {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4rem;
	filter: blur(0px); /* header gets blurred when a modal window opens */
	transition: filter 0.4s ease;	
	z-index: 10;
}

#header.blurred {
	filter: blur(2px);
}

	
#header.opaque {
	background-color: hsl(214, 70%, 4%);
}

#logo-in-header {
	margin: 0 1rem;
	justify-content: center;
	align-items: center;
}

	@media screen and (min-width: 1200px) {
		
		#logo-in-header {
			justify-content: flex-start;
		}
		
	}
	
#logo-in-header h1 {
	width: 375px; /* convert to rems? */
	margin: 0;
	padding-top: 0.4rem;
	padding-bottom: 0.5rem;
}

#logo-in-header h1 img {
	max-width: 100%;
}


/*	-----------------------------------------------------------------------------------------------

	Footer

*/

#footer {
	background-color: var(--color-background-darkest);
	font-family: var(--font-mono);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding-top: 5rem;
	padding-bottom: 2rem;
	position: relative;
	z-index: 10; /* keeps phone glow on "Puzzles" page from spilling into the footer */
}

#footer h2 {
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: bold;
	letter-spacing: 0.1em;
}

#footer-tagline {
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.625;
	width: 30rem;
	max-width: calc(100% - 2rem);
	margin: 0 auto;
	padding-top: 2rem;
	color: var(--color-brand-grey);
}

#logo-in-footer {	
	align-items: center;
}

#logo-in-footer {
	width: 30rem;
	max-width: calc(100% - 2rem);
	margin: 0 auto;	
}

#logo-in-footer img.skull {
	width: 4rem;	
	margin-bottom: 2rem;
	/*filter: drop-shadow(rgba(74, 128, 142, 0.3) 0px 0px 15px); */
}

#logo-in-footer img.book-title {
	width: 100%;
}

#footer-link-groups {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	overflow-x: hidden;
	justify-content: center;
	align-items: flex-start;
	gap: 15rem;
	margin-top: 5rem;
}

.footer-link-group ul {
	list-style-type: none;
	margin: 0;
	padding-left: 0;
	font-family: var(--font-mono);
	font-size: 0.875rem;
}

.footer-link-group ul li a {
	display: block; /* to extend clickable area above and below text */
	padding: 0.75rem 0;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.15s ease-out;
}

.footer-link-group ul li a,
.footer-link-group ul li a:visited {
	color: var(--color-brand-grey);
}	

.footer-link-group ul li a:hover {
	color: white;
}

#social-media-links {
	padding-top: 0.75rem;
	gap: 1.5rem;
}

#social-media-links > a {
	display: block;
	flex: 0 0 1.5rem;
}

#social-media-links > a,
#social-media-links > a:visited {
	color: var(--color-brand-grey);
}

#social-media-links > a:hover {
	color: white;
}

#copyright {
	margin-top: 4rem;
	text-align: center;
	font-family: var(--font-mono);
	color: rgb(107, 114, 128);
	font-size: 0.875rem;
}


/*	-----------------------------------------------------------------------------------------------

	Hamburger Button

*/

#hamburger-button {
	color: var(--color-brand-cyan);
	margin-left: 1rem;
	width: 2.25rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

	@media screen and (min-width: 1200px) {
		
		#hamburger-button {
			display: none;
		}
		
	}

#hamburger-button svg {
	width: 100%;
	padding: 0.2rem;
	border-radius: 4px;
	transition: all 100ms ease-out;
}

#hamburger-button svg:hover {
	color: white;
	background-color: rgb(255, 255, 255, 0.05);
	cursor: pointer;
}

/*	-----------------------------------------------------------------------------------------------

	Mobile navigation menu
	
*/

#close-mobile-menu-button {
	color: hsl(218, 10%, 65%);
	transition: color 100ms ease-out;
	width: 1.75rem;
}

#close-mobile-menu-button:hover {
	color: white;
}

#mobile-menu-header-bar {
	padding: 1rem;
	justify-content: space-between;
	align-items: center;
	background-color: #06181f;
	font-size: 0.9rem;
	letter-spacing: 0.2em;
}

#mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	background-color: #02060c;
	width: 20rem;
	max-width: 100%;
	z-index: 101;	
	border-right: 1px solid rgb(26, 50, 74, 0.6); /* rgba(26, 50, 74, 0.3); /* hsl(210, 48%, 20%); */
	transform: translateX(-20rem);
	transition: transform 0.25s ease-out;
}

#mobile-menu-overlay.active {
	transform: translateX(0);
}

#mobile-navigation-menu {
	font-family: var(--font-mono);
	text-transform: uppercase;
}

#mobile-navigation-menu ul {
	list-style-type: ">";
}

#mobile-navigation-menu ul li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mobile-navigation-menu ul li a {
	display: block;
	padding: 1.25rem 1rem 1.2rem 1rem;
}


/*	-----------------------------------------------------------------------------------------------

	Desktop navigation menu

*/

#desktop-navigation-menu {
	display: none; /* in mobile view */
}

	@media screen and (min-width: 1200px) {

		#desktop-navigation-menu {
			display: block;
			/* font-size: 1.1rem; */
			/* text-transform: uppercase; */
			font-family: var(--font-mono);
		}
		
		#desktop-navigation-menu nav {
			height: 100%; /* for vertical centering of menu items */
		}
		
		#desktop-navigation-menu nav ul {
			list-style: none;
			margin: 0;
			padding-left: 0;
			display: flex;
			flex-direction: row;
			justify-content: flex-end;
			align-items: center;
			height: 100%; /* for vertical centering of menu items */
		}

		#desktop-navigation-menu nav ul a {
			margin: 0 0.33em;
			padding: 1em;
		}
			
	}


/*	-----------------------------------------------------------------------------------------------

	Mobile and desktop navigation menus: styling common to both

*/

.site-navigation-menu {

}

.site-navigation-menu ul li a,
.site-navigation-menu ul li a:visited {
	display: block; /* to extend clickable area above and below text */
	color: white;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.15s ease-out;
}

.site-navigation-menu ul a:hover {
	opacity: 1.0;
	text-shadow: 0 0 20px white, 0 0 25px var(--color-brand-cyan);
}

.site-navigation-menu ul a span {
	border-bottom: 3px solid transparent;
	padding: 0.25em 0;
	transition: border-color 0.15s ease-out;
}

.site-navigation-menu ul a:hover span {
	opacity: 1;
	border-bottom: 3px solid var(--color-brand-cyan);
}


/*	-----------------------------------------------------------------------------------------------

	Modal Windows

*/

#modal-windows {
	display: none;
}

#modal-window-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow-y: hidden;
	z-index: 101;
	/*	also see below, under "Animations" */
}

#modal-window-container > * {
	margin: 3rem;
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	overflow-y: hidden;
	/* max-width: 800px; */
	animation-name: expand;
	animation-duration: 0.5s;
}

	@keyframes expand {
		
		from {
			transform: scale(0);
		}
		
		to {
			transform: scale(1.0);
		}
		
	}

#modal-window-container > *.closing {
	animation-name: shrinkAway;
	animation-duration: 0.3s;
}

	@keyframes shrinkAway {
		
		from {
			transform: scale(1.0);
		}
		
		to {
			transform: scale(0);
		}
		
	}

.modal-window-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	background-color: #061C23;
}

/*	-----------------------------------------------------------------------------------------------

	Modal Window: Maze Game -- You have been caught -- Restart

*/

/*	Most styles in this section are by Yavin. */

.maze-caught-kicker {
  margin-bottom: 8px;
  color: rgba(255, 107, 128, 0.78);
  font: 700 8px/1.3 'JetBrains Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.maze-caught-mark {
	width: 38px;
	height: 38px;
	margin: 0 auto 12px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 107, 128, 0.8);
	border-radius: 50%;
	color: #ff6b80;
	font: 700 24px/1 'JetBrains Mono', monospace;
	box-shadow: 0 0 18px rgba(255, 42, 75, 0.35);
}

#maze-game-you-have-been-caught-modal-window {
	background-color: rgba(2, 5, 8, 0.92);
	box-sizing: border-box;
	width: min(calc(100% - 32px), 360px);
	max-width: 360px;
	max-height: calc(100% - 32px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	border: 2px solid rgba(255, 51, 102, 0.85);
	border-radius: 3px;
	background:
		linear-gradient(rgba(255, 51, 102, 0.05), rgba(255, 51, 102, 0.05)),
		repeating-linear-gradient(0deg, rgba(255, 51, 102, 0.04) 0 1px, transparent 1px 8px),
		#080e14;
	box-shadow:
		0 0 0 5px rgba(255, 51, 102, 0.08),
		0 0 30px rgba(255, 51, 102, 0.28),
		inset 0 0 28px rgba(0, 0, 0, 0.85);
	font-family: var(--font-mono);
}

#maze-game-you-have-been-caught-modal-window h2 {
	color: rgb(248, 113, 113);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 2rem;
}

#maze-game-you-have-been-caught-modal-window p {
	font-size: 0.875rem;
	line-height: 1.25rem;
	margin: 0;
	color: rgb(209, 213, 219)
}

#restart-chase-after-player-death-button {
	width: 100%;
	color: rgb(8, 14, 20);
	background-color: #ef4444e6;
	margin-top: 2rem;
	padding: 0.75rem 0;
	border-radius: 0.125rem;
	transition-duration: .15s;
	transition-property: color,background-color,border-color,text-decoration-color,fill,stroke;
	transition-timing-function: cubic-bezier(.4,0,.2,1);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 700;
	font-family: var(--font-mono);
}

#restart-chase-after-player-death-button:hover {
	background-color: rgb(248, 113, 113);
}


/*	-----------------------------------------------------------------------------------------------

	Modal Window: Sign-up Form

*/


#dialog-buttons-for-mobile-signup-step-1 {
	justify-content: center;
	align-items: center;
}

#dialog-buttons-for-mobile-signup-step-1 button {
	font-weight: 700;
	padding: 0.5em 1em;
	margin: 0.25em 0;
	letter-spacing: 0.1em;
}

#dialog-buttons-for-mobile-signup-step-1 .close-modal-window-button {
	color: var(--color-brand-grey);
	font-size: 1.125rem;
}

#dialog-buttons-for-mobile-signup-step-1 .close-modal-window-button:hover {
	color: var(--color-brand-cyan);
}

#dialog-buttons-for-mobile-signup-step-1 #continue-to-sign-up-button {
	font-size: 1.25rem;
	color: white;
}

#dialog-buttons-for-mobile-signup-step-1 #continue-to-sign-up-button:hover {
	color: var(--color-brand-cyan);
}

#email-usage-container {
	position: relative; /* position pop-up absolutely inside it */
}

#how-will-my-email-address-be-used {
	display: none;
	position: absolute;
	left: -1rem;
	bottom: 3rem;
	width: 25rem;
	max-width: 100%;
	padding: 0.5rem 1.5rem;
	background-color: var(--color-background-darker);
	border: 1px solid var(--color-brand-cyan-30);
	border-radius: 1rem;
	z-index: 4;
}

.invalid-input-message {
	display: none;
	font-size: 1rem;
	color: #FF6B6B;
	margin-top: -0.5em;
}

#matching-country-names .country-suggestion {
	display: flex;
	flex-direction: row;
	padding: 0.5rem 0.75rem;
	user-select: none;
}

#matching-country-names:not(.under-keyboard-control) .country-suggestion:hover,
#matching-country-names .country-suggestion.highlighted {
	background-color: #1967D2;
	color: white;
}

#matching-country-names .country-suggestion .country-flag {
	flex: 0 0 2rem;
	margin-right: 0.75rem;
}

#matching-country-names .country-suggestion .country-flag img {
	max-width: 100%;
	box-shadow: 0 0 0.25em #999;
}

#matching-country-names .country-suggestion .country-name {
	flex: 1 1 auto;
}

#matching-country-names .no-matches-found,
#matching-country-names .start-typing-prompt {
	font-style: italic;
	padding: 1rem 0.75rem;
}

#matching-country-names .start-typing-prompt {
	display: none;
}

#show-info-on-email-address-usage {
	display: block;
	margin-left: 1em;
	text-decoration: underline;
	cursor: pointer;
}

#sign-up-fields {
	max-width: 30rem;
	flex: none;
	justify-self: center;
	font-family: "Jura", sans-serif;
	margin: 2rem;
	display: none; /* will be shown on mobile devices when user clicks "I'm in" */
}

	@media screen and (min-width: 1200px) {

		#sign-up-fields {
			display: block;
			width: 25rem;
			margin: 1rem 1rem 0 3rem;		
		}
	}

#sign-up-fields #city-and-state-fields,
#sign-up-fields #first-and-last-name-fields {
	display: block;
}

	@media (min-width: 650px) {
		
		#sign-up-fields #city-and-state-fields,
		#sign-up-fields #first-and-last-name-fields {
			display: flex;
			flex-direction: row;
			overflow-x: hidden;
		}
		
		#sign-up-fields #city-and-state-fields #city {
			width: 12em;
			margin-right: 0.5em;
		}

		#sign-up-fields #first-and-last-name-fields #first-name {
			width: calc(100% - 0.5em);
		}
	}

#sign-up-fields #country {
	padding-top: 1.7rem;
	padding-left: 3.25rem;
}

#sign-up-fields #flag-of-chosen-country {
	position: absolute;
	top: 3rem;
	left: 0.75rem;
	width: 2rem;
	height: 1.25rem;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

#sign-up-fields #flag-of-chosen-country img {
	box-shadow: 0 0 0.25em #999;
	max-width: calc(100% - 0.25em); /* don't cut off box shadow */
	max-height: calc(100% - 0.25em); /* ditto */
}

#sign-up-fields #flag-of-chosen-country.user-is-typing {
	/*	Un-comment the style below if you want a light-grey rectangle to appear in place of a flag
		while the user is typing. */
	/* background-color: #CCC; */
}

#sign-up-fields #flag-of-chosen-country.user-is-typing img {
	display: none;
}

#sign-up-fields .labeled-field {
	position: relative; /* so that the label can be absolutely positioned inside it */
}

#sign-up-fields .labeled-field :is(input[type=text], input[type=email], select) {
	width: 100%;
	margin-top: 1rem;
	margin-bottom: 1rem;
	font-size: 1.3rem;
	padding-top: 1.5rem;
	padding-bottom: 0.4rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	color: #333; /* or #0C3441 ? */
}

#sign-up-fields .labeled-field :is(input[type=text], input[type=email], select).invalid {
	border: 0.15em solid #FF6B6B;
	box-shadow: 0 0 0 3px rgba(255,107,107,.18) !important;
	animation: shake .3s ease;
}

	/*	"Shake" animation from Yavin's script */
	@keyframes shake {
		0%,100% {transform:translateX(0)}
		20% {transform: translateX(-5px)}
		40% {transform: translateX(5px)}
		60% {transform: translateX(-4px)}
		80% {transform: translateX(3px)}
	}
	
#sign-up-fields .labeled-field label {
	font-family: "Jura", sans-serif;
	font-size: 0.9rem;
	color: rgb(107, 114, 128); /* NOT SURE ABOUT THIS! */
	position: absolute;
	margin-top: 1rem;
	padding-top: 0.5rem;
	padding-left: 0.75rem;
	font-weight: bold;
	transition: all 0.2s;
}

#sign-up-fields .labeled-field:has(input:focus) label,
#sign-up-fields .labeled-field:has(select:focus) label {
	font-size: 1rem;
	color: #0C3441;
}

#sign-up-fields select {
	padding-top: 0.5rem;
}

#sign-up-fields select option {
	font-size: 1rem;
}

#sign-up-fields #matching-country-names {
	display: none;
	position: absolute;
	margin-top: -1rem;
	max-height: 13rem;
	width: 100%;
	background-color: white; /* #EEE; */
	color: black;
	font-size: 1.3rem;
	overflow-y: auto;
	z-index: 3;
	border: 1px solid black;
	border-top: none;
}

#sign-up-modal-window {
	font-family: "Share Tech Mono", monospace;
	border: 2px solid white;
	background-color: var(--color-dark-blue);
	box-shadow: 0 4px 44px #91CBDF;
}

#sign-up-modal-window a {
	color: #91CBDF;
}
	
#sign-up-modal-window .modal-window-header .close-modal-window-button {
	color: var(--color-light-grey);
	margin-left: 1rem;
	margin-right: -0.5rem;
}

#sign-up-modal-window .modal-window-header .close-modal-window-button:hover {
	color: white;
}

#sign-up-modal-window .modal-window-header .close-modal-window-button svg {
	width: 2.25rem;
	height: 2.25rem;
}

#sign-up-modal-window .modal-window-body {
	color: white;
	overflow-y: auto;
	/* removed padding so it wouldn't cut off the glow of the "Submit" button */
}

	@media (min-width: 1200px) {

		#sign-up-modal-window .modal-window-body {
			padding-bottom: 3rem;
		}
	}

#sign-up-modal-window .modal-window-header {
	background-color: var(--color-background-medium);
	color: var(--color-light-grey);
	border-bottom: 1px solid var(--color-brand-cyan-20);
	font-size: 1.5rem;
	padding: 0.5em 1em;
}

#sign-up-supporting-text-for-narrow-screens {
	flex: 1 1 0;
	font-size: 1.1rem;
	line-height: 1.75;
	max-width: 37rem;
	margin: 0 2rem 2rem 2rem;
	padding-top: 1.5rem;
}

	@media screen and (min-width: 1200px) {

		#sign-up-supporting-text-for-narrow-screens {
			display: none;
		}
	}

#sign-up-supporting-text-for-wide-screens {
	font-size: 1.1rem;
	line-height: 1.75;
	width: 30rem;
	margin-top: 2rem;
	margin-left: 2rem;
	margin-right: 4rem;
	border-left: 1px solid var(--color-brand-cyan-50);
	padding-left: 2rem;
	display: none;
}

	@media (min-width: 1200px) {

		#sign-up-supporting-text-for-wide-screens {
			display: block;
		}
	}


#sign-up-supporting-text-for-narrow-screens ul,
#sign-up-supporting-text-for-wide-screens ul {
	padding-left: 1.5em;
}

#sign-up-supporting-text-for-narrow-screens li,
#sign-up-supporting-text-for-wide-screens li {
	padding-left: 1em;
	margin-bottom: 1em;
}

#sign-up-supporting-text-for-narrow-screens li::marker,
#sign-up-supporting-text-for-wide-screens li::marker {
	content: ">";
}

#submit-reader-info-button {
	width: 100%;
	font-size: 1.25rem;
	margin-top: 1em;
	margin-bottom: 2em;
	padding-top: 0.75em;
	padding-bottom: 0.75em;	
	background-color: transparent;
	border: 1px solid white;
	color: white;
}

#submit-reader-info-button:hover {
	box-shadow: 0 4px 44px #91CBDF;
}

#submit-reader-info-button:active span {
	position: relative;
	top: -0.1em;
	left: 0.1em;
}



/*	-----------------------------------------------------------------------------------------------

	Miscellaneous IDs and Classes

*/

.absolutely-positioned {
	position: absolute;
}

.align-self-center {
	align-self: center;
}

.alt-logo {
	display: none;
}

.animate-deep-pulse {	
	animation: deep-pulse 0.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-deep-slow-pulse {	
	animation: deep-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

	@keyframes deep-pulse {
		
		0%, 100% {
			opacity: 1;
		}
		
		50% {
			opacity: 0.1;
		}
	}
	
.animate-pulse {
	animation: pulse 0.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slow-pulse {
	animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

	@keyframes pulse {
	  0%, 100% {
		opacity: 1;
	  }
	  50% {
		opacity: .5;
	  }
	}

button.custom {
	font-family: "Jura", sans-serif;
	
	/*	Override browser defaults for buttons. See:
		https://css-tricks.com/overriding-default-button-styles/
	*/
	display: inline-block;
	background-color: transparent;	
	border: none;
	padding: 0;
	margin: 0;
	text-decoration: none;
	font-size: 1rem;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
}

button.dark-mode,
button.custom.dark-mode {
	background-color: var(--color-button-background);
	border: 1px solid var(--color-button-border);
	color: white;
	padding: 1em 2.5em;
	font-family: var(--font-mono);
}

button.dark-mode:hover {
	background-color: var(--color-button-background-hover);
}

.container-for-columns-of-equal-width {
	display: flex;
	flex-direction: row;
	overflow-x: hidden;
}

.container-for-columns-of-equal-width > * {
	flex: 1 1 0;
}

.center-contents-vertically-and-horizontally {
	display: flex;
	justify-content: center;
	align-items: center;
}

.centered {
	text-align: center;
}

.centered-container-with-64rem-max-width {
	max-width: 64rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.cyan-text {
	color: var(--color-brand-cyan);
}

.dark-background {
	background-color: var(--color-background-dark);
}

.darker-background {
	background-color: var(--color-background-darker);
}

.darkest-background {
	background-color: var(--color-background-darkest);	
}

.dark-minimalist-button {
	font-family: var(--font-mono);
	padding: 0.25em 1em;
	border: 1px solid var(--color-brand-cyan-50);
	background-color: rgb(12, 22, 34);
	color: var(--color-brand-grey);
	transition: all 0.3s ease;
}

.dark-minimalist-button:hover {
	background-color: var(--color-brand-cyan-20);
	color: white;
}

#details-on-novel,
#teaser {
	display: none;
}

.dialog-buttons {
	margin-top: 25px;
	text-align: right;
}

.emerald-dot {
	width: 0.5em;
	height: 0.5em;
	background-color: rgb(52, 211, 153); /* emerald */
	border-radius: 50%;
	margin: 0 1em;
}

#error-message-modal-window,
#modal-window-container #error-message-modal-window {
	max-width: 800px;
	background-color: white;
	color: black;
	padding: 2rem;
	border-radius: 1rem;
	overflow-y: auto;
}

.hidden {
	visibility: hidden;
}

#information-circle {
	flex: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	border: 2px solid white;
	border-radius: 50%;
	width: 1.5em;
	height: 1.5em;
	font-weight: bold;
	cursor: pointer;
}

.navigation-button,
.navigation-button.custom {
	font-family: var(--font-mono);
	font-size: 2em;
	padding: 0.25em 0.5em;
	color: var(--color-brand-grey);
}

.navigation-button svg {
	width: 2rem;
	height: 2rem;
}

.navigation-button:hover {
	color: white;
}

.overflow-hidden {
	overflow: hidden;
}

.padding-medium {
	padding: 1rem;
}

	@media (min-width: 640px) {
		
		.padding-medium {
			padding: 2rem;
		}
	}

.pointer-events-none {
	pointer-events: none;
}

.progress-indicators {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;	
}

.progress-indicators > a {
	display: block;
	padding: 1em 0;
	cursor: pointer;
}

.progress-indicators > a.current {
	cursor: inherit;
}

.progress-readout {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.progress-readout > * {
	flex: none;
}

.progress-unit {
	width: 2em;
	height: 0.375em;
	margin: 0 0.25em;
	border-radius: .5em;
	background-color: var(--color-brand-cyan-50);
}

.progress-unit.lit {
	background-color: var(--color-brand-cyan);
}

.right-aligned {
	text-align: right;
}

#screen-dimmer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: black;
	visibility: hidden;
	opacity: 0;
	transition: all 0.4s ease;
	z-index: 100;
}

#screen-dimmer.active {
	visibility: visible;
	opacity: 0.7;
}

.show-with-animation {
	transition:	opacity 700ms ease-out,
				translate 700ms cubic-bezier(0, 0, 0.2, 1);
	opacity: 0;
	translate: 0 8px;
}

.shown {
	opacity: 1;
	translate: 0 0;
}

.simulated-cursor {
	margin-left: 2px;
	border-left: 2px solid var(--color-brand-cyan);
	animation: pulse 0.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
	position: absolute; /* so it won't throw off centering when it disappears at end of animation */
}

	@keyframes pulse {
		0%, 100% {
			opacity: 1;
		}
		50%	{
			opacity: 0.5;
		}
	}

.start-below-header {
	padding-top: 7rem;
}

#temporary-local-storage-dump {
	width: 1000px;
	height: 500px;
}

#temporary-skull-container {
	text-align: center;
	background-color: white;
	padding: 20px 0;
}

#temporary-skull-container img {
	width: 150px;
}

.thin-gradient-divider {
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(74, 128, 142, 0.5), rgba(0, 0, 0, 0));
	height: 1px;
}

.type-me {
	display: none; /* Spans with this class will be revealed with a JS-driven typing animation. */
}
