/* ######### OVERALL CSS STYLING ############################## */

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	background-color: #000;
}

/* Scrollbar Width */
::-webkit-scrollbar {
	width: 10px;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
	background: #000;
}

/* Scrollbar Thumb / Handle */
::-webkit-scrollbar-thumb {
	background: #888;
	border:.1em solid #000;
	border-radius: 100vw;
}

/* Handle on Hover */
::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* ######### LEVEL ONE: LOGO & NAVIGATION BAR ################### */

header {
	padding: 0 20px;
	background-color: #1F2022;
	height: 50px;
	display: flex;
	justify-content: space-between; /* CRUCIAL: Distributes items evenly across the screen. First item is flush with the start, and the last is flush with the end. */ 
}

header a {
	text-decoration: none;
}

#logo {
	display: flex;
	align-items: center;
}

/* Site Logo Image */
#logo a img {
	width: 200px;
	align-items: center;
}

/* Desktop (Non-Mobile) Navigation Menu */

ul.navbar-menu {
	list-style: none;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

ul.navbar-menu a {
	color: #FFF;
	font-weight: bold;
	font-family: sans-serif;
}

li.navbarElement, li.navbarSocial {
	padding: 5px;
	margin-left: 10px;
}

li.navbarElement:hover {
	transform: scale(1.1);
	transition: 0.1s;
}

li.navbarSocial:hover {
	transform: scale(1.3);
	transition: 0.1s;
}

li.navbarElement a:hover {
	color: crimson;
}

/* Mobile Navigation Menu */

#mobile-menu-block {
	margin: auto 0;
	display: none;
	cursor: pointer;
}

/* Class That Prevents Highlight Around Element */
.noselect {
	-webkit-user-select: none; /* Safari */
	-moz-user-select: none; /* Older versions of Firefox */
	-ms-user-select: none; /* Internet Explorer / Edge */
	user-select: none; /* Chrome, Edge, Opera, Firefox */
}

#dropdownIcon a {
	text-decoration: none;
	color: white;
	font-size: 35px;
	font-weight: bold;
}

.open .mobile-menu {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

ul.mobile-menu {
	display: none;
	background-color: #1F2022;
	position: absolute;
	top: 50px;
	left: 0;
	height: fit-content;
	width: 100%;
	padding: 0 20px;
	list-style: none;
	z-index: 1; /* VERY IMPORTANT: Ensures mobile dropdown is on top. */
}

/* Mobile Menu Link Text */
ul.mobile-menu a {
	font-size: 18px;
	color: white;
	font-weight: bold;
	font-family: sans-serif;
}

/* Mobile Menu Spacing */
li.mobileElement, li.mobileSocial {
	padding: 5px;
	width: 100%;
}

li.mobileElement:hover {
	background-color: crimson;
}

li.mobileSocial:hover {
	background-color: crimson;
}

/* ######### LEVEL TWO: PANEL & IMAGE CONTENT ###################### */

.panelImage {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	height: 65%;
	width: 65%;
}

/* ######### LEVEL THREE: BACK ARROW, TEXT BOX, & FORTH ARROW ###### */

.backArrow {
	text-align: right;
}

#backButton img {
	height: 65px;
	width: 65px;
	margin-right: 5px;
}

#backButton img:hover {
	transform: scale(1.2);
	transition: 0.3s;
}

.forthArrow {
	text-align: left;
}

#forthButton img {
	height: 65px;
	width: 65px;
	margin-left:5px;
}

#forthButton img:hover {
	transform: scale(1.2);
	transition: 0.3s;
}

/* Styles the invisible outer border of the NaviPanel. The Nav buttons appear inside it. */
.textBoxEdge {
	padding-top: 6px;
	margin: auto;
	/* ##### IMPORTANT: Sets the MAX WIDTH of the Navipanel ##### */
	max-width: 800px;
}

/* This table exists to create the border for the text box without interfering with the dialog within. */
.textBoxOuter {
	min-width: 500px; /* Ensures Text Box has a minimum width. */
	padding: 8px;
	margin-right: auto;
	margin-left: auto;
	border-radius: 5px;
	border color: rgb(200, 200, 200); /* Balanced grey. */
/*	border-width: 3px;*/
	text-align: center;
	background-color: #FFF;
}

/* Styles the inner table, with either contains just prose, the interlocutor names + dialog, or both. */
.textBoxInner {
	min-width: 500px; /* Ensures Text Box has a minimum width. */
	margin-right: auto;
	margin-left: auto;
	background-color: #FFF;
	/*border-collapse: collapse;*/
}

/* Styles the space around the Interlocutor Names. */
.interlocutorOneCell, .interlocutorTwoCell {
	border-bottom: 1.1pt solid crimson;
}

.dialogCell {
	word-wrap: break-word;
}

/* Styles Logos Incorporated into the NaviPanel */
.logoDrop {
	width: 700px;
}

/* ############### Block Progress ############### */
#pageCount {
	display: flex;
	justify-content: center;
	align-items: center;
}

#currentBlock {
	font-family: sans-serif;
	font-size: 16px;
	color: #999;
}

.pageCount p, #endBlock {
	font-family: sans-serif;
	font-size: 16px;
	color: lightgrey;
	align-items: center;
}

/* ############### Text Styling ############### */
p.proseText {
	font-family: Georgia;
	font-size: 25px;
	text-align: center;
	margin-top: 6px;
	margin-right: 6px;
	margin-left: 6px;
	margin-bottom: 6px;
}

p.interlocutorName {
	font-family: sans-serif;
	color: crimson;
	font-size: 20px;
	text-align: center;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 3px;
	margin-bottom: 0px;
	position: static;
}

p.dialogText {
	font-family: Georgia;
	font-size: 25px;
	text-align: left;
	margin-top: 0px;
	margin-bottom: 10px;
}

/* ######### LEVEL FOUR: FOOTER LINKS ############################## */

/* Creates the space around the Footer Bar. */
div.footerBar {
	position: relative;
	background-color: #1F2022;
	width: 100%;
	margin-top: 60px;
}

/* Modifies and centers the top line of footer content. */
.footerText {
	font-family: sans-serif;
	color: #FFF;
	font-size: 18px;
	font-weight: 600;
	line-height: 35px;
	text-align: center;
	padding-top: 15px;
	margin-top: 0px;
	margin-bottom: 0px;
}

/* Modifies and centers the bottom line of content. */
.footerLinks {
	text-decoration: none;
	text-align: center;
	padding-bottom: 15px;
}

/* Modifies the text of the footer links. */
.footerLinks a {
	font-family: sans-serif;
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;
	line-height: 35px;
	color: #FFF;
	margin: 5px;
}

div.footerLinks a:hover {
	color: crimson;
}

/* ######### MEDIA QUERIES ######################################### */

@media (max-width: 1200px) {
	.logoDrop {
		width: 450px;
	}
}

@media (max-width: 920px) {
	.panelImage {
		margin-top: 5px;
		width: 90%;
	}

	#backButton img, #forthButton img {
		height: 50px;
		width: 50px;
	}

	/* ##### The Edge (max-width) & Outer / Inner (min-width) Variables TOGETHER determine the width of the NaviPanel. Alone they do nothing.  */
	.textBoxEdge {
		max-width: 400px;
	}

	.textBoxOuter, .textBoxInner {
		min-width: 400px;
	}

	p.proseText {
		font-size: 23px;
	}

	p.interlocutorName {
		font-size: 18px;
	}

	p.dialogText {
		font-size: 23px;
	}

}

@media (max-width: 770px) {
	header nav {
		display: none;
	}	

	#mobile-menu-block {
		display: block;
	}

	.panelImage {
		width: 80%;
	}

	#backButton img, #forthButton img {
		height: 40px;
		width: 40px;
	}

	/* ##### The Edge (max-width) & Outer / Inner (min-width) Variables TOGETHER determine the width of the NaviPanel. Alone they do nothing.  */
	.textBoxEdge {
		max-width: 275px;
	}

	.textBoxOuter, .textBoxInner {
		min-width: 275px;
	}

	p.proseText {
		font-size: 22px;
		margin-top: 5px;
		margin-right: 5px;
		margin-left: 5px;
		margin-bottom: 5px;
	}

	p.interlocutorName {
		font-size: 16px;
	}

	p.dialogText {
		font-size: 22px;
	}

	.logoDrop {
		width: 250px;
	}

}

@media (max-width: 550px) {
	#backButton img, #forthButton img {
		height: 45px;
		width: 45px;
	}

	/* ##### The Edge (max-width) & Outer / Inner (min-width) Variables TOGETHER determine the width of the NaviPanel. Alone they do nothing.  */
	.textBoxEdge {
		max-width: 275px;
	}

	.textBoxOuter, .textBoxInner {
		min-width: 275px;
	}

	p.proseText {
		font-size: 21px;
	}

	p.interlocutorName {
		font-size: 16px;
	}

	p.dialogText {
		font-size: 21px;
	}

	.logoDrop {
		width: 175px;
	}

}

@media (max-width: 400px) {
	#backButton img, #forthButton img {
		height: 35px;
		width: 35px;
	}

	#backButton img {
		margin-right: 2.5px;
	}

	#forthButton img {
		margin-left: 2.5px;
	}

	/* ##### The Edge (max-width) & Outer / Inner (min-width) Variables TOGETHER determine the width of the NaviPanel. Alone they do nothing.  */
	.textBoxEdge {
		max-width: 200px;
	}

	.textBoxOuter, .textBoxInner {
		min-width: 200px;
	}

	p.proseText {
		font-size: 20px;
	}

	p.interlocutorName {
		font-size: 16px;
	}

	p.dialogText {
		font-size: 20px;
	}

	.logoDrop {
		width: 150px;
	}

}