#header-bar {
	position: sticky;
	top: 0;
	background: white;
	display: grid;
	grid-area: header;
	grid-template-areas: "logo navigation auth";
	grid-template-columns: 20vw auto max-content;
	grid-template-rows: 7rem;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
	width: 100vw;
	padding: 0 2vw;
}

#header-bar nav {
	grid-area: navigation;
	height: 100%;
	display: flex;
	padding: 0 3vw 0 3vw;
	justify-content: flex-start;
	align-items: center;
	column-gap: 2vw;
}

#header-bar nav a {
	height: 2.5rem;
	display: inline-block;
	border-radius: 20px;
	border: 1px solid #004400;
	padding: 0 2vw;
	text-align: center;
	line-height: 2.5rem;
	font-size: 1.3rem;
	color: #005500;
	text-decoration: none;
	width: fit-content;
	white-space: nowrap;
}

#header-bar nav a:hover {
	color: white;
	background-color: #004400;
	transition: 300ms background-color;
}

#header-bar nav a:not(:hover) {
	color: default;
	background-color: default;
	transition: 600ms background-color;
}

#header-bar #auth {
	display: flex;
	align-items: center;
	grid-area: auth;
	padding: 0 1vw 0 1vw;
}

#header-bar #auth a.button {
	flex: 1;
	margin: 0 0.3vw;
	height: 2.5rem;
	font-size: 1.1em;
	line-height: 2.5rem;
	padding: 0 1.5rem;
}

.menu-icon {
	display: none;
}

#logo-link {
	display: flex;
	align-items: center;
	grid-area: logo;
	height: 100%;
}

#logo-image {
	max-height: 80%;
}

.header-bar-icon, #menu-icon-wrapper {
	display: none;
}

@media screen and (width < 1140px) {
	#header-bar {
		display: grid;
		grid-template-areas: "menu-icon logo auth";
		grid-template-columns: 5rem calc(100vw - 10rem) 5rem;
		grid-template-rows: 5rem;

		padding: 0;

		height: 5rem;

		z-index: 999;
	}

	img.header-bar-icon, img#logo-image {
		display: block;
		max-height: 60%;
		max-width: unset;
	}

	a.header-bar-icon {
		display: block;
		width: auto;
		aspect-ratio: 1 / 1;
	}

	a.header-bar-icon img {
		display: block;
		height: 100%;
		max-width: unset;
	}

	#logo-image {
		min-width: 0;
	}

	#menu-icon-wrapper, #logo-link, #auth {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}

	.header-bar-icon {
		height: 60%;
	}

	#menu-icon-wrapper {
		grid-area: menu-icon;
	}

	#menu-icon-wrapper, #auth {
		aspect-ratio: 1 / 1;
		width: auto;
	}

	#header-bar nav {
		grid-area: none;
		position: absolute;
		top: 5rem;

		width: 100vw;
		height: calc(100vh - 5rem);

		padding: 0;

		justify-content: flex-start;
		flex-flow: column nowrap;

		background-color: white;

		display: none;
	}

	#header-bar nav a {
		border-radius: 0;
		border: none;

		padding: 0;

		line-height: 5rem;
		font-size: 2.3rem;
		font-weight: 600;

		height: 5rem;
		width: 100vw;

		box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
	}

	#header-bar #auth a.button {
		display: none;
	}
}
