:root {
	--clr-hover: hsl(39, 97%, 59%);
	--height: 3rem;
	--shadow: 0 0 1em hsl(0, 0%, 66%);
}

#menu {
	z-index: 1;
	top: 0;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1em;
	justify-content: center;
	align-items: center;
	list-style-type: none;
	background: var(--clr);
	box-shadow: var(--shadow);
}

#menu > li {
	position: relative;
}

#menu button:hover {
	color: var(--clr-hover);
	border-bottom-color: var(--clr-hover);
}

#menu button {
	color: white;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	height: var(--height);
	cursor: pointer;
	font-size: .9em;
	font-weight: bold;
	transition: all .1s;
}

#menu > li:hover ul {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: var(--height);
	box-shadow: var(--shadow);
}

#menu ul {
	display: none;
	z-index: 1020;
	padding: 0;
	margin: 0;
	min-width: 15em;
	list-style-type: none;
	background: linear-gradient(0deg, hsl(from var(--clr) h 61% 41% / .68), var(--clr));
	backdrop-filter: blur(3px);
	border-radius: 0 0 5px 5px;
}

#menu ul li:last-child {
	padding-bottom: .6em;
}

#menu ul li {
	border-left: 3px solid transparent;
	padding: .3em 1em;
	transition: all .1s;
}

#menu ul li:hover {
	border-left-color: var(--clr-hover);
}

#menu ul li:hover a {
	color: var(--clr-hover);
	text-shadow: none;
}

#menu .highlight a {
	text-shadow: 0 0 4px white;
	font-weight: bold;
}

#menu a:visited,
#menu a:link {
	color: white;
	text-decoration: none;
	transition: all .1s;
}

#submenu {
	display: flex;
	justify-content: space-between;
}

@media screen and (max-width: calc(1280px - 1px - 8px)) {	/* 8px for Edge margins */
	#menu {
		display: none;
	}
}
