/* The *Screen elements (see the naming-convention comment at the top of
   ui/modal.js): app-controlled overlays, shown/hidden on the app's own
   schedule via showScreen()/hideScreen(), none of them user-dismissable
   (no close button, no backdrop click, no Escape handling) — see each
   section in ui/modal.js for why that's deliberate per screen. */

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/*                     TITLE SCREEN                         */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#titleScreen {
	z-index: var(--z-titleScreen);

	background-color: hsl(var(--c1-hue), var(--c1-sat), var(--c1-med));
	color: hsl(var(--c1-hue), var(--c1-sat), var(--c1-dark));

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 3rem;
}

#titleScreenTitle {
	display: flex;
	flex-flow: column nowrap;
	align-items: end;
}

#titleScreenButtons {
	display: flex;
	flex-flow: column nowrap;
	gap: 0.875rem;
}

#titleScreenButtons button {
	background-color: hsl(var(--c1-hue), var(--c1-sat), var(--c1-light));
	color: hsl(var(--c1-hue), var(--c1-sat), var(--c1-dark));
	padding: 10px 20px;
	border: 3px solid;
	border-bottom: 6px solid;
	height: 3.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
}

button#howToButton {
	background-color: transparent;
}

#titleScreenButtons button:active {
	border: 3px solid;
	border-bottom: 4px solid;
	transform: translateY(2px);
}

#titleScreenDetails {
	display: flex;
	flex-flow: column nowrap;
	gap: 0.1875rem;
	/* text-align: center; */
}

#titleScreenDetails #date {
	font-weight: bold;
}

#titleScreen h1 {
	font-size: 8rem;
	margin-bottom: 0.125em;
}

#links {
	font-size: 1.5em;
	margin-top: 0.25em;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

#titleScreen a {
	color: var(--color-dark);
}

@media (max-width: 519px) {
	#titleScreen h1 {
		font-size: 6rem;
		margin-bottom: 0.125em;
	}
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/*                TODAY'S TRIGRAM IS...                     */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* Same flat .full-page treatment as titleScreen — no separate translucent
   overlay wrapper. */
#trigramRevealScreen {
	z-index: var(--z-trigramRevealScreen);
	background-color: hsl(var(--c1-hue), var(--c1-sat), var(--c1-med));
	color: hsl(var(--c1-hue), var(--c1-sat), var(--c1-dark));

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

#trigramRevealScreen.showTemporarily {
	animation: show-temporarily 5s ease;
}

#trigramRevealScreen h3 {
	font-size: 1.5rem;
	padding-bottom: 1rem;
}

#trigramRevealScreen h4 {
	font-size: 1.125rem;
	padding-top: 0.75rem;
}

#trigramReveal {
	width: 14.75rem;
	padding: 1.5rem 1rem;
	border: 6px solid;
	border-radius: 24px;

	display: flex;
	align-items: center;
	justify-content: space-around;

	background-color: white;

	font-size: 4rem;
	font-weight: bold;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/*                      YOU WIN                             */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#youWinScreen {
	z-index: var(--z-youWinScreen);
	display: none;
	opacity: 0;
	background-color: hsl(var(--c3-hue), var(--c3-sat), var(--c3-med));
	color: hsl(var(--c3-hue), var(--c3-sat), var(--c3-dark));

	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

#youWinScreen.fade-in {
	opacity: 1;
	animation: fade-in 2s ease;
}

#youWinScreen.fade-out {
	animation: fade-out 1s ease;
}

#youWinScreen h3 {
	font-size: 4rem;
	padding-bottom: 1em;
}

#youWinScreenButtons {
	display: flex;
	flex-flow: column nowrap;
	gap: 0.875rem;
}

#youWinScreenButtons button {
	background-color: hsl(var(--c3-hue), var(--c3-sat), var(--c3-light));
	color: hsl(var(--c3-hue), var(--c3-sat), var(--c3-dark));
	padding: 10px 20px;
	border: 3px solid;
	border-bottom: 6px solid;
	height: 3.5rem;
	font-size: 1.5rem;
	font-weight: bold;
	border-radius: 8px;
	cursor: pointer;
	position: relative;
}

button#viewStatsButton {
	background-color: transparent;
}

#youWinScreenButtons button:active {
	border: 3px solid;
	border-bottom: 4px solid;
	transform: translateY(2px);
}

#youWinScreenButtons i {
	padding-right: 0.375rem;
	/* font-size: 0.875em; */
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/*                NO LANDSCAPE SCREEN                       */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* .modal-screen: a holdover name from before helpDialog/statsDialog became
   real <dialog>s (all three used to share this class as plain overlay
   divs). noLandscapeScreen is its only remaining user — still a plain div,
   deliberately not a <dialog>, since dismissing it wouldn't make the app
   fit the viewport anyway (see the comment in ui/modal.js). */
.modal-screen {
	display: none;
	z-index: var(--z-modalScreen);
	overflow: auto;
	cursor: pointer;
	background-color: var(--color-translucent);
}

#noLandscapeScreen {
	display: none;
	z-index: var(--z-noLandscape);
	background-color: black;

	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
}

#noLandscapeMessage {
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.25rem;
}

#noLandscapeMessage img {
	max-width: 25%;
	height: auto;
	margin-bottom: 1.5rem;
}

#noLandscapeMessage p:last-child {
	font-weight: bold;
}
