@import url("../assets/keyboard.css?version=15");

body {
	-webkit-touch-callout: none;
	/* Disable callout (popup menu) */
	touch-action: manipulation;
	/* Prevent unintended zooming */
}

.pageContainer {
	padding: 10px;
	display: flex;
	flex-direction: column;
	padding-bottom: calc(20px + env(safe-area-inset-bottom));
	height: 100%;
}

.header {
	/* default header height override */
	margin-bottom: 0 !important;
}

h1 {
	font-size: 26px;
}

a {
	display: block;
}

.play {
	background: #58a351 !important;
	color: white !important;
	border-bottom: 5px solid rgba(0, 0, 0, 0.1);
}

.playing {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.buffer {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	overflow-y: auto;
	overflow-x: hidden;
}

#advertBox {
	top: 10px;
}

#secretquote {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-height: 360px;
	height: 100%;
	margin: 20px 0;
}

/* @media (min-width: 500px) {
	#secretquote {
		scale: 1.25;
	}
} */

.word-container {
	display: inline-flex;
	margin: 10px 12.5px;
	margin-top: 15px;
}

.letter {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 800;
	height: 22px;
	width: 22px;
	text-align: center;
	cursor: pointer;
	border-bottom: 2px solid #999999;
	/*			margin:1px;*/
	/* Mobile touch optimization */
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.theme-dark .letter {
	border-bottom: 2px solid #666666;
}

.letter::after {
	content: attr(data-code);
	/* Get the code from the data attribute */
	position: absolute;
	top: 100%;
	/* Move it below the div */
	left: 50%;
	transform: translateX(-50%);
	font-size: 16px;
	color: #999999;
	margin-top: 2px;
	/* Space between letter and code */
	white-space: nowrap;
	width: 100%;
	font-weight: 600;
}

.theme-dark .letter::after {
	color: #666666;
}

.incorrect:not(:empty) {
	color: red;
	animation: shake 0.3s ease-in-out;
}

.incorrect:not(:empty):after {
	color: red !important;
}

@keyframes shake {
	0% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	50% {
		transform: translateX(5px);
	}

	75% {
		transform: translateX(-5px);
	}

	100% {
		transform: translateX(0);
	}
}


.complete:after {
	display: none;

}

.punctuation {
	border: none;
}


.controls div {
	padding: 8px;
	color: var(--white);
	background: var(--black);
	border-radius: 7px;
	width: calc(33.33% - 4px);
	margin: 2px;
	font-weight: 600;
}

.active {
	background: var(--yellow);
}

.active::after {
	background: var(--yellow);
	color: black !important;
}

.grey {
	font-weight: bold;
}

.roundTitle {
	font-weight: 700;
}

.completed {
	background: var(--card-color);
	padding: 15px;
	border-radius: 10px;
	border: 0.5px solid var(--border-color);
}