/* QuicklyFly frontend: progress bar and page transitions. */

#quicklyfly-progress {
	background: var(--quicklyfly-progress-color, #0a3df0);
	height: 3px;
	left: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	right: 0;
	top: 0;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s ease-out, opacity 0.2s ease-out;
	z-index: 2147483000;
}

#quicklyfly-progress.is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	html.quicklyfly-loading {
		cursor: progress;
	}

	/* Native view transitions: fade (default crossfade, tuned) and slide. */
	html[data-quicklyfly-transition="fade"]::view-transition-old(root),
	html[data-quicklyfly-transition="fade"]::view-transition-new(root) {
		animation-duration: 160ms;
	}

}
