.contrast-check-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin-block: 1rem;
}

.contrast-check-image__image,
.contrast-check-image__check {
	grid-column: 1;
	grid-row: 1;
}

.contrast-check-image__image {
	margin: 0;
}

.contrast-check-image__check {
	align-self: end;
	justify-self: end;
	margin: 0.5rem;
}

.contrast-check {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: fit-content;
	background-color: var(--background-color);
	color: var(--color);
	border-radius: 50rem;
	padding: 0.5em 1.25em;
	transition: all 0.25s;
	transition-property: color, background-color;
	backdrop-filter: blur(5px);
	cursor: help;
	&:hover,
	&:active {
		background-color: color-mix(in srgb, black, transparent 10%);
		color: white;
	}
	@media (max-width: 1000px) {
		padding: 0.25em 1em;
	}
}

.contrast-check__ratio {
	font-size: 1.25em;
	font-weight: bold;
	line-height: 1;
	@media (max-width: 1000px) {
		font-size: 1em;
	}
}

.contrast-check__label {
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.65em;
	letter-spacing: 0.05em;
	@media (max-width: 1000px) {
		font-size: 0.5em;
	}
}
