.menu a,
.menu a:link,
.menu a:visited,
.menu a:focus {
	text-decoration: none;
}

#current {
	color: var(--color-nav-hover) !important;
	font-weight: 600;
}

.menu ul,
.menu li ul {
	list-style: none;
}

.menu li a:hover {
	color: var(--color-nav-hover) !important;
}

/* Header Styling */
.header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 2rem;
	background: #fff;
}

/* Hidden Checkbox */
.nav-toggle {
	display: none;
}

/* Hamburger Icon Styling */
.hamburger {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--hamburger-size);
	height: var(--hamburger-size);
	gap: var(--hamburger-gap);
	margin-bottom: 2rem;
}

.hamburger span {
	display: block;
	width: 100%;
	height: var(--hamburger-line-height);
	background-color: var(--color-nav);
	transition: all 0.5s ease;
}

/* Transform hamburger icon when nav is open */
.nav-toggle:checked+.hamburger span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked+.hamburger span:nth-child(2) {
	opacity: 0;
}

.nav-toggle:checked+.hamburger span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Logo Styling */
.logo {
	max-width: 20vw;
	margin-bottom: 1rem;
}

/* Navigation Menu */
.nav-menu {
	display: none;
	flex-direction: column;
	gap: 0.5rem;
	overflow-x: scroll;
	z-index: 2000;
	overflow-x: hidden;

	/* This allows the navigation to appear underneath the hamburger */
	position: absolute;
	top: 6rem;
	left: var(--centering-logo);
	transform: translateX(calc(-1 * var(--centering-logo)));
	background-color: #fff;
	padding: 0.75rem;
	border-radius: 1rem;
	width: 45%;
	max-width: 45vw;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
}

/* Display navigation when checkbox is checked */
.nav-toggle:checked~.nav-menu {
	display: flex;
}

.nav-menu li {
	margin: 0;
	padding: 0;
	position: relative;
}

.nav-menu li:not(last-child)::after {
	content: "";
	display: block;
	height: 0.2rem;
	width: 95%;
	margin: 0.5rem auto;
	background: linear-gradient(to right, #eee, var(--color-nav-hover), #eee);
}

/* Styling for Navigation Links */
.nav-menu li a {
	display: block;
	text-decoration: none;
	color: var(--color-nav);
	font-size: 1.4rem;
	line-height: 2;
	transition: color 0.3s ease;
	text-align: center;
	padding: 1rem 0;
	position: relative;
}

.nav-menu li a:hover {
	color: var(--color-nav-hover);
}

@media (min-width: 550px) {

	/* This is the default view of the welcome screen before the scroll */
	.header {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 2rem;
		background-color: rgba(255, 255, 255, 0.7);
		transition: all 0.3s ease-in-out;
		position: fixed;
		top: 0;
		z-index: 1000;
	}

	.first {
		padding-top: 35vh;
	}

	/* Centered Logo Styling */
	.logo {
		max-width: 40vw;
		margin-bottom: 1.5rem;
	}

	.logo[src="/images/logo2_cropped.png"] {
		content: url("/images/logo.png");
	}

	/* Navigation Styling */
	.nav-menu {
		display: flex;
		flex-direction: row;
		justify-content: center;
		padding: 0;
		margin: 0;
		gap: 0;
		width: 100%;
		box-shadow: none;
		background: none;
		position: unset;
		max-width: unset;
		transform: unset;
	}

	.nav-menu ul {
		display: flex;
		flex-direction: row;
		justify-content: space-evenly;
		gap: 2rem;
		width: 100%;
	}

	/* Center Align Navigation Links */
	.nav-menu li {
		display: inline-flex;
		align-items: center;
	}

	.nav-menu li a {
		text-align: center;
		padding: 0;
		color: #333;
		font-weight: 400;
	}

	.nav-menu li:not(last-child)::after {
		display: none;
	}

	/* End of the default view before the scroll */

	.hamburger {
		display: none;
	}

	body.scrolled {
		/* padding-top: 7vh; */
	}

	.header.scrolled {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		background: #fff;
		/* This keeps the header fixed after scrolling */
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 1000;
		box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
	}

	/* Logo on the leftmost side */
	.header.scrolled .logo {
		content: url("/images/logo2_cropped.png");
		margin-bottom: 0;
		max-width: 8vh;
	}

	/* Horizontal navigation on the right, with items as columns */
	.header.scrolled .nav-menu {
		display: flex !important;
		flex-direction: row;
		padding: 0;
		gap: 0;
		box-shadow: none;
		background: none;
		width: 100%;
		margin-left: auto;
		position: unset;
		max-width: unset;
		transform: unset;
	}

	.header.scrolled .nav-menu ul {
		display: flex;
		column-gap: 1rem;
	}

	/* Make each <li> item behave like a column */
	.header.scrolled .nav-menu li {
		display: inline-flex;
		align-items: center;
		padding: 0;
	}

	.header.scrolled .nav-menu li a {
		padding: 0rem;
		display: block;
	}

	.header.scrolled .nav-menu li:not(last-child)::after {
		display: none;
	}

	.legal-wrapper {
		padding-top: 55vh;
	}
}

@media screen and (min-width: 550px) and (orientation: landscape) {
	.first {
		padding-top: 63vh;
	}
}

@media (min-width: 850px) {
	.pad {
		padding: 2.5rem;
	}

	.nav-menu li a {
		position: relative;
		display: inline-block;
		text-decoration: none;
	}

	.nav-menu li a:hover::after {
		width: 100%;
	}

	.nav-menu li a::after {
		border-bottom: 0.2rem solid var(--color-nav-hover);
		content: "";
		left: 0;
		position: absolute;
		bottom: 0;
		width: 0;
		transition: width 0.4s ease-out;

	}

	.header.scrolled .logo {
		margin-bottom: 0;
		max-width: 8vh;
	}

	.header.scrolled .nav-menu ul {
		column-gap: max(5rem, 7vw);
	}

	.header.scrolled .nav-menu li a {
		font-size: 2rem;
	}
}

@media (min-width: 1440px) {
	.first {
		padding-top: 35vh;
	}

	.pad {
		padding: 5rem;
	}

	.logo {
		max-width: 23vw;
	}

	.header .nav-menu li a {
		font-size: 2.75rem;
	}

	.header.scrolled .logo {
		margin-bottom: 0;
		max-width: 8vh;
	}

	.header.scrolled .nav-menu li a {
		font-size: 3rem;
	}
}

@media (min-width: 2500px) {
	.logo {
		max-width: 27vw;
	}

	.header .nav-menu li a {
		font-size: 3rem;
	}

	.nav-menu li a {
		position: relative;
		display: inline-block;
		text-decoration: none;
	}

	.nav-menu li a:hover::after {
		width: 100%;
	}

	.nav-menu li a::after {
		border-bottom: 2px solid #e55c90;
		content: "";
		left: 0;
		position: absolute;
		bottom: 0;
		width: 0;
		transition: width 0.5s ease;

	}
}