/*CSS reset*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
/*ol, ul {
	list-style: none;
}*/
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*END CSS reset*/

:root {
	scroll-behavior: smooth;
	--primary: #ffe1a2;
	--secondary: #e690b8;
}

body {
	background: #000;
	box-sizing: border-box;
	color: var(--primary);
	font-size: 1.2em;
	line-height: 1.3em;
	font-family: 'Times New Roman', serif;
}

#bar {
	height: 2.5em;
	background: url('img/bar.png') center;
	background-size: contain;
	opacity: 0.8;
}

#container {
	max-width: 800px;
	margin: 0.75em auto 1em;
	padding: 0 1em 0 1em;
}

h1 img {
	max-width: 100%;
}

h1,h2,h3 {
	text-align: center;
	line-height: 1.3em;
}

h1,h2,h3,p {
	margin-bottom: 0.5em;
}

section {
	margin-bottom: 1.5em;
}

section p:nth-of-type(1):first-letter {
	color: var(--secondary);
	float: left;
	font-size: 2em;
	padding: 0 0.035em 0 0;
}

section p:nth-of-type(1) {
	text-indent: 0;
}

p {
	text-indent: 2em;
	line-height: 1.5em;
}


h1 {
	font-size: 3.5em;
	text-transform: uppercase;
	font-style: italic;
	line-height: 1em;
	color: var(--secondary);
	margin-bottom: 0.25em;
}

h2 {
	font-size: 1.5em;
	margin-top: -0.5em;
}

#updated {
	text-align: center;
	display: block;
	letter-spacing: 1em;
	padding-bottom: 1em;
	border-bottom: 2px solid var(--primary);
}

h3 {
	font-size: 1.3em;
}

section h3 {
	text-decoration: underline;
}

hgroup h1,h2,h3 {
	margin-bottom: 0.25em;
	text-justify: inter-character;
}

hgroup h3 {
	margin-bottom: 0.125em;
}

em, .figdesc {
	font-style: italic;
}

sub {
	position: relative;
	font-size: 75%;
	bottom: -0.25em;
}

ul {
	list-style: none;
	margin-bottom: 1.5em;
}

ul li {
	margin-left: 2.25em;
	padding: 0.5em;
}

ul li::before {
	content: "";
	display: block;
	margin-left: -2.75em;
	margin-right: 1.5em;
	margin-top: 0.5em;
	margin-bottom: -2.5em;
	line-height: 0;
	width: 2.2em;
	height: 2.2em;
	background: url('img/cube.svg') no-repeat;
}
	

article {
	counter-reset: footnotes figures;
}

a[aria-describedby="footnotelabel"] {
	counter-increment: footnotes;
	text-decoration: none;
	color: inherit;
	cursor: text;
	outline: none;
}

a[aria-describedby="footnotelabel"]::after {
	content: '[' counter(footnotes) ']';
	position: relative;
	font-size: 75%;
	top: -0.5em;
	margin-left: 0.1em;
	color: var(--secondary);
	cursor: pointer;
}


strong {
	font-weight : bold;
}

a, #updated {
	color: var(--secondary);
	text-decoration: none;
}


#importantimage {
	height: 17em;
	border: 1em solid;
	border: 1px solid var(--primary);
	background: url('img/x.svg') 0.5em 0.5em no-repeat;
	max-width: 17em;
	margin: 1em auto 0;
}

.fig {
	display: block;
	margin: 0 auto 0;
	counter-increment: figures;
}

.equation {
	font-size: 1.5em;
	text-align: center;
	text-indent: 0;
}

#cull {
	width: 250px;
	height: 225px;
	margin-top: 1em;
	background-image: url('img/cull.png'); 	
	animation: sprite 1.5s steps(1) infinite alternate;
	image-rendering: pixelated;
}

.figdesc em {
	font-style: normal;
}

.fig img {
	display: block;
	max-width: calc(100% - 4em);
	margin: 0 auto 0;
}

.figdesc::before {
	content: 'fig. ' counter(figures)': ';
	font-weight : bold;
}	

@keyframes sprite {
	0% {background-position: 0 1px;}
	4.1666% {background-position: 0 226px;}
	8.3333% {background-position: 0 451px;}
	12.5% {background-position: 0 676px;}
	16.666% {background-position: 0 901px;}
	20.8333% {background-position: 0 1126px;}
	25% {background-position: 0 1351px;}
	29.1666% {background-position: 0 1576px;}
	33.333% {background-position: 0 1801px;}
	37.5% {background-position: 0 2026px;}
	41.666% {background-position: 0 2251px;}
	45.8333% {background-position: 0 2476px;}
	50% {background-position: 0 2701px;}
	54.1666% {background-position: 0 2926px;}
	58.333% {background-position: 0 3151px;}
	62.5% {background-position: 0 3376px;}
	66.666% {background-position: 0 3601px;}
	70.8333% {background-position: 0 3825px;}
	75% {background-position: 0 4051px;}
	79.1666% {background-position: 0 4276px;}
	83.333% {background-position: 0 4501px;}
	87.5% {background-position: 0 4726px;}
	91.666% {background-position: 0 4951px;}
	95.8333% {background-position: 0 5176px;}	
}

ol, .license, #hitcounter {
	border-top: 2px solid var(--primary);
}

ol {
	padding-top: 0.75em;
	list-style-type: space-counter;
}

ol li {
	margin-left: 1.5em;
	font-size: 0.9em;
	padding: 0.5em;
}

.license {
	padding-top: 0.5em;
	margin-top: 1em;
}	

#browser {
	text-align: center;
	font-size: 0.8em;
	line-height: 1em;
	color: var(--secondary);
	margin: 0 auto 0.5em;
	display: block;
	opacity: 0.75;
}

.contact {
	padding-bottom: 1em;
}

.email {
	display: block;
	padding-top: 0.5em;
	font-size: 1.5em;
	text-align: center;
	color: var(--secondary);
	text-transform: uppercase;
	font-style: italic;
}

.contact img {
	display: block;
	margin: 1em auto 0;
	max-width: 100%;
}

#hitcounter {
	margin-bottom: 0;
}

table {
	margin: 1em auto;
	max-width: 100%;
}

tr {
	margin: 0 auto;
	border: 0.5em ridge var(--primary);
}

td {
	border: 1px solid var(--primary);
	color: var(--secondary);
	font-size: 1.6em;
	padding: 0.2em;
	text-shadow: 0 2px 0 rgba(255,255,255,0.2);
}

#unit {
	display: block;
	text-align: center;
	font-size: 2em;
	font-style: italic;
	color: var(--secondary);
	margin-bottom: 0.3em;
	margin-top: -0.2em;
	animation: blink 1s steps(2) infinite;
}

@keyframes blink {
	0% {opacity: 1;}
	100% {opacity: 0;}
}

#obituary {
	text-align: center;
	font-style: italic;
	display: block;
	margin: 0 auto;
}

small {	
	font-size: 0.8em;
	line-height: 1em;
}

footer ol {
	border-bottom: 2px solid var(--primary);
}

footer :target {
  background: rgba(230, 144, 184, 0.12);
}

::selection {
	background: var(--primary);
	color: #000;
}