#nav-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: var(--nav-bar-height);
	padding-left: 7%;
	padding-right: 10%;
	padding-top: 0.5%;
	display: flex;
	justify-content: center;
	align-items: center;
	/* background-color: white; */
	z-index: 2;
}

#nav-bar-link {
	margin-left: auto;
	display: flex;
	gap: 2%;
}

#nav-bar > img {
	margin-top: 1%;
	margin-left: 4%;
	height: 50%;
	object-fit: contain;
}

#nav-bar > .hamburger-lines {
	height: 4em;
	width: 5em;
	position: absolute;
	top: cal(50% - 4em);
	right: 7%;
	z-index: 2;
	/* display: flex; */
	display: none;
	flex-direction: column;
	justify-content: space-between;
}

#nav-checkbox {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 7em;
	opacity: 0;
	z-index: 3;
}

#nav-bar > .hamburger-lines .line {
	display: none;
	height: 20%;
	width: 100%;
	border-radius: 5em;
	background: #0e2431;
}

#nav-bar > .hamburger-lines .line1 {
	transform-origin: 0% 0%;
	transition: transform 0.4s ease-in-out;
}

#nav-bar > .hamburger-lines .line2 {
	transition: transform 0.2s ease-in-out;
}

#nav-bar > .hamburger-lines .line3 {
	transform-origin: 0% 100%;
	transition: transform 0.4s ease-in-out;
}

#nav-checkbox:checked ~ .hamburger-lines .line1 {
	transform: rotate(45deg);
}

#nav-checkbox:checked ~ .hamburger-lines .line2 {
	transform: scaleY(0);
}

#nav-checkbox:checked ~ .hamburger-lines .line3 {
	transform: rotate(-45deg);
}

#nav-bar-link > button {
	font-size: var(--nav-font-size);
	text-decoration: none;
	padding: 1em 1em;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-color-heavy-black);
}

#nav-bar #nav-bar-pan-left {
	content: '';
	position: fixed;
	margin-top: var(--nav-bar-height);
	top: 0;
	left: 0;
	width: 15%;
	height: var(--content-height);
}

#nav-bar #nav-bar-pan-left::after {
	position: fixed;
	left: -10%;
	top: 50vh;
	width: 2em;
	height: 2em;
	border-top: 0.2em solid var(--text-color-light-black);
	border-left: 0.2em solid var(--text-color-light-black);
	content: '';
	rotate: -45deg;
	transition: left 250ms ease-in;
}

#nav-bar #nav-bar-pan-left:hover::after {
	left: 5%;
}

#nav-bar #nav-bar-pan-right {
	content: '';
	position: fixed;
	margin-top: var(--nav-bar-height);
	top: 0;
	right: 0;
	width: 15%;
	height: var(--content-height);
	width: 15%;
	height: var(--content-height);
}

#nav-bar #nav-bar-pan-right::after {
	position: fixed;
	right: -10%;
	top: 50vh;
	width: 2em;
	height: 2em;
	border-top: 0.2em solid var(--text-color-light-black);
	border-left: 0.2em solid var(--text-color-light-black);
	content: '';
	rotate: 135deg;
	transition: right 250ms ease-in;
}

#nav-bar #nav-bar-pan-right:hover::after {
	right: 5%;
}

@media (max-width: 600px) {
	:root {
		--nav-bar-height: 5rem;
	}
	#nav-bar {
		justify-content: flex-start;
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 1) 0%,
			rgba(255, 255, 255, 1) 90%,
			rgba(255, 255, 255, 0.7) 100%
		);
		box-shadow: 4px 4px 30px 2px rgba(0, 0, 0, 0.25);
		z-index: 3;
	}

	#nav-bar > .hamburger-lines {
		display: flex;
	}

	#nav-bar > .hamburger-lines .line {
		display: block;
	}

	#nav-bar-link {
		top: var(--nav-bar-height);
		right: 0;
		width: 0em;
		flex-direction: column;
		position: fixed;
		z-index: 1;
		overflow: hidden;
		transition: width 0.5s ease-in-out;
	}

	#nav-checkbox:checked ~ #nav-bar-link {
		width: 30em;
	}

	#nav-bar-link > button {
		display: block;
		font-size: 3.5em;
		color: black;
		background: rgba(255, 255, 255, 0.9);
	}

	#nav-bar-link > button.text-selected {
		color: white !important;
		background: rgba(255, 110, 0, 0.6);
	}

	#nav-bar #nav-bar-pan-left {
		width: 10%;
	}
	#nav-bar #nav-bar-pan-right {
		width: 10%;
	}
}
