/* Angle Theorems - shared styles (Default.asp, ShowOne.asp, Random.asp) */

/* ---------- Page header: Transum logo to the left of the title ---------- */
.page-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 10px auto 0;
	padding: 0 10px;
}
.page-header h1 {
	margin: 0;
	line-height: 0;
}
.page-header h1 img {
	display: block;
	max-width: 100%;
	height: auto;
}
.transum-logo {
	flex: 0 0 auto;
	line-height: 0;
}
.transum-logo img {
	display: block;
	width: 80px;
	height: 80px;
}

/* ---------- Default.asp: grid of the nine theorems ---------- */
.theorem-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	max-width: 760px;
	margin: 10px auto;
	padding: 0;
	list-style: none;
}
.theorem-grid a {
	display: block;
	padding: 4px;
	border-radius: 4px;
}
.theorem-grid a:hover,
.theorem-grid a:focus {
	outline: 2px solid #336699;
}
.theorem-grid img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.theorem-statement {
	position: fixed;
	bottom: 1%;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	max-width: 96%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px;
	background-color: #ffc;
	border: 2px solid #000;
	font-size: 1.2em;
}

/* ---------- ShowOne.asp ---------- */
.theorem-title {
	max-width: 900px;
	margin: 16px auto;
	font-size: 1.8em;
}
.theorem-diagram {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.geogebra-frame {
	display: block;
	max-width: 100%;
	margin: 0 auto;
	border: 0;
}

/* Three examples panel */
#ThreeExamples {
	max-width: 960px;
	margin: 60px auto;
	padding: 10px 16px 20px;
	border: 2px solid #000;
	border-radius: 6px;
	background-color: #fff;
	box-sizing: border-box;
}
#ThreeExamples h2 {
	margin: 6px 0 4px;
}
.examples-intro {
	margin: 0 0 10px;
	color: #444;
}
.examples-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.ae-example {
	flex: 1 1 260px;
	max-width: 290px;
	margin: 0;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background-color: #fdfdf8;
}
.ae-heading {
	font-weight: bold;
	font-size: 1.1em;
}
.ae-svg {
	display: block;
	width: 100%;
	height: auto;
}
.ae-task {
	margin: 4px 0;
	font-size: 1.2em;
}
.ae-answer {
	margin-top: 6px;
	padding: 6px;
	border-top: 1px dashed #999;
	background-color: #eef7ee;
}
.ae-answer[hidden] {
	display: none;
}
.ae-result {
	margin: 0 0 4px;
	font-size: 1.2em;
	font-weight: bold;
	color: #1a6b1a;
}
.ae-reason {
	margin: 0;
	font-size: 0.95em;
}
.disclaimer {
	margin: 14px 0 8px;
	font-size: 0.9em;
	font-style: italic;
	color: #555;
}
.examples-buttons button {
	margin: 0 6px;
	padding: 8px 18px;
	font-size: 1.1em;
	color: #fff;
	background-color: #336699;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
.examples-buttons button:hover,
.examples-buttons button:focus {
	background-color: #224466;
}

/* SVG drawing styles */
.ae-line,
.ae-box,
.ae-dash,
.ae-tick,
.ae-arrow {
	fill: none;
	stroke: #000;
	stroke-linecap: round;
}
.ae-line { stroke-width: 2; }
.ae-box { stroke-width: 1.5; }
.ae-tick { stroke-width: 1.5; }
.ae-dash { stroke-width: 1.5; stroke-dasharray: 6 4; }
.ae-arrow { stroke-width: 2; stroke-linejoin: round; }
.ae-dot { fill: #000; }
.ae-arc-given { fill: none; stroke: #1f5fbf; stroke-width: 2; }
.ae-arc-unknown { fill: none; stroke: #c0392b; stroke-width: 2; }
.ae-svg text {
	font-family: Arial, Helvetica, sans-serif;
	text-anchor: middle;
	dominant-baseline: central;
}
.ae-name { font-size: 15px; fill: #333; }
.ae-given { font-size: 16px; font-weight: bold; fill: #1f5fbf; }
.ae-unknown { font-size: 19px; font-weight: bold; font-style: italic; fill: #c0392b; }
.ae-expr { font-size: 16px; font-weight: bold; font-style: italic; fill: #c0392b; }

@media (max-width: 820px) {
	.theorem-grid { grid-template-columns: repeat(2, 1fr); }
	.page-header { flex-wrap: wrap; }
}
