* {
	font-family: "Helvetica Neue", sans-serif;
}

a {
	color: var(--color-secondary-dark)
}

body {
	background-color: var(--color-alternative-light-ultra);
	margin: 0;
}

header, section {
	margin: 2rem 1rem 1rem 1rem;
	max-width: 900px;
}

header a {
	text-decoration: none;
}

header a:hover svg {
	color: var(--color-secondary-darkest);
	fill: var(--color-secondary-lightest);
}

header h2 {
	display: inline;
}

header svg {
	font-size: 2em;
}

nav {
	background-color: var(--color-primary-lightest);
	z-index: 100;
}

nav h1 {
	color: white;
	font-family: Kalam, sans-serif;
	line-height: 1;
	margin: 0 0.5em 0 0;
}

nav ol {
	align-items: center;
	display: flex;
	list-style: none;
	margin: 0;
}

nav li {
	display: block;
}

nav li a {
	background-color: var(--color-primary-light);
	border: 1px transparent solid;
	display: block;
	text-align: center;
	text-decoration: none;
	color: white;
}

nav li a.active {
	background-color: var(--color-primary);
}

nav li a:hover {
	border-color: var(--color-primary-darkest);
}

nav li a svg {
	width: 1.2em;
}

label {
	display: block;
}

svg {
	vertical-align: text-bottom;
	height: auto;
	width: 0.9em;
}

.button {
	background: var(--color-grey-light);
	border: none;
	border-radius: var(--radius-small);
	color: black;
	cursor: pointer;
	flex: 1 1 0;
	font-size: 1rem;
	padding: 0.5rem;
	text-align: center;
	text-decoration: none;
}

.content-box {
	background: white;
	border-radius: var(--radius-large);
	overflow: hidden;
}

.content-box > .content-list {
	margin: 0;
}

.content-box-search {
	background: url("/img/lucide/search.svg") 0.5em 0.5em no-repeat;
	background-size: 1em 1em;
	border: 1px solid var(--color-grey);
	display: block;
	font-size: inherit;
	height: 1em;
	padding: 1em 1em 1em 2em;
	width: 100%;
}

.content-list {
	line-height: 1;
	list-style: none;
	padding: 0;
}

.content-list a {
	color: black;
	display: block;
	margin: -1rem;
	padding: 1rem;
	text-decoration: none;
}

.content-list a:hover {
	background-color: var(--color-primary-light-ultra);
}

.content-list li {
	padding: 1rem;
}

.content-list li:not(:first-child) {
	border-color: var(--color-alternative-light-ultra);
	border-style: solid;
	border-width: 1px 0 0 0;
}

.content-list .icon {
	background-color: var(--color-primary-dark);
	border-radius: var(--radius-medium);
	color: white;
	display: block;
	float: left;
	font-size: 1.5rem;
	height: 2rem;
	margin: -0.5rem 1rem 0 0;
	text-align: center;
	width: 2rem;
}

.form-checkbox {
	display: inline-block;
	float: right;
	height: 1.5rem;
	position: relative;
	vertical-align: text-bottom;
	width: 4rem;
}

.form-radio {
	display: none;
}

.form-radio + * {
	border-radius: var(--radius-xl);
	border: 1px solid var(--color-secondary);
	color: var(--color-secondary-darkest);
	display: inline-block;
	padding: 0.25rem 0.5rem;
}

.form-radio:checked + * {
	background: var(--color-secondary-darkest);
	color: white;
}

.form-checkbox input {
	opacity: 0;
	width: 0;
	height: 0;
}

.form-checkbox .slider {
	background: #e9e9eb;
	border-radius: 999px;
	cursor: pointer;
	inset: 0;
	position: absolute;
	transition: 0.25s ease;
	/*width: calc(4rem - 4px);*/
}

.form-checkbox .slider::before {
	content: "";
	position: absolute;
	width: calc(2.5rem - 4px);
	height: calc(1.5rem - 4px);
	left: 2px;
	top: 2px;
	background: white;
	border-radius: 999px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	transition: 0.25s ease;
}

.form-checkbox input:checked + .slider {
	background: var(--color-green-dark);
}

.form-checkbox input:checked + .slider::before {
	transform: translateX(1.5rem);
}

.form-text {
	border: 1px solid var(--color-grey-light);
	border-radius: var(--radius-xl);
	box-sizing: border-box;
	font-size: inherit;
	max-width: 100%;
	min-width: 100%;
	padding: 0.5em 1em;
	margin: 0.5em 0;
	width: 100%;
}

.last {
	float: right;
}

.text-grey {
	color: var(--color-grey);
}

.text-grey-light {
	color: var(--color-grey-light);
}

#dialog {
	align-items: center;
	background: rgba(128, 128, 128, 50%);
	backdrop-filter: blur(10px);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 1rem;
	position: absolute;
	z-index: 1000;
}

#dialog dialog {
	border: none;
	border-radius: var(--radius-large);
	box-shadow: rgba(128, 128, 128, 50%) 0px 0px 5px;
	box-sizing: border-box;
	padding: 1rem;
}

#dialog .button_area {
	display: flex;
	gap: 1rem;
}

#sidebar {
	background-color: white;
	box-shadow: rgba(128, 128, 128, 50%) 0px 0px 5px;
	padding: 1rem;
	transition: transform 0.2s ease-out;
}

#dialog .close-button, #sidebar .close-button {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

#sidebar button[type=submit] {
	background-color: var(--color-green-dark);
	color: white;
	margin: 1rem 0;
	width: 100%;
}

#sidebar button[type=submit]:hover {
	background-color: var(--color-green-darkest);
}

#sidebar label {
	margin: 1rem 0;
}

#sidebar input, #sidebar select, #sidebar textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
}
