:root {
	--loading-bg: #f6f7fc;
	--content-bg: #fff;
	--text-color: rgba(0, 0, 0, 0.84);
	--border-radius: 21px;
	--shadow: rgba(21, 23, 26, 0.06) 0px 0.7rem 1.3rem 0px,
		rgba(21, 23, 26, 0.12) 0px 1rem 2.2rem 0px,
		rgba(21, 23, 26, 0.04) 0px -1px 0px 0px;
	--font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
	--content-padding: 40px;
	--content-width: 800px;
	--gap: 40px;
	--logo-height: 128px;
	--logo-margin-bottom: 32px;
	--quote-font-size: 28px;
	--quote-font-weight: 700;
	--quote-line-height: 1.2;
	--author-font-size: 16px;
	--author-line-height: 32px;
	--dot-size: 8px;
	--dot-container-width: 48px;
	--animation-duration: 0.3s;
	--pulse-duration: 0.5s;
}

.loading-backdrop {
	align-items: center;
	background-color: var(--loading-bg);
	background-position: center center;
	background-size: cover;
	bottom: 0;
	display: flex;
	font-family: var(--font-family);
	justify-content: center;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 50;
}

.loading-backdrop .content {
	align-items: stretch;
	animation: appear var(--animation-duration) ease-out;
	border-radius: var(--border-radius);
	box-sizing: border-box;
	background-color: var(--content-bg);
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: var(--content-padding);
	height: auto;
	width: var(--content-width);
	box-shadow: var(--shadow);
	gap: var(--gap);
	will-change: transform, opacity;
}

.loading-backdrop .left-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 200px;
}

.loading-backdrop .right-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 0;
}

.loading-backdrop .loading-logo {
	height: var(--logo-height);
	margin-bottom: var(--logo-margin-bottom);
}

.loading-backdrop blockquote {
	color: var(--text-color);
	font-size: var(--quote-font-size);
	font-weight: var(--quote-font-weight);
	line-height: var(--quote-line-height);
	margin: 0;
	max-width: 100%;
	padding: 0;
	position: relative;
	text-align: left;
}

.loading-backdrop blockquote #quoteText {
	color: rgba(0, 0, 0, 0.84) !important;
	font-size: 28px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.loading-backdrop blockquote #quoteFooter {
	color: rgba(0, 0, 0, 0.84) !important;
	font-size: 16px !important;
	font-style: italic !important;
	line-height: 32px !important;
	text-align: left !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.loading-backdrop .loading {
	box-sizing: border-box;
	height: 16px;
	margin-top: 0px;
	position: relative;
	width: var(--dot-container-width);
}

.loading-backdrop .loading .dot {
	animation: pulse var(--pulse-duration) infinite alternate both;
	background-color: var(--text-color);
	border-radius: 50%;
	height: var(--dot-size);
	position: absolute;
	width: var(--dot-size);
	will-change: transform, opacity;
}
.loading-backdrop .loading .dot:nth-child(0) {
	animation-delay: 0ms;
	left: 0;
}
.loading-backdrop .loading .dot:nth-child(1) {
	animation-delay: 120ms;
	left: 20px;
}
.loading-backdrop .loading .dot:nth-child(2) {
	animation-delay: 240ms;
	left: 40px;
}

@media (max-width: 576px) {
	:root {
		--content-width: 640px;
		--content-padding: 20px;
		--gap: 20px;
		--logo-height: 80px;
		--logo-margin-bottom: 16px;
		--quote-font-size: 24px;
		--author-font-size: 14px;
		--dot-size: 8px;
		--dot-container-width: 33px;
	}

	.loading-backdrop .content {
		flex-direction: column;
		width: var(--content-width);
		height: auto;
		padding: var(--content-padding);
		gap: var(--gap);
	}
	
	.loading-backdrop .left-column {
		min-width: auto;
	}
	
	.loading-backdrop .right-column {
		flex: none;
	}
	
	.loading-backdrop .loading-logo {
		height: var(--logo-height);
		margin-bottom: var(--logo-margin-bottom);
	}
	#quoteText {
		font-size: var(--quote-font-size);
	}
	#quoteFooter {
		font-size: var(--author-font-size);
	}
	.loading-backdrop blockquote {
		margin-bottom: 0;
		padding-bottom: 0;
	}
	.loading-backdrop .loading .dot {
		width: var(--dot-size);
		height: var(--dot-size);
	}

	.loading-backdrop .loading .dot:nth-child(0) {
		left: 0;
	}
	.loading-backdrop .loading .dot:nth-child(1) {
		left: 14px;
	}
	.loading-backdrop .loading .dot:nth-child(2) {
		left: 28px;
	}
	.loading-backdrop .loading {
		width: var(--dot-container-width);
	}
}

@keyframes appear {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
@keyframes pulse {
	from {
		transform: scale(1.3);
		opacity: 1;
	}
	to {
		transform: scale(1);
		opacity: 0.5;
	}
}

/* For leva debugging tool */
div[class^='leva-c'] {
	z-index: 100000;
}
