/* sections */

:root {
    background-color: black;
    color: #333;
    font-family: "Source Code Pro", monospace;
}

body {
    margin: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;

    overflow-x: hidden; /* you're not meant to do that */
}

/* nav */
nav ul {
    display: flex; align-items: center; justify-content: center; gap: 40px;
    list-style: none;
    text-align: center;
    padding: 0;

    flex-wrap: wrap;
}

nav a {
    padding: 5px;
    color: #333;
    text-decoration: none;
    position: relative;

    font-size: 1.2em;
    font-weight: 600;

    transition: color ease-out 0.1s;
}

nav a::after {
    width: 25%;
    transform: translateX(-50%);
    left: 50%;
    height: 2px;
    position: absolute;
    bottom: -3px;
    content: "";
    display: block;
    background-color: #333;
    transition: width ease-out 0.1s;
}

nav a:hover, nav a:hover::after {
    transition-duration: 0.3s;
}

nav a:hover {color: #666;}
nav a:hover::after {width: 95%; background-color: #666;}

/* classes */
.figure {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.045;
    z-index: -2;

    pointer-events: none;

    height: 60vh;
}

.hiddenAfter::after {width: 0;}
.skip {margin-left: 50%; margin-right: 50%;}
.miscText {margin: 10px 0px; padding: 0;}
.errorNumber {font-size: 7em; margin: 0;}

/* misc elements */

canvas {
    position: absolute;
    height: 400px;
    width: 100vw;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    image-rendering: pixelated; 
}

/* wildcards */
*::selection {
    color: #fff;
}

