@font-face {
font-family: MGS4;
src: url("../fonts/MGS4.ttf");
}

@font-face {
font-family: AGBook;
src: url("../fonts/AG-Book-Rounded-Regular.otf");
}

body {
	font-family: AGBook, sans-serif;
	margin: 2vw;
	color: #74746C;
	font-size: 1.4rem;
	line-height: 1.5;
	box-sizing: border-box;
	background-color: #D1D1C2;
}

header {
	font-family: MGS4;
	font-size: 1.4rem;
	color: #B1B1A5;
	margin-left: 3rem;
	word-wrap: break-word;
}

.container {
	max-width: 95%;
	height: 75vh;
	border: solid 5px #9B9B90;
	margin: 2vw 8vw;
	margin-top: -1.75vw;
	overflow: auto;
	scrollbar-color: #74746C #D1D1C2;
}

.page-index {
	font-family: MGS4;
	display: flex;
	gap: 3rem;
	font-size: 0.75rem;
	justify-content: center;
	margin: -2vw 2vw 1vh 2vw;
}

nav a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease-out;
}

nav a:hover {
	color: #333333;
}

nav ul {
	padding: 0;
	margin: 1rem;
}

nav li:hover {
	background: linear-gradient(45deg, #F3F3E1, #D1D1C2);
}


/* Encyclopedia Navigation */

.nav-flex {
	display: flex;
	width: 100%;
	flex-direction: column;
	color: #333333;
}

.nav-item {
	display: flex;
	flex-direction: row;
	padding: 0.75rem;
}

.nav-item:hover {
	background: linear-gradient(45deg, #F3F3E1, #D1D1C2);
}

.nav-item svg {
	height: 3.5rem;
	margin-right: 1rem;
	filter: invert(15%) sepia(0%) saturate(1108%) hue-rotate(163deg) brightness(92%) contrast(83%);
	border: solid 1px black;
	border-radius: 10%;
}

.nav-text p {
	display: flex;
	flex-direction: column;
	font-weight: bold;
	font-size: 2rem;
	margin: -0.3rem;
}

.nav-text p:nth-child(2) {
	font-family: MGS4;
	font-weight: normal;
	font-size: 1rem;
}

.article-head {
	display: flex;
	justify-content: space-between;
	background-color: #E9E9D8;
	padding: 0.2rem;
	margin: 0;
	position: sticky;
	top: 0;
}

.article-head a {
	text-decoration: none;
}

.title {
	display: flex;
	flex-direction: row;
}

.title svg {
	height: 2.5rem;
	margin-right: 1rem;
	border: solid 1px black;
	border-radius: 10%;
}

.title a {
	display: block;
}

.page {
	font-family: MGS4;
	font-size: 1.4rem;
	color: #B1B1A5;
}

h2, h3 {
	font-size: 1.6rem;
	margin: 0;
	padding: 0;
	color: #333333;
}

li {
	list-style-type: none;
}

article {
	font-size: 1.75rem;
	color: #333333;
	margin-right: 5rem;
	padding: 1vw;
}

article a {
	color: #7E9C9A;
	transition: all 0.3s ease-out;
}

article a:hover, article a:focus {
	color: #F4E2E1;
	background-color: #A95951;
	text-decoration: none;
}

hr {
	background-color: #B1B1A5;
	width: 90%;
}

/* Media Queries */
@media screen and (max-width: 850px) {
	header {
		font-size: 0.9rem;
		margin-left: 1rem;
	}
	
	.container {
		margin: 2vw;
	}
	
	.nav-item svg {
		height: 3rem;
	}
	
	.nav-text p {
		font-size: 1.5rem;
	}
	
	.nav-text p:nth-child(2) {
		font-size: 0.7rem;
	}
	
	article {
	font-size: 1.5rem;
	color: #333333;
	margin-right: 1rem;
	}
}