/* ========== BASE TEXT STYLES ========== */

body {
	background: black;
	font-family: Tahoma, system-ui, sans-serif;
	color: whitesmoke;
	margin: 0;
	line-height: 1.6;
}

/* Optional: a centered content wrapper */
.page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

/* Paragraphs */
p {
	margin-left: 12px;
	margin-right: 6px;
	margin-bottom: 12px;
	margin-top: 6px;
}

/* Headings */
h2,
h3 {
	margin-left: 16px;
	margin-right: 16px;
	margin-bottom: 16px;
	margin-top: 8px;
}

/* ========== IMAGES ========== */

img {
	width: 25vw;
	max-width: 800px;
	height: auto;          /* NEW: avoid squishing/stretching */
	border: 1px solid gray;
	display: block;
	margin: 0.5rem auto;  /* center images by default */
}

.smallImg {
  width: 20vw;
  min-width: 120px;
  max-width: 260px;
  height: auto;
}

/* ========== LINKS ========== */
/*
a {
	font-weight: bold;
	color: rgb(100, 100, 255);
}
*/
a:link,
a:visited,
a:active {
	color: rgb(100, 100, 255);
	text-decoration: none;
}

a:hover {
	color: rgb(0, 255, 0);
	text-decoration: underline overline;
}

/* --- IMPORTANT: keep generic link styles ABOVE nav styles --- */

/* ========== STICKY HEADER / NAV ========== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.5rem;
	background: rgba(15, 23, 42, 0.95);
	border-bottom: 1px solid rgba(148, 163, 184, 0.3);
	backdrop-filter: blur(8px);
}

/* If content is hiding under header, you can add:
main { padding-top: 0.75rem; }
*/

.logo {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.main-nav {
	display: flex;
	gap: 1rem;
}

/* NEW: override generic anchor rules for nav links */
.main-nav a,
.main-nav a:link,
.main-nav a:visited,
.main-nav a:active {
	font-size: 0.9rem;
	text-decoration: none;
	color: #e5e7eb;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.main-nav a:hover {
	background: rgba(148, 163, 184, 0.2);
	color: #ffffff;
	text-decoration: none;       /* keep nav clean */
	transform: translateY(-1px);
}

/* ========== TITLE ROW: GAME TITLE + HELP PANEL ========== */

.title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
	margin: 0 1rem 1rem;
}

#titleLeft,
#titleRight {
	box-sizing: border-box;
	padding: 0.5rem;
}

/* Left side: game title */
#titleLeft {
	flex: 1;
}

.game-title {
	margin: 0;
	font-size: 1.8rem;
}

.game-subtitle {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	color: #d1d5db;
}

/* Right side: dynamic help panel */
#titleRight.help-panel {
	flex: 1.2;
	background: rgba(15, 23, 42, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.6);
	border-radius: 0.5rem;
	min-height: 80px;
}

.help-panel h2 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #cbd5f5;
}

.help-panel p {
	margin: 0;
	font-size: 0.9rem;
	color: #e5e7eb;
}

/* ========== MAIN TWO-COLUMN LAYOUT FOR RULES ========== */

#leftColumn,
#rightColumn {
	float: left;
	box-sizing: border-box;
	padding: 0.5rem;
}

#leftColumn {
	width: 50%;
	/* border: 3px solid #2d21ad; */
}

#rightColumn {
	width: 45%;
	/* border: 3px solid #2d21ad; */
}

/* Clearfix for the parent of the columns (if it's #content, adjust selector) */
#content::after,
.columns::after {
	content: "";
	display: block;
	clear: both;
}

td {
	padding: 0.25rem 0.5rem;
	border: 1px solid gray;
	vertical-align: top;
}

/* ========== Rule Steps Styling ========== */

.step {
	margin: 0.25rem 1rem;
	padding: 0.35rem 0.5rem;
	border-radius: 0.35rem;
	background: rgba(255, 255, 255, 0.05);
	transition: background 0.15s ease, transform 0.1s ease;
	cursor: default; /* removes confusing text cursor */
}

.step:hover {
	background: rgba(100, 149, 237, 0.25); /* slight highlight */
	transform: translateX(4px);
}

a .help-term {
	font-weight: bold;
	/* color: #60a5fa; */
	cursor: help;
	/* border-bottom: 1px dashed rgba(255, 255, 255, 0.4); */
	transition: color 0.15s ease;
}

p .help-term,
li .help-term {
	font-weight: bold;
	cursor: help;
	color: #0088c3;
}

/* ========== FOOTER (OPTIONAL) ========== */

.site-footer {
	text-align: center;
	padding: 1rem 1.5rem 1.5rem;
	font-size: 0.85rem;
	color: #9ca3af;
}

/* ========== Details hide/show ========== */

details.toggle {
  border-left: 3px solid #60a5fa;
  padding-left: 0.75rem;
  margin: 0.5rem 1rem;
}

details.toggle summary {
  cursor: pointer;
  font-weight: bold;
  color: #60a5fa;
}

details.toggle summary::marker {
  color: #60a5fa;
}

details.toggle[open] summary {
  color: #38bdf8;
}



/* ========== RESPONSIVE TWEAKS ========== */

@media (max-width: 900px) {
	.page {
		padding: 0.75rem;
	}

	/* Stack title + help vertically on smaller screens */
	.title-row {
		flex-direction: column;
		margin: 0 0.5rem 1rem;
	}

	#leftColumn,
	#rightColumn {
		width: 100%;
		float: none;
		padding: 0.5rem 0;
	}

	.site-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}
}

@media (max-width: 600px) {
	h2,
	h3 {
		margin-left: 8px;
		margin-right: 8px;
	}

	p {
		margin-left: 8px;
		margin-right: 8px;
	}

	.main-nav {
		flex-wrap: wrap;
	}
}
