@import "fonts.css";

:root {
	--background-colour: white;
	--blur: 0.5rem;
	--box-background-colour: rgba(255, 255, 255, var(--box-background-transparency));
	--box-background-transparency: 0.5;
	--box-corner-radius: 2em;
	--font-size: 1.636rem;
	--icon-filter: invert(1);
	--text-colour: black;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background-colour: black;
		--box-background-colour: rgba(0, 0, 0, var(--box-background-transparency));
		--icon-filter: invert(0);
		--text-colour: white;
	}
}

a {
	color: var(--text-color);
}

body {
	background-color: var(--background-colour);
	color: var(--text-colour);
	font-size: var(--font-size);
}

em {
	font-style: normal;
	font-weight: bold;
}

.box {
	backdrop-filter: blur(var(--blur));
	background: var(--box-background-colour);
	border-radius: var(--box-corner-radius);
	max-width: calc(100vw - 4rem);
	padding: 0.5em 1em;
	text-align: center;
	width: fit-content;
}

.centre {
	left: 0;
	margin-inline: auto;
	right: 0;
}

.footer {
	bottom: 1rem;
	position: absolute;
}

/* Leave space between two <div> elements within a footer */
.footer div + div {
	margin-top: 1em;
}

.footer div {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	justify-content: center;
	line-height: 1;
	row-gap: 0.75em;
}

.footer img {
	display: block;
	filter: var(--icon-filter);
	height: 1em;
	object-fit: contain;
	width: 1em;
}

.footer span[aria-hidden] {
	user-select: none;
}