/* AMOEBA.CSS v1.1 */
/* HTML/CSS layout template from https://ribo.zone/free/layouts/ */
/* last updated: june 28, 2026 */


:root {
	--text: black;
	--line: oldlace; 
	--accent: salmon;
	--fill: gainsboro;
	--bg: white;
	--scroll: indigo
}


html {
	scroll-behavior: smooth;
	overscroll-behavior: none;
}

body { 
	font-family: verdana, sans-serif; 
	margin: 0;
	padding: 0;
}


*::-webkit-scrollbar { width: 0.5px; }
*::-webkit-scrollbar-track { background: var(--bg); }
*::-webkit-scrollbar-thumb { background-color: var(--scroll); border: transparent; }

img { max-width: 100% }

nav {
	display: flex;
	flex-wrap: wrap;
	text-align: right;
	justify-content: right;
}

nav a, .up a {
	color: var(--scroll);
	display: block;
	border: 2px var(--scroll) solid;
	margin: 10px;
	padding: 15px 5px 5px 15px;
	text-decoration: none;
	font-size: 30px;
	background-color: rgb(0,0,0,0);
}

main {
	margin: 3px auto;
	max-width: 100rem;
}

section {
	margin: 1em auto;
	padding: 1em 2em;
	max-width: calc(100% - 10px);
}

hr {
	border: none;
	border-top: 1px solid var(--text);
}

header {
	font-size: 50px;
	margin: 10px;
	display: flex;
	justify-content: space-between;
	font-family: 'terminal';
	font-weight: normal;
	color: var(--scroll);
	max-width: calc(100% - 20px);
}

header div { margin: 20px 10px 0 20px; text-shadow: 3px 3px var(--accent); }

/*Creating the responsive image gallery*/
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create three equal columns that sits next to each other */
.column {
  flex: 32.5%;
  max-width: 32.5%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}
/*Responsive image gallery over*/

h1, h2, h3, h4, h5, h6, p, table, details, cite, pre, blockquote {
	margin: 1rem 0;
}

h1, h2, h3, a { font-family: "terminal"; font-weight: normal; color: var(--scroll)}

a { color: var(--scroll); padding: 2px 4px; font-size: 1.25em; }

ul, ol {
	margin: 1rem 0 1rem 1.5rem;
}

dl { margin: 1rem 0; }

/*dt { */
/*	background: linear-gradient(to right, var(--text), var(--bg));*/
/*	padding: 0.25rem 0.5rem;*/
/*	color: var(--bg);*/
/*}*/

dd { padding: 1rem; }

ul ul, ol ol { 
	margin: 0 0 0 2rem;
}

p, table,  ul, ol, dl {
	font-size: 1rem;
	line-height: 1.5;
}

a:hover, a:active { 
	background-color: var(--scroll);
	color:var(--bg);
}

/*Modal controls for images*/

 /*The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 0px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--bg) 
}

/* Modal Content */
.modal-content {
  position: relative;
  margin:auto;
  padding: 3em;
  width: 80%;
  max-width: 700px;
  height: auto;

}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto; /*30px*/
}

/* The Close Button */
.close {
  color: var(--scroll);
  position: fixed;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
  
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: auto;
  padding: 10px;
  margin-top: -50px;
  color: var(--scroll);
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 30px;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 30px;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  color: var(--bg);
}

/*End modal controls for images*/

figinfo {
  position: fixed;
  display: inline;
  margin: 20px;
  bottom: 20px;
  right:20px;
  color: var(--text);
  padding: 2px;
  text-align: left;
  width: 200px;
  font-size: 14px;
}

/*Use for wide images - text underneath*/
figinfoalt {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--text);
  padding: 10px 0;
  height: 150px;
}
/*I need the text to be somehow attatched to the image, which is placed in the center. */


h6 { font-size: 1em; }
h5 { font-size: 1.25em; }
h4 { font-size: 1.5em; }
h3 { font-size: 2.5em; }
h2 { font-size: 3em; }
h1 { font-size: 2em; text-align: center; }

blockquote {
	border-left: var(--accent) 3px solid;
	padding: 0 1rem;
}

cite { 
	display: block;
	text-align: right;
}

code, pre {
	background-color: var(--text);
	color: var(--bg);
}

details { border: 1px solid; }

code { 
	font-family: 'Courier New', monospace; 
	padding: 2px 4px;
}

details, pre {
	padding: 1em;
}

pre { overflow-x: auto; }

details p { margin: 0.5rem 0 0 2rem; }

table {	border: 3px solid var(--text); margin: 1rem auto; }
tr, td, th { border: 1px solid var(--text); }
td, th { padding: 0.5rem }

figure {  display: table; margin: 1rem; }

figure img { margin: 5px auto; }

figcaption { 
	display: table-caption;
    caption-side: bottom;
    text-align: center;
}

footer { 
	font-size: 0.8em;
	text-align: center; 
	padding: 5px 10px;
	margin: 2rem;
}

.up { position: fixed;
	bottom: 10px; right: 10px; }

.flex-box {
    display:flex;
    flex-wrap:wrap;
    margin: 0 auto;
	padding: 0;
	align-items: flex-start;
}

.flex-box section {
	margin: 1em;
	}

.full { flex: 1 1 100%;}
.half { flex: 1 1 calc(50% - 2em); }
.third { flex: 1 1 calc(33% - 2em); }
.twothird { flex: 1 1 calc(66% - 2em); }
.quarter { flex: 1 1 calc(25% - 2em); }
.threequarter { flex: 1 1 calc(75% - 2em); }


@media screen and (max-width: 1270px){
	.up { position: static; width: fit-content; margin: 10px auto; }
}

@media screen and (max-width: 700px){
	header { flex-wrap: wrap; }
	header div { margin: 5px; }
	nav a {
		margin: 5px;
		padding: 15px 5px 2px 30px;
		text-decoration: none;
		font-size: 24px;
	}
	section {
		margin: 1em auto;
		padding: 0.5em 1em;
	}
	ul, ol {
		margin: 1rem 0 1rem 0.5rem;
	}
	ul ul, ol ol { 
		margin: 0 0 0 1rem;
	}
}