/* CompactCSS source: /games/KAVANAH/style.css */
/* B"H */
/* Boruch Hashem */
/* Blessed is He */

/**
	* The Awtsmoos fills every viewport without trapping a teaching or stealing a gesture;
	* Awtsmoos.com gives the canvas a stable mobile vessel and the scrollable words safe passage.
	*/
html,
body {
	background: #000;
	height: 100%;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
	padding: 0;
	width: 100%;
}

body {
	min-height: 100dvh;
}

#gameCanvas {
	background: #000;
	display: block;
	height: 100dvh;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	width: 100vw;
}

#teachings-screen {
	background: rgba(0, 0, 0, 0.96);
	box-sizing: border-box;
	color: #f4f4f4;
	display: flex;
	flex-direction: column;
	inset: 0;
	min-height: 100dvh;
	padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
	position: fixed;
	z-index: 10;
}

#teachings-screen .content {
	box-sizing: border-box;
	flex: 1 1 auto;
	margin: 0 auto;
	max-width: 640px;
	min-height: 0;
	overflow-y: auto;
	padding: clamp(8px, 2.5vw, 22px);
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

#teachings-screen h1 {
	font-size: clamp(1.55rem, 7vw, 2.8rem);
	line-height: 1.05;
	margin: 0 0 0.6em;
	text-align: center;
}

#teachings-screen h2 {
	font-size: clamp(1.1rem, 4.5vw, 1.7rem);
	line-height: 1.15;
	margin: 1em 0 0.35em;
}

#teachings-screen p {
	font-size: clamp(0.95rem, 3.8vw, 1.2rem);
	line-height: 1.5;
	margin: 0 0 0.85em;
}

#back-button {
	align-self: center;
	flex: 0 0 auto;
	font-size: 1rem;
	margin-top: 10px;
	min-height: 48px;
	touch-action: manipulation;
	width: min(100%, 320px);
}

.hidden {
	display: none !important;
}

@media (pointer: fine) {
	#gameCanvas {
		cursor: crosshair;
	}
}

@media (max-height: 520px) and (orientation: landscape) {
	#teachings-screen {
		padding-block: 8px;
	}

	#teachings-screen h1 {
		font-size: clamp(1.25rem, 4vw, 1.8rem);
		margin-bottom: 0.35em;
	}

	#teachings-screen p {
		font-size: clamp(0.85rem, 2.2vw, 1rem);
		line-height: 1.35;
	}
}
