@media (prefers-color-scheme: light) { :root {
	--page-bg: #99ccff;
	--link-color: #cc0000;
	--link-color-visited: #8c1727;
	--unhover-color: #0876c9;
	--hover-color: #065089;
	
	--text-light: #FAFAFA;
	--text-dark: #000000;
	--floating-element: #efefef;
}}
@media (prefers-color-scheme: dark) { :root {
	--link-color: #ff3333;
	--link-color-visited: #af1d30;
	--unhover-color: #0876c9;
	--hover-color: #065089;
	
	--text-light: #FAFAFA;
	--text-dark: #FAFAFA;
	--floating-element: #333333;
}}

body {
	margin-left: 10%;
	margin-right: 10%;
	font-family: Helvetica, sans-serif;
	font-size: 13pt;
	background-color: var(--page-bg);
}

:root {
	color-scheme: light dark;
	--brand: #cc0000;

}

.topnav {
	justify-content: center;
	display: flex;
	align-items: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.nav-list li {
    margin: 0 16px;
}

.navcategory {
	padding: 10px;
	font-size: 20px;
	color: var(--brand);
	text-decoration: underline;
	background-color: var(--page-bg);
	border: none;
	display: flex;
	flex: 1;
	height: 100%;
}

.dropdown:hover .navcategory {
	color: var(--brand);
}

.droplist {
	display: none;
	position: absolute;
	background-color: var(--floating-element);
	box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
	z-index: 1;
	border-radius: 5px;
}

.dropdown:hover .droplist {
	display: block;
	background-color: var(--floating-element);
}

.droplist a {
	color: var(--text-light);
	font-size: 16px;
	padding: 12px 12px;
	text-decoration: none;
	display: block;
}
.droplist a:first-child {
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}
.droplist a:last-child {
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

.droplist a:hover {
	background-color: var(--hover-color);
	color: var(--text-light);
}


@media (max-width: 900px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
}


a:link {
	color: var(--link-color);
}
a:visited {
	color: var(--link-color-visited);;
}
