/* CYANOBACTERIA.CSS v1.1 */
/* HTML/CSS layout template from https://ribo.zone/free/layouts/ */

/* default color styling
:root {
 --text: #fdf9c2;
 --border: #537593;
 --accent: #5fe4df;
 --bg: #092b49;
 --bg-light: #2a4c6a;
 a:link { color: var(--accent); }
 }
*/

:root {
	--text: #fdf9c2;
	--border: #4a76a1;
	--accent: #5fe4df;
	--bg: #002d57;
	--bg-light: #214d78;
	a:link { color: var(--accent); }
}

@font-face{
	font-family: 'custom';
	src: url('./assets/fonts/startstory.ttf');
}

@font-face{
	font-family: 'custom_small';
	src: url('./assets/fonts/courier_prime_sans.ttf');
}

@font-face{
	font-family: 'custom_small_bold';
	src: url('./assets/fonts/courier_prime_sans_bold.ttf');
}

header {
	background: url('./assets/konpeito_blue.png');
}


* { 
	box-sizing: border-box;
	scrollbar-color:  var(--border) var(--bg);
}
html {
	overscroll-behavior: none;
}
body {
	padding: 10px;
	font-family: 'custom';
	color: var(--text);

	/* page background pattern */

	background-color: var(--bg);
	background-image: url('./assets/background.jpg');
	background-attachment: fixed;
	/*background-image: radial-gradient(var(--bg-light) 1.5px, var(--bg) 1.5px);
	/*adjusts dot spacing
	background-size: 20px 20px;
	background-position: 0 0,10px 10px;*/
}



.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--bg-light);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--bg);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--bg) 9px ), repeating-linear-gradient( var(--bg), var(--bg));

}
/* these control the column widths */
.micro { flex: 1 1 5%; }
.small { flex: 1 1 10%; }
.large { flex: 1 1 72%; }
.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(--bg-light);
}


nav {
	color: var(--accent);
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--bg-light),var(--bg));
}
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(--bg));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;

	font-family: 'custom_small_bold';
}
nav a:link, nav a:visited {
	color: var(--text);
}
nav a:hover, nav a:focus {
	color: var(--accent);
	background: linear-gradient(to right,var(--bg), var(--bg), var(--bg-light));
}

/* 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(--bg-light),var(--bg));
	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 {
	color: var(--accent);
	margin: 5px;
	line-height: 1.2;
}
h1 { 
	font-size: 1.5rem;
	letter-spacing: 1.5px;
	font-weight: bold;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
	/*
	background: linear-gradient(180deg, #fdf9c2 0%, #5fe4df 100%);
	color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-fill-color: transparent;
	*/
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.125rem;
}
p, li {
	color: var(--text);
	font-family: 'custom_small';
	font-weight: bold;
	font-size: .95rem;

}


/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}
