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

:root {
	--text: #2E3532;
	--bg: #E8E2E1;
	--link: #E85A74;
	--accent: #CFC2C2;
	--secondary: #cbaec1;
}
/*IMPORTERADE TYPSNITT*/
/*font-family: "Atkinson Hyperlegible Next", sans-serif;*/
@import url(https://fonts.bunny.net/css?family=atkinson-hyperlegible-next:200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i);

@import url(https://fonts.bunny.net/css?family=zilla-slab-highlight:400,700);
   /* font-family: 'Zilla Slab Highlight', display; */

/*ANDRA TYPSNITT*/
@font-face { 
font-family: "CirrusCumulus"; 
src: url(layout/fonts/cirruscumulus/CirrusCumulus.woff) format("woff"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}

@font-face { 
font-family: "Redaction20r"; 
src: url(layout/fonts/redaction/Redaction_20-Regular.woff2) format("woff2"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}

@font-face { 
font-family: "Redaction20i"; 
src: url(layout/fonts/redaction/Redaction_20-Italic.woff2) format("woff2"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}

@font-face { 
font-family: "Redaction20b"; 
src: url(layout/fonts/redaction/Redaction_20-Bold.woff2) format("woff2"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}

@font-face { 
font-family: "Redaction35r"; 
src: url(layout/fonts/redaction/Redaction_35-Regular.woff2) format("woff2"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}


@font-face { 
font-family: "Redaction35i"; 
src: url(layout/fonts/redaction/Redaction_35-Italic.woff2) format("woff2"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}

@font-face { 
font-family: "Redaction35b"; 
src: url(layout/fonts/redaction/Redaction_35-Bold.woff2) format("woff2"); 
font-weight: normal;
font-style: normal; 
font-display: swap; 
}

/*SLUT PÅ TYPSNITT*/

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

body { 
	font-family: "Atkinson Hyperlegible Next", sans-serif; 
	font-weight:300;
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
}

* { 
	box-sizing: border-box;
	scrollbar-color: var(--link) var(--secondary);
}

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

img { max-width: 100% }

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

main {
	margin: 10px auto;
	max-width: 60rem;
}

section {
	margin: 2em auto;
	padding: 1em 2em;
	border: 1px dashed var(--secondary);
	outline: 1px dotted var(--secondary);
	outline-offset: 5px;
	max-width: calc(100% - 10px);
}

nav a, .up a {
	color: var(--link);
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-weight:500;
	display: block;
	margin: 10px;
	padding: 10px;
	text-decoration: none;
	font-size: 20px;
	background-color: rgb(0,0,0,0);
	justify-content:center;
}

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

header {
	display: flex;
	justify-content: space-between;
	max-width: calc(100% - 20px);
}

.headertext {
        font-family: "CirrusCumulus", display;
        font-weight:normal;
        font-size: 40px;
        text-align: left;
        color: var(--link);      
 }

header div { margin: 20px 10px 0 20px; }

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

h1, h2, h3 { font-family: 'Zilla Slab Highlight', display; font-weight: normal; }

a { color: var(--link); 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 { 
	background-color: var(--link);
	color:var(--bg);
}

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: 3.75em; text-align: center; }

blockquote {
	border-left: var(--link) 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;
	}
}
