/* 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: #dce3e1;
		--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 {
      :root {
        --text: #e2e8f0;               /* Bianco leggermente desaturato, meno stancante del 'white' puro */
        --border: #4a3b69;             /* Viola medio-scuro per i bordi */
        --accent: #b967ff;             /* Viola neon / lilla brillante per far risaltare gli elementi chiave */
        --bg: rgba(26, 16, 43, 0.8);    /* Viola scuro profondo semi-trasparente */
        --gradient-bottom: rgb(20, 10, 35); /* Viola ancora più scuro per il gradiente */
        --gradient-top: #2a1b40;       /* Viola melanzana desaturato scuro */
      }
      
      a:link { 
        color: #a78bfa;               /* Lilla luminoso per i link (molto leggibile) */
      }
    }
		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: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-style: normal;
	color: var(--text);

	/* page background pattern */
	background-color: var(--gradient-top);
	background-image:  linear-gradient(30deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(150deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(30deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(150deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(60deg, var(--bg) 25%, transparent 25.5%, transparent 75%, var(--bg) 75%, var(--bg)), linear-gradient(60deg, var(--bg) 25%, transparent 25.5%, transparent 75%, var(--bg) 75%, var(--bg));
	background-size: 20px 35px;
	background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}

.container {
	max-width: 70rem;
	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;

	/* container background pattern */
	background-color: var(--gradient-bottom);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradient-bottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}

/* these control the 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: 120px; /* change banner height here*/
	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;
}

a {
  text-decoration: none;
}

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, a.links:link, a.links:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus, a.links:hover, a.links:focus {
	background: linear-gradient(to right,var(--bg), var(--gradient-bottom), var(--gradient-top));
}

.definition {
  color: var(--text) !important;
  text-decoration: underline;
}

section a:hover, section a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradient-bottom), var(--gradient-top));
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}

section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradient-top),var(--gradient-bottom));
	padding: 5px;
}

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 { 
  margin-top: 1em;
  margin-bottom: 0.75em;
  margin-left: 1.5em;
	font-size: 1.15rem;
}

h4 { 
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

/* prevents overflow on smaller screens */
img {
  margin: 1em 0.5em;
  max-width: 50%; 
}

.icon-svg {
  margin: 0 0.5em;
  width: 1em;
  height: 1em;
  max-width: 1em;
  max-height: 1em;
  vertical-align: -0.125em; /* Allinea perfettamente l'icona all'altezza del testo */
  display: inline-block;
}

li:not(:last-child) { 
   margin-bottom: 0.5em;
}

pre { overflow-x: auto; }

a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

p {
  line-height: 1.4;
}

figure {
  margin: 0;
}

figcaption {
  margin-left: 2em; 
  margin-bottom: 1em;
}

