@font-face {
    font-family: "tiny5mr";
    src: url(Tiny5-MatrixRegular.ttf);
}

:root {
    --light-bg: #f2f0ef;
    --light-half: #9b9896;
    --light-text: #455359;
    --light-midtone: #7ba7af;
    --light-accent: #ead8a6;

    --dark-bg: #363636;
    --dark-text: #99e3db;
    --dark-midtone: --dark-accent: #ff7f97;
}

body {
    color: var(--light-text);
    font-family: "Spectral", serif;
    background-color: var(--light-bg);
}

a {
    color: var(--light-text);
}

a:visited {
    color: var(--light-midtone);
}

a:hover {
    color: var(--light-accent);
}

p,
ul {
    font-size: 13px;
}

.fore {
    margin: 0;
    color: var(--light-half);
}

h3 {
    margin: 0;
    transform: skew(-15deg, 0);
    font-size: 25px;
}

.container {
    width: 800px;
    margin: 50px 150px;
    display: grid;
    gap: 10px;
    grid-template:
        "header header"
        "sidebar navi"
        "sidebar main"
        /170px 1fr;
}

header {
    position: relative;
    grid-area: header;
    height: 150px;
    border: 2px dotted var(--light-text);
}

header h1{
    position: absolute;
    margin: 0 5px;
    padding: 0;
    bottom: -5px;
    font-family: "UnifrakturMaguntia", cursive;
    font-size: 50px;
    text-shadow: 5px 5px var(--light-bg);
}

aside {
    position: relative;
    grid-area: sidebar;
    height: 450px;
    border: 2px dotted var(--light-text);
    display: flex;
    flex-flow: column;
}

aside p{
    align-self: flex-end;
    flex-grow: 1;
    width: 100%;
    margin: .5rem .1rem 0 0;
    font-family: "tiny5mr";
    font-size: 16px;
    text-align: center;
}

aside ul li:first-child{
    border-top: 2px dotted var(--light-text);
}

nav {
    grid-area: navi;
    font-size: 14px;
}

nav ul, aside ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul{
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

nav ul li {
    box-sizing: border-box;
    display: block;
    flex: 1 1 0;
    height: 30px;
    padding: 2px 0 0;
    text-align: center;
    border: 2px dotted var(--light-text);
}

h4 {
    font-family: "tiny5mr";
    margin: 0;
    padding: 3px;
    border-bottom: 2px dotted var(--light-text);
    color: var(--light-bg);
    background-color: var(--light-text);
}

aside ul li{
    font-family: "tiny5mr";
    font-size: 16px;
    display: block;
    padding: 5px;
    border-bottom: 2px dotted var(--light-text);
}

main {
    grid-area: main;
    min-height: 50rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.box,
.tab{
    max-width: 100%;
    padding: 20px;
    border: 2px dotted var(--light-text);
}

ul {
    list-style-type: none;
    margin: 20px;
    padding: 0;
}

h6{
    text-align: center;
}

/*right directory*/
.directory {
    position: fixed;
    width: 300px;
    height: 600px;
    top: 10%;
    left: 65rem;
    border: 2px dotted var(--light-text);
    display: flex;
    flex-flow: column;
    background-image: url(https://file.garden/aNIRkiNjtzNrWers/images/misc%20graphics/pylonhalftone);
    background-size: cover;
}

#grid{
    width: 100%;
    display: flex;
    flex-flow: wrap;
    gap: 0;
}

.square{
    box-sizing: border-box;
    flex-basis: 150px;
    padding: 10px;
    border: 1.5px dotted var(--light-text);
    font-family: "tiny5mr";
    text-align: center;
}

#revert{
    color: var(--light-text);
    background-color: var(--light-bg);
}

.list{
    margin: 0 10px;
    flex-grow: 1;
    background-color: rgba(242, 240, 239, .3);
}

.list ul li a{
    color: var(--light-text);
    text-decoration: none;
}

footer{
    align-self: flex-end;
    width: 100%;
    padding: 5px 0;
    background: var(--light-bg);
    border-top: 2px dotted var(--light-text);
    text-align: center;
    font-size: 13px;
    text-decoration: underline;
}

footer a:visited{
    color: var(--light-text);
}

/*tab code for stories*/
.tab:not(:target) {display: none}