/*****  HEADER *****/
.header {
	grid-area: header;
	min-height: 10vh;
	max-height: 10vh;
	background-color: black;
	color: white;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

/*****  TOP MENU *****/
.header ul {
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
	background-color: black;
	color: white;
	z-index: 1000;
	border-bottom: 3px solid #ffd336;
}

.header ul li {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	padding: 0;
	cursor: pointer;
}

/***** LINK STYLE *****/
.header a {
	display: block;
	width: 100%;
	color: #ffd336;
	letter-spacing: 0.2em;
	text-decoration: none;
	transition: all 0.1s linear;
}

.header a:hover,
.header li:hover a,
.header a:active {
	color: white;
	text-shadow: 0 0 5px #ffd336;;
}

/***** SUBMENU *****/
.header ul ul {
	display: none;
	opacity: 0;
	position: absolute;
	top: 100%;
	min-width: 200px;
	margin: 0;
	padding: 0;
	color: white;
	background-color: black;
	list-style: none;
	box-sizing: border-box;
	height: auto;
	z-index: 1000;
	pointer-events: none;
	transition: opacity 0.2s ease;
	border-width: 0;
}

/* optional curved submenu borders */
//.header ul ul, .header ul ul li:last-child { border-radius: 0 0 16px 16px; }
//.header ul ul ul, .header ul ul ul li:last-child { border-radius: 0 0 16px 0; }

/* reveal submenu on hover */
.header ul li:hover > ul {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

/* submenu list items */
.header ul ul li {
	position: relative;
	padding: 10px;
	text-align: left;
}

.header ul ul li:hover {
	background-color: #202020;
}

.header ul ul li a {
	display: block;
}

/* hover effects on submenu links */
.header ul ul li:hover a {
	text-shadow: 0 0 5px white;
}

/***** SECOND-LEVEL SUBMENU *****/
.header ul ul ul {
	top: 0;
	left: 100%;
}

/***** OTHER STUFF *****/
.header ul li:has(ul)::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  border-color: white;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}