/* CYANOBACTERIA.CSS - Red Theme with Light Green / Light Blue Checkerboard */

/* =========================
   LIGHT MODE
========================= */
:root {
	--text: #2b0000;
	--border: #8b0000;
	--accent: #ff4040;
	--bg: #ffb3b3;
	--gradient-top: #ffe6e6;
	--gradient-bottom: #ffcccc;
}

header {
	background: #990000;
}

/* =========================
   DARK MODE
========================= */
@media (prefers-color-scheme: dark) {
	:root {
		--text: #ffffff;
		--border: #ff5555;
		--accent: #ff9999;
		--bg: #660000;
		--gradient-top: #990000;
		--gradient-bottom: #440000;
	}
	header {
		background: #550000;
	}
}

/* =========================
   GLOBAL
========================= */

* {
	box-sizing: border-box;
	scrollbar-color: var(--border) var(--gradient-bottom);
}

html {
	overscroll-behavior: none;
}

body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);

	/* Light green / light blue checkerboard */
	background-color: #90ee90;
	background-image:
		linear-gradient(45deg, #add8e6 25%, transparent 25%),
		linear-gradient(-45deg, #add8e6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #add8e6 75%),
		linear-gradient(-45deg, transparent 75%, #add8e6 75%);
	background-size: 64px 64px;
	background-position:
		0 0,
		0 32px,
		32px -32px,
		-32px 0;
}

.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;

	border: 6px ridge var(--border);
	outline: 3px solid var(--gradient-top);
	outline-offset: 4px;
	border-radius: 10px;

	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	background: linear-gradient(var(--gradient-top), var(--gradient-bottom));
}

.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }

header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px;
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}

header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow:
		1px 1px #000,
		-1px 1px #000,
		1px -1px #600,
		-1px -1px #600;
	color: white;
}

/* =========================
   NAVIGATION
========================= */

nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradient-top), var(--gradient-bottom));
}

nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px;
}

nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right, #ffb3b3, #ffdddd);
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}

nav a:link,
nav a:visited {
	color: var(--text);
}

nav a:hover,
nav a:focus {
	background: linear-gradient(to right, #ff8888, #ffcccc, #fff0f0);
}

/* =========================
   SIDEBAR IMAGE
========================= */

div.small > img {
	display: block;
	margin: 5px auto;
	border: 2px ridge var(--border);
	border-radius: 5px;
}

/* =========================
   CONTENT
========================= */

section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradient-top), var(--gradient-bottom));
	padding: 5px;
}

/* =========================
   FOOTER
========================= */

footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}

footer a {
	text-decoration: none;
}

/* =========================
   HEADINGS
========================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 5px;
	line-height: 1.2;
}

h1 {
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}

h2 {
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}

h3 {
	font-size: 1.1rem;
}

h4 {
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

/* =========================
   LINKS
========================= */

a:hover,
a:focus {
	font-style: italic;
}

a:visited {
	color: var(--accent);
}

/* =========================
   MISC
========================= */

img {
	max-width: 100%;
}

pre {
	overflow-x: auto;
}