/* CYANOBACTERIA.CSS v1.1 */
/* HTML/CSS layout template from https://ribo.zone/free/layouts/ */
/* last updated: june 28, 2026 */

/* start light mode styling */
	:root {
		--text: darkslategrey;
		--border: lightgrey;
		--accent: teal;
		--bg: #000000;
		--gradient-top: white;
		--gradient-bottom: rgb(240, 248, 255, .8);
	}
	header {
		background: url('../../../microscopy/arthrospira.png');
	}
/* end light mode styling */


/* start dark mode styling */
	@media (prefers-color-scheme: dark) {
		:root {
			--text: white;
			--border: #5a7678;
			--accent: #74C365;
			--bg: rgb(0,60,60,.8);
			--gradient-bottom: rgb(0, 50, 60);
			--gradient-top: darkslategrey;
			a:link { color: lightblue; }
		}
		header {
			background: url('../../../microscopy/dolichospermum.png');
		}
	}
/* end dark mode styling */


* { 
	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);

	/* page background image (tileable) */
	background-image: url('backgrounds/PLANK01.png');
	background-repeat: repeat;
	background-position: top left;
	background-color: #FDFBF6;
}


.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	display: flex;
	flex-wrap: wrap;
	padding: 4px;
	gap: 5px;

	/* Translucent background image over a semi-transparent base color */
	background: 
		linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
		url('https://flancrestenterprises.neocities.org/backgrounds/PLANK01.png') repeat top left;

	/* Windows 98 bevelled outer border */
	border-top: 3px solid #ffffff;
	border-left: 3px solid #ffffff;
	border-right: 3px solid #000000;
	border-bottom: 3px solid #000000;
	
	outline: 2px solid #808080;
	outline-offset: -5px;

	border-radius: 0px;
}


/* Column widths */
.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: 75px;
	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 var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradient-top);
}


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 5px;
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradient-bottom));
	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,var(--bg), var(--gradient-bottom), var(--gradient-top));
}

div.small > img {
	display: block;
	margin: 5px auto;
	border: 2px ridge var(--border);
	border-radius: 5px;
}


/* Base Section Styling */
section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: 
		linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
		url('https://flancrestenterprises.neocities.org/backgrounds/PLANK01.png') repeat top left;
	padding: 5px;
}


/* Windows XP Section Link Wrapping */
a.section-link {
	text-decoration: none;
	color: inherit;
	display: block;
	width: 100%;
	font-family: "Tahoma", "Segoe UI", sans-serif;
	transition: all 0.1s ease-in-out;
}

/* Replaces standard section styling when wrapped inside a Windows XP section link */
a.section-link section {
	background: linear-gradient(180deg, #FFFFFF 0%, #ECE9D8 40%, #D8D2BD 100%);
	border: 1px solid #003c74;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px #ffffff, 1px 1px 2px rgba(0, 0, 0, 0.2);
}

a.section-link:hover section {
	background: linear-gradient(180deg, #FFF0CF 0%, #FEE1A9 40%, #F3B85B 100%);
	border-color: #e59700;
	cursor: pointer;
}

a.section-link:active section {
	background: linear-gradient(180deg, #CDD6E5 0%, #A8B8D0 100%);
	border-color: #003c74;
	box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4);
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


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;
}

img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a.section-link:hover, a.section-link:focus {
	font-style: normal; /* Prevents entire section text from slanting on hover */
}
a:visited {
	color: var(--accent);
}