/*========================================================================
  General
========================================================================*/

:root {
	--color-secondary: #d1cfc5;
	--color-tertiary: #C5C5C5;
	--color-highlight: #99180f;
	--color-highlight-darker: #720d05;
	--color-highlight-secondary: #faa507;
	--color-disabled: #BBBBBB;
	--navbar-height: 3rem;
	--sidebar-speed: 0.5s;
	--hover-speed: 0.4s;
	
	
	--color-primary: #404040; /*filter: brightness(0) saturate(100%) invert(19%) sepia(1%) saturate(0%) hue-rotate(51deg) brightness(107%) contrast(83%);*/
	--color-background: #EFEEE7;
	--color-background-secondary: #E6E4DC;
}

html {
	font-size: 1rem;
	font-family: "Poppins", Verdana, Arial, sans-serif;
	color: var(--color-primary);
}

body {
	display: flex;
	flex-direction: column;
	margin: var(--navbar-height) 0 0 0;
	min-height: calc(100dvh - var(--navbar-height));
	background-color: var(--color-background);
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

a {
  text-decoration: none;
}

a:hover:not(.disabled) {
	text-decoration: underline;
}

a:active::not(.disabled) {
	box-shadow: 0 0 0 1px var(--color-highlight) inset;
}

a>* {
	pointer-events: none;
}

.content {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem;
}

.wide-content {
	max-width: 1400px;
}

.thin-content {
	max-width: 800px;
}

.tiny-content {
	max-width: 500px;
}

.disabled {
	background-color: transparent !important;
	cursor: default !important;
}

.hidden {
	display: none !important;
}

.unselectable, img {
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
}

.center {
	text-align: center;
}

/*========================================================================
	Dropdowns
========================================================================*/

.dropdown {
	height: 100%;
	-webkit-tap-highlight-color: transparent;
}

.dropdown:hover {
	cursor: pointer;
}

.dropdown-button::after {
	content: "";
	background-image: url(/icons/expand.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	height: 1rem;
	width: 1rem;
	padding: 0 0.25rem;
	pointer-events: none;
	transition: transform 0.2s;
}

.dropdown.collapsed>.dropdown-button::after {
	transform: rotate(180deg);
}

.dropdown-content {
	position: absolute;
	background-color: #FFFFFF;
	box-shadow: 0 0 0 1px var(--color-secondary) inset;
	overflow: hidden;
}

.dropdown.collapsed>.dropdown-content {
	height: 0;
}

/*========================================================================
	Navigation Bar
========================================================================*/

.header {
	position: fixed;
	z-index: 10;
	top: 0;
	width: 100%;
	height: var(--navbar-height);
	user-select: none;
	border-bottom: 1px solid var(--color-secondary);
	background-color: var(--color-background-secondary);
}

.header > .content {
	display: flex;
	height: 100%;
	padding: 0;
}

.logo {
	display: flex;
	height: 100%;
	align-items: center;
	color: var(--color-primary);
	padding-right: 1rem;
	font-size: 1.5rem;
}

.logo > img {
	height: 100%;
	padding: 0.5rem;
	filter: brightness(0) saturate(100%) invert(19%) sepia(1%) saturate(0%) hue-rotate(51deg) brightness(107%) contrast(83%);
}

#navbar-menu-toggle {
	height: 100%;
	padding: 0.5rem;
	display: none;
	transition: background-color var(--hover-speed) ease;
	margin-left: auto;
}

#navbar-menu-toggle:hover {
	cursor: pointer;
	background-color: var(--color-secondary);
}

nav {
	display: flex;
	align-items: center;
	height: 100%;
	margin-left: auto;
}

.navbar-item {
	font-size: 90%;
	color: var(--color-primary);
	padding: 0 1rem;
	display: flex;
	height: 100%;
	align-items: center;
	transition: background-color var(--hover-speed) ease;
}

.navbar-item:hover {
	text-decoration: none;
	background-color: var(--color-secondary);
	color: var(--color-primary);
}

.navbar-item.disabled, .disabled>.navbar-item {
	color: var(--color-disabled) !important;
}

.navbar-item.dropdown-button {
	padding-right: 0.5rem;
}

.dropdown-content>.navbar-item {
	height: var(--navbar-height);
	width: 16rem;
}

#navbar-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: var(--navbar-height);
	left: 0;
	transition: background-color var(--sidebar-speed) ease;
	pointer-events: none;
}

/*========================================================================
	Buttons
========================================================================*/

.button {
	margin: 1rem;
	padding: 0.5rem 1rem;
	background-color: var(--color-background-secondary);
	border-radius: 1rem;
	color: var(--color-primary);
	transition: background-color var(--hover-speed) ease;
	user-select: none;
	border: 1px solid var(--color-primary);
	font-size: 1rem;
}

.button.disabled {
	border-color: var(--color-disabled);
	color: var(--color-disabled);
}

.button:hover {
	background-color: var(--color-secondary);
	cursor: pointer;
}

.button.highlighted:hover {
	background-color: var(--color-highlight-darker);
}

.button-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.button-container > .button {
	margin: 0;
	border-radius: 0.5rem;
}

/*========================================================================
	Content
========================================================================*/

.page-header {
	font-size: 2rem;
    font-weight: 300;
	padding: 1rem 0;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--color-tertiary);
}

.sub-header {
	font-size: 1.5rem;
    font-weight: 300;
	margin-bottom: 0.25rem;
}

section {
	margin-top: 4rem;
	margin-bottom: 8rem;
}

.section-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 2rem auto;
}

.block-container {
	background-color: var(--color-background-secondary);
	border: 1px solid var(--color-secondary);
	padding: 2rem;
	border-radius: 1rem;
	margin-bottom: 2rem;
	margin-top: 2rem;
}

.block-container>*:first-child {
	margin-top: 0;
}

span, p, ul, ol {
	margin: 0;
	line-height: 1.25;
}

p, ul, ol {
	margin-bottom: 1rem;
}

ul, ol {
	padding-left: 1.5rem;
}

ul {
	list-style-type: square;
}

h1 {
	font-size: 2.5rem;
	font-weight: bold;
}

.highlighted {
	background-color: var(--color-highlight);
	color: var(--color-background);;
}

.highlighted-text {
	color: var(--color-highlight);
}

.detail-panel-container {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

.detail-panel {
	padding: 1rem;
	background-color: var(--color-background-secondary);
	border-radius: 1rem;
	border: 1px solid var(--color-secondary);
	color: var(--color-primary);
	transition: background-color var(--hover-speed) ease;
}

.detail-panel>.title {
	display: flex;
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
}

.detail-panel>.title>img {
	width: 2.5rem;
	margin: 0 1rem;
}

.detail-panel>p {
	margin-bottom: 0;
}

a.detail-panel:hover {
	text-decoration: none;
	outline: 2px solid var(--color-secondary);
}

a.detail-panel:hover .title {
	text-decoration: underline;
	color: var(--color-highlight);
}

/*========================================================================
	Footer
========================================================================*/

footer {
	margin-top: auto;
	background-color: var(--color-background-secondary);
	border-top: 1px solid var(--color-secondary);
}

.footer-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 1rem;
	justify-content: center;
	text-align: center;
}

/*========================================================================
	Responsiveness
========================================================================*/

@media screen and (max-width: 800px) {
	#navbar-menu-toggle {
		height: 100%;
		padding: 0.5rem;
		display: block;
	}
	
	#navbar-links-container {
		overflow: auto;
		position: fixed;
		z-index: 10;
		top: var(--navbar-height);
		right: 0;
		width: 16rem;
		height: calc(100vh - var(--navbar-height));
		background-color: var(--color-background);
		transition: width var(--sidebar-speed) ease;
	}
	
	#navbar-links-container.collapsed {
		width: 0;
		transition: width var(--sidebar-speed) ease;
	}
	
	#navbar-links-container:not(.collapsed) {
		border-right: 1px solid var(--color-secondary);
	}
	
	nav {
		flex-direction: column;
		padding-top: 0.5rem;
	}
	
	.navbar-item {
		flex-shrink: 0;
		padding-right: 0;
		height: 2rem;
		width: 100%;
		white-space: nowrap;
	}
	
	nav>.dropdown {
		height: initial;
		width: 100%;
	}
	
	nav>.dropdown>.dropdown-content {
		position: initial;
		box-shadow: none;
	}
	
	nav>.dropdown>.dropdown-content>.navbar-item {
		width: 100%;
		height: 2rem;
		padding-left: 2rem;
		color: #808080;
	}
	
	#navbar-overlay:not(.collapsed) {
		background-color: rgba(22, 22, 22, 0.5);
		transition: background-color var(--sidebar-speed) ease;
		pointer-events: auto;
	}
	
	h1 {
		font-size: 1.75rem;
		font-weight: bold;
	}
}