body {
	background: #212169;
	color: white;
	font-family: sans-serif;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	gap: 2em;
	margin: 0;
	cursor: default;
	user-select: none;
}

.header {
	margin-top: 4em;
	display: flex;
	justify-content: center;
	gap: 1em;
	align-items: center;
}

.header img {
	border-radius: 50%;
	flex: 0 0 auto;
	pointer-events: none;
}

.cards {
	margin: 0 2em;
	padding-bottom: 2em;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2em;
}

.card {
	background: #4a66bb;
	padding: 0 2em;
	border-radius: .5em;
	min-width: 200px;
}

@media (max-width: 500px) {
	.card {
		flex: 1 1 100%;
	}
}

.card ul {
	list-style: none;
	padding: 0;
}

.card li {
	margin: 0.5em -1em;
	border-radius: 0.5em;
	transition: background .5s;
}

.card a {
	cursor: pointer;
	display: inline-block;
	padding: 0.5em;
	color: white;
	text-decoration: none;
	filter: brightness(100%) sepia(0%) saturate(0%) hue-rotate(180deg);
	transition: filter .5s;
}

.card li:has(a:hover) {
	background: white;
}

.card a:hover {
	filter: brightness(12%) sepia(100%) saturate(1000%) hue-rotate(210deg);
}

.card a span {
	background-image: var(--icon-url);
	background-size: contain;
	background-repeat: no-repeat;
	padding-left: 1.6em;
}

.overlay:not(:has(.popup-active)),
.popup:not(.popup-active) {
	display: none;
}

body:has(.popup-active) {
	overflow: hidden;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #212169cc;
	display: flex;
	justify-content: center;
	align-items: center;
}

.popup {
	position: relative;

	max-width: 400px;
	max-height: calc(100vh - 6em);
	margin: 3em 1em;
	padding: 0 2em 0.5em;

	overflow: auto;
	background: #4a66bb;
	border-radius: 0.5em;

	text-align: left;
	line-height: 1.6;
}

.popup a {
	color: white;
	padding: 0.1em 0.2em;
	margin: -0.1em -0.2em;
	border-radius: 0.5em;

	background: #21216944;
	transition: background 0.5s;

	text-decoration: none;
}

.popup a[onclick] {
	cursor: pointer;
}

.popup a:hover {
	background: #212169;
}

.popup a.popup-close {
	position: absolute;
	top: 1em;
	right: 1em;
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	border-radius: 1em;

	margin: 0;
	padding: 0.2em;

	text-align: center;
}

.popup code {
	user-select: text;
	cursor: text;
}
