@property --bg-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #020D13;
}

@property --page-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #c0c0c0;
}

@property --body-text-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #000000;
}

@property --link-text-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #000000;
}

@property --link-text-color-hover {
    syntax: "<color>";
    inherits: false;
    initial-value: #177b7a;
}

@property --header-text-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #177b7a;
}

@keyframes bgScroll {
    0% {
      background-position : 0px 0px
    }
    100% {
      background-position : 128px -128px
    }
  }


html {
    overflow-x: hidden;
    margin-right: calc(-1 * (100vw - 100%));
    scroll-behavior: smooth;
    background-attachment: fixed;
    position: absolute;
    width:100vw;
    height:100%;
    background-image:url("/assets/img/tiles.png");
    animation: bgScroll 5s linear infinite;
}

* {
    box-sizing: border-box;
}

hr {
    border-style: solid;
    border-width: 2px;
    border-color: #808080;
    margin: 0;
    margin-bottom: 0.5rem;
}

body {
    padding-bottom: 2rem;
    font-family: 'Courier Prime', monospace;
    font-size: medium;
    color: var(--body-text-color);
    counter-reset: footnotes
}

[role="doc-noteref"]::after {
  counter-increment: footnotes;
  position:relative;
  content: '' counter(footnotes) '';
  top:-0.4em;
  font-size: 0.9rem;
}

.main-page {
    background-color: var(--page-color);
    max-width: 548px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    margin-bottom: 8rem;
    padding: 2rem;
    outline-color: black;
    outline-style: solid;
    outline-width: 2px;
    box-shadow: 20px 20px 0px black;
}


header {
    font-family: "Courier Prime", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: italic;
    padding-top:6px;
    text-align:left;
    font-size:48px;
    background-color: var(--link-text-color-hover);
    color: white;
    width: 100%;
    height: min-content;
}

h1 {
    color: white;
    padding: 4px;
    background-color: var(--header-text-color);
    font-family: "Courier Prime", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 6px;
    font-size:28px;
}

.headerlinks {
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding-top: 0;
}

h2 {
    color: var(--body-text-color);
    font-family: "Courier Prime", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size:24px;
    margin-bottom: 6px;
}

h3 {
    color: var(--body-text-color);
    font-family: "Courier Prime", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size:20px;
    margin-bottom: 6px;
}

img {
    image-rendering: crisp-edges;
    box-shadow: 8px 8px 0px black;
    outline: solid 2px black;  
    height: auto;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    max-width: 100%;
    margin-bottom: 16px;
    margin-top: 16px;
}

.nothin {
    color: unset;
    background-color: unset;
    text-decoration: none;   
}

.nothin:hover {
    color: unset;
    background-color: unset;
    text-decoration: none;   
}

a {
    color: var(--link-text-color);   
}

a:visited {
    color: var(--link-text-color); 
}

a:hover {
    background-color: var(--link-text-color-hover);
    color: white;
}

a:visited:hover {
    background-color: var(--link-text-color-hover);
    color: white;
}


p {
    line-height: 1.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

li { margin: 0.5rem;}

.mockwindow {
    box-shadow: 8px 8px 0px black;
    outline: solid 2px black;  
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    padding-top: 8px;
    margin-bottom: 16px;
}

.windowtitle {
    font-style: italic;
    font-weight: bold;
    font-size: x-large;
    padding-left: 4px;
    padding-top: 4px;
    background-color: var(--link-text-color-hover);
    color: white;
}

.headercontainer {
    display: grid;
    grid-template-columns: 128px auto;
    column-gap: 8px;
}

.logo {
    margin-right: 1rem;
    margin-bottom: 1rem;
    width: 128px;
    height: 128px;
    background-image: url("/assets/favicon/favicon.png");
    grid-row: 1 / span 2;
}

.logo:hover {
    margin-bottom: 1rem;
    margin-right: 1rem;
    background-image: url("/assets/favicon/favicon-alt.png");
    cursor: pointer;
}

.tlogo {
    all: initial;
    width:64px;
    height:64px;
    margin-right:16px;
    margin-bottom:-14px;
    max-width: 100;
}

.caption {
    text-align: center;
    font-style: italic;
}

.freefloat {
    height: 128px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 70%;
}

.dialog {
    padding: 8px;
    margin: auto;
    max-width: 85%;
    border: 2px;
    border-style: dotted;
}

.dice {
    padding: 8px;
    margin: auto;
    max-width: 85%;
    border: 2px;
    border-style: dashed;
    stroke-dashoffset: 3;
    font-family: monospace;
}

summary {
    color: var(--body-text-color);
    text-decoration: underline;
	cursor: pointer;
}

summary:hover {
    color: var(--link-text-color-hover);; 
	outline: none;
	cursor: pointer;
}

details > summary .details-marker:before {
	content: ">";
}

details[open] > summary .details-marker:before {
	content: ">";
}

details > *:not(summary) {
	padding-left: 1.25em;
}


.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0); 
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap; 
    width: 1px;
  }

.anchor-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width:100%;
}