@font-face {
	font-family: AgencyB;
	src: url('../fonts/AgencyB.ttf');
}

@font-face {
	font-family: Garamond;
	src: url('../fonts/Garamond.ttf');
	font-weight: normal;
  font-style: normal;
}

@font-face {
	font-family: Garamond;
	src: url('../fonts/Garamond-ExtraBold.ttf');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: Mantinia;
	src: url('../fonts/Mantinia.otf');
}

/* Core Layout */
body {
	font-family: Garamond, sans-serif;
	min-height: 98vh;
	margin: 0 auto;
	background: #3F2E23;
	color: #40312B;
	font-size: 1.1rem;
	box-sizing: border-box;
}

.wrapper {
	background: #7B7753;
	height: 90vh;
	margin: 1vh 10vh;
	display: flex;
}

.sidebar {
	background: #BF934C;
	height: 86vh;
	flex: 20%;
	margin: 2vh;
}

.navigation {
	font-family: AgencyB;
	color: #ECDDC5;
	font-size: 1.5rem;
	list-style: none;
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 1vh;
}

.navigation li {
	padding: 1rem;
	background: #7F5A1F;
	transition: background 0.3s ease-out;
}

.navigation li:hover {
	background: #634618;
}

.navigation a {
	color: inherit;
}

.navigation a:hover {
	color: inherit;
	text-decoration: none;
}

.expand li {
	font-size: 1.25rem;
	color: #DDBA88;
	text-align: right;
	padding: .5vh !important;
}

.breadcrumbs {
	color: #e0caa6;
	font-family: monospace;
	margin-top: 2vh;
	display: block;
	text-align: center;
}

.breadcrumbs a {
	color: #BF934C;
}

.breadcrumbs a:hover {
	color: #7F5A1F;
}

.breadcrumbs .current-page {
	font-weight: bold;
	color: #7B7753;
}

.container {
	height: 95%;
	background: #dedbce;
	flex: 70%;
	margin: 2vh;
}

.content {
	max-height: 82vh;
	background: #dedbce;
	width: 97%;
	padding: 1vw;
	overflow: auto;
	scrollbar-color: #BF934C #7F5A1F;
	overflow-wrap: break-word;
	hyphens: auto;
}

.further {
	list-style-type: none;
	padding: 0;
}

.portrait img {
	height: 33vh;
	margin: 0 auto;
	border-radius: 50%;
	filter: sepia(0.2);
}

.type-gallery {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 5vh;
}

.type-gallery img {
	height: 25vh;
	border-radius: 10%;
	transition: transform 0.3s ease-in-out;
}

.type-gallery img:hover {
	transform: translateY(-12px);
}

figcaption {
	color: #644E44;
	font-size: 0.95rem;
}

.resources ul {
	padding: 0;
	list-style-type: none;
}

/* Tooltips and Definitions */

.tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px solid var(--link);
}

.tooltip .tooltip-text {
	visibility: hidden;
	width: 150px;
	background-color: var(--content);
	color: var(--link-hover);
	border: solid 1px var(--link);
	font-family: monospace;
	text-align: center;
	padding: 5px 0;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	left: 50%;
	margin-left: -75px;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltip-text, .tooltip:focus .tooltip-text {
	visibility: visible;
	opacity: 1;
}

/* Text */ 
a {
	color: #516600;
	text-decoration: none;
	transition: color 0.3s ease-out;
}

a:hover {
	color: #754502;
	text-decoration: underline;
}

.external::after {
	content: "↱";
	display: inline-flex;
	margin-left: 5px;
}

h1, h2, h3 {
	font-family: Mantinia;
	text-decoration: underline;
}

.date {
	background-color: #ccc8b6;
	padding: 5px;
	border-radius: 10%;
}

.center {
	text-align: center;
	margin-bottom: 5vh;
}

.left {
	text-align: left;
	margin-bottom: 5vh;
}

.right {
	text-align: right;
	margin-bottom: 5vh;
}

/* Media Queries */ 
  @media screen and (max-width: 700px) {
  .wrapper {   
    flex-direction: column;
	gap: 2vh;
	margin: 3vh;
	height: 100%;
  }
  
  .sidebar, .container {
	margin: 1vw;
  }
 }