
:root {
	--visit-animation-duration: 3s;
	--visit-animation-end-pause: 1s;
	--visit-animation-fade-duration: 1.2s;
}

/* Theme switch */
.theme-toggle {
	/* display: flex;
	align-items: center; */
	display: block;
	text-align: right;
	gap: 8px;
	margin-top: 10px;
	font-size: smaller;
}

.theme-label {
	color: var(--muted);
}

.theme-toggle-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text);
	background: var(--card-soft);
	font: inherit;
	cursor: pointer;
}

.theme-toggle-button:hover {
	border-color: var(--dash-blue);
}

.theme-icon {
	line-height: 1;
}

.visit-animation {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: flex-end;
	padding-bottom: 50px;
	justify-content: center;
	background: rgba(255, 255, 255, .95);
	animation: visit-animation-fade var(--visit-animation-fade-duration) ease-out calc(var(--visit-animation-duration) + var(--visit-animation-end-pause)) forwards;
}

.visit-animation[hidden] {
	display: none;
}

.visit-animation-svg {
	display: block;
	width: auto;
	height: min(50vh, 938px);
	max-width: 100vw;
	object-fit: contain;
}

@keyframes visit-animation-fade {
	from { opacity: 1; }
	to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.visit-animation {
		animation-duration: .01ms;
		animation-delay: 0s;
	}
}
