@import url("https://fonts.googleapis.com/css2?family=Jua&display=swap");

:root {
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Jua", sans-serif;
	/* background: linear-gradient(135deg, #f8f7ff 0%, #f3f3f3 100%); */
	background-color: white;
	color: #333;
	overflow: hidden;
}

.stage {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	touch-action: none;
	display: flex;
	justify-content: center;
	align-items: center;
}

.inner-stage {
	width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

.first-word-cont {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.8em;
	margin-bottom: 0.5em;
}

.second-word-cont {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.8em;
	margin-bottom: 0.5em;
}

.letter {
	/* position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	font-size: clamp(3.2rem, 8vw, 6.2rem);
	line-height: 1; */
	font-size: clamp(15rem, 8vw, 6.2rem);
	user-select: none;
	cursor: grab;
	will-change: transform;
	transform-origin: center center;
	text-shadow: 0.03em 0.03em 0 rgba(0, 0, 0, 0.16);
	filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2));
	-webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.08);
}

.letter:active {
	cursor: grabbing;
}

.first-word {
	color: #fd9c0e;
}

.blue {
	color: #09afef;
}

.red {
	color: #f34200;
}

.green {
	color: #1bcc6d;
}

.yellow {
	color: #fbc300;
}

/* font-size: clamp(15rem, 8vw, 6.2rem */

@media (max-width: 900px) {
	.letter {
		font-size: clamp(10rem, 9vw, 3.6rem);
	}
}

@media (max-width: 700px) {
	.letter {
		font-size: clamp(5rem, 9vw, 3.6rem);
	}
}

@media (max-width: 400px) {
	.letter {
		font-size: clamp(4rem, 9vw, 3.6rem);
	}
}
