.header {
	background: black;
	display: flex;
	padding: 8px;
}

.header-logo-link {
	height: 100%;
	width: fit-content;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.header-main-button {
	display: none;
}

.header-nav-links-open {
	display: grid !important;
}

#background {
	position:fixed;
	left: 0;
	top: 0;
	background-color: transparent;
	height: 100dvh;
	width: 100dvw;
	z-index: 900;
	display: none;
	border: none;
}

.header-nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
}

.header-dropdown-title {
	background-color: transparent;
	border: none;
	font-family: inherit;
}

.header-dropdown-menu {
	z-index: 120;
	top: calc(100% + 5px);
	grid-auto-flow: row;
	position: absolute;
	background-color: black;
	padding: 0.5em 0;
	left: 50%;
	width: fit-content;
	transform: rotateX(-90deg) translateX(-50%);
	transform-origin: top center;
	opacity: 0.3;
	transition: 0.3s all ease-out;
	visibility: hidden;
	box-shadow: 0 8px 5px 2px var(--color-primary-purple);
	display: grid;
	row-gap: 16px;
	min-width: 12ch;
	border-radius: 0 0 15px 15px;
}

.header-dropdown-link {
	display: block;
	text-align: center;
}

.header-nav-link {
	padding: 0;
	margin: 0 0.5rem;
}

.header-nav-link a,
.header-dropdown-title {
	text-decoration: none;
	text-align: center;
	display: inline-block;
	color: white;
	font-size: 1rem;
	border-radius: 15%;
	padding: 8px;
	box-shadow: 0 0 5px 2px var(--color-primary-purple);
}

.header-dropdown-active {
	box-shadow: 0 0 5px 2px var(--color-primary-red);
}

.header-nav-link-active a {
	box-shadow: 0 0 5px 2px var(--color-primary-red);
}

.header-dropdown {
	position: relative;
}

.header-dropdown:hover .header-dropdown-menu,
.header-dropdown:focus-within .header-dropdown-menu {
	opacity: 1;
	transform: rotateX(0) translateX(-50%);
	transition: 0.3s all ease-in;
	visibility: visible;
}

.header-dropdown-open {
	opacity: 1;
	transform: rotateX(0) translateX(-50%);
	transition: 0.3s all ease-in;
	visibility: visible;
	display: grid !important;
}

.header-nav-link a:hover {
	box-shadow: inset 0 0 5px 2px var(--color-primary-red), 0 0 5px 2px var(--color-primary-purple);
}

.header-nav-link-active a:hover {
	box-shadow: inset 0 0 5px 2px var(--color-primary-red), 0 0 5px 2px var(--color-primary-red);
}

.header-dropdown-title:after{
	content: '';
	border: 4px solid transparent;
	border-top: 8px solid white;
	margin-left: 4px;
	display: inline-block;
	vertical-align: bottom;
}

.header-main-button-pressed {
	box-shadow: 0 0 5px 2px var(--color-primary-red);
}

.background-open {
	display: block !important;
}


@media screen and (width >= 320px) and (width < 768px) {
	.header {
		height: 50px;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.header-logo-img {
		max-height: 100%;
		max-width: 100%;
	}

	.header-nav-links {
		display: none;
		position: absolute;
		right: 0;
		top: calc(50px + 16px);
		z-index: 999;
		background-color: black;
		align-items: center;
		grid-auto-flow: row;
		row-gap: 2dvh;
		justify-items: flex-end;
		padding: 2dvh 2dvw;
		box-shadow: 0 8px 5px 2px var(--color-primary-purple);
		border-radius: 0 0 0 20px;
	}
	.header-main-button {
		position: absolute;
		top: calc(50px + 16px);
		right: 0;
		width: 50px;
		height: 50px;
		z-index: 400;
		text-decoration: none;
		text-align: center;
		display: inline-block;
		background-color: black;
		color: white;
		font-size: 1.5rem;
		border-radius: 0 0 0 15%;
		border: none;
		padding: 8px;
		box-shadow: 0 0 5px 2px var(--color-primary-purple);
	}
	.header-main-button-pressed {
		box-shadow: 0 0 5px 2px var(--color-primary-red);
	}
	.header-dropdown-menu {
		right: 30px;
		left: auto;
		height: auto;
		bottom: 0;
		top: auto;
		border-radius: 15px 0 0 15px;
		box-shadow: -8px 0 5px 2px var(--color-primary-purple);
		width: fit-content;
	}
	#header-dropdown-control-1 {
		bottom: auto;
		top: 0;
	}
	#header_dropdown_title_1 {
	}
	.header-dropdown {
		display: flex;
		flex-direction: row-reverse;
	}
}

@media screen and (width >= 768px) and (width < 1300px) {
	.header {
		height: 62.5px;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.header-logo-img {
		max-height: 100%;
		max-width: 100%;
	}
	.header-nav-links {
		display: none;
		position: absolute;
		left: 0;
		top: calc(62.5px + 16px);
		height: 75px;
		z-index: 999;
		width: 100%;
		background-color: black;
		align-items: center;
		justify-content: center;
	}
	.header-main-button {
		position: absolute;
		top: 0;
		right: 0;
		width: 62.5px;
		height: 62.5px;
		z-index: 400;
		text-decoration: none;
		text-align: center;
		display: inline-block;
		background-color: black;
		color: white;
		font-size: 1.5rem;
		border-radius: 0 0 0 15%;
		border: none;
		padding: 8px;
		box-shadow: 0 0 5px 2px var(--color-primary-purple);
	}
	.header-main-button-pressed {
		box-shadow: 0 0 5px 2px var(--color-primary-red);
	}
	.header-dropdown-menu {
		top: calc(100% + 5px);
		height: auto;
		left: 50%;
	}
}

@media screen and (width >= 1300px) {
	.header {
		height: 75px;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		column-gap: 8px;
	}

	.header-logo-img {
		height: 100%;
	}

	.header-nav {
		width: 100%;
		height: 100%;
		display: grid;
		place-items: center;
	}
}