:root {
    color-scheme: dark;
    font-size: 20px;
    font-family: arial;
    background-color: #111;
    color: #ccc
}

footer {
    font: normal .8rem arial;
    padding: 1rem;
    background-color: #222;
    color: #aaa
}

footer a {
    text-decoration: none;
    float: right;
    color: #2af;
    transition: color .2s
}

footer a:hover {
    color: #888
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0
}

* {
    box-sizing: border-box
}

canvas {
    width: 100%;
    height: 100%
}

body > canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2
}

a {
    text-decoration: none
}

p {
    margin: 1rem 0 0
}

#top canvas {
    z-index: -1;
    position: absolute
}

#top {
    position: relative;
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
    box-shadow: 0 0 20px #000
}

#top > div > div {
    display: flex;
    align-items: center;
    height: 3.5rem;
    gap: 1rem;
    margin-bottom: .5rem
}

#top svg {
    height: 100%
}

#top h1 {
    font: 3.5rem orbitron;
    filter: drop-shadow(0 0 2px #fff);
    margin: 0;
    color: #fff
}

#top span {
    font-family: monospace;
    color: transparent;
    background: linear-gradient(-90deg, #6e6 3px, transparent 0) 5px 0, linear-gradient(#6e6 0 0) 0 0;
    background-size: 100% 200%;
    background-clip: padding-box, text;
    background-repeat: no-repeat;
    animation: back .3s infinite steps(1), type 3s steps(26) forwards
}

#top path:first-child {
    fill: #aaa
}

#top path:last-child {
    fill: none;
    stroke: #000;
    stroke-width: 2;
    stroke-dasharray: 20 1.5;
    animation: dash 5s infinite linear
}

.main {
    max-width: 60rem;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%
}

#graph {
    position: relative;
    height: 15rem;
    padding: 1rem 0 0 2rem;
    border: 1px solid #333;
    background-color: #222;
    border-radius: .8rem;
    margin: 2rem 0
}

#graph svg {
    position: absolute;
    width: calc(100% - 2rem);
    height: calc(100% - 1rem)
}

#graph path {
    stroke-width: 3px;
    stroke-dasharray: 1;
    stroke-dashoffset: 1
}

#graph.show path {
    transition: stroke-dashoffset 20s linear;
    stroke-dashoffset: 0
}

#graph ul {
    font: normal .6rem monospace;
    position: absolute;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: calc(100% - 2rem)
}

#graph li {
    position: relative
}

#graph ul:first-child {
    flex-direction: column;
    right: 0;
    height: calc(100% - 1rem)
}

#graph ul:first-child li {
    border-top: 1px solid #555;
    flex: 0 0 calc(100% / 5)
}

#graph ul:first-child span {
    position: absolute;
    left: -.3rem;
    bottom: 100%;
    transform: translate(-100%, 50%)
}

#graph ul:last-of-type {
    height: 100%;
    bottom: 0
}

#graph ul:last-of-type li {
    flex: 0 0 calc(100% / 6);
    min-width: 0
}

#graph ul:last-of-type li:nth-child(4) {
    color: #fff;
    border-color: #2af !important
}

#graph ul:last-of-type li:not(:first-child) {
    border-left: 1px solid #555
}

#graph ul:last-of-type span {
    height: 1rem;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: .3rem
}

.box {
    display: flex;
    gap: 1.5rem
}

.box > div > i {
    padding-bottom: 1rem;
    filter: drop-shadow(0 0 8px var(--color));
    color: #000;
    font-size: 2rem
}

.box h2 {
    font-size: 2rem;
    margin: 0
}

.box > div > span {
    display: block;
    margin-bottom: 2rem;
    font-weight: bold;
    font-family: monospace;
    color: var(--color)
}

.box > div:first-child {
    display: flex;
    flex: 0 0 3rem;
    flex-direction: column;
    align-items: center
}

.box.show .line {
    height: 100%;
    transition: height 2s ease-in-out
}

.box > div:last-child {
    width: 100%;
    margin-bottom: 4rem
}

.box:first-child {
    --color: #29d
}

.box:nth-child(2) {
    --color: #fa0
}

.box:nth-child(3) {
    --color: #4a4
}

.box:nth-child(4) {
    --color: #d5a
}

#list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
    color: #888
}

#list > div {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #555;
    border-radius: .8rem;
    background-color: #222;
    padding: 1rem
}

#list h3 {
    font: bold 1rem arial;
    margin: 0;
    color: #fff
}

#list p {
    font-size: .8rem
}

#list i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex: 0 0 5rem;
    color: #555
}

#flex {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap
}

#flex .link {
    flex: 1 1 20rem
}

.line {
    border-radius: 1rem;
    background: linear-gradient(var(--color), var(--color), transparent);
    height: 0;
    width: 3px
}

span + .link {
    width: 100%;
    max-width: 20rem;
    margin-bottom: 2rem
}

.link {
    border-radius: .8rem;
    padding: .5rem;
    background-color: #222;
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #fff;
    border: 1px solid #555;
    transition: background-color .2s
}

.link img {
    height: 4rem;
    border-radius: .5rem
}

.link h3 {
    margin: 0;
    font: bold 1rem arial
}

.link span {
    font: bold 1rem monospace;
    color: #2af
}

.link:hover {
    background-color: #333
}

.fa-gear {
    color: #888
}

.fa-circle-check {
    color: #6c6
}

.fa-circle-xmark {
    color: #f55
}

form {
    position: relative;
    overflow: hidden;
    max-width: 20rem;
    display: flex;
    padding: 1rem;
    border-radius: .8rem;
    border: 1px solid #333;
    background-color: #222;
    gap: 1rem;
    flex-direction: column;
    margin: 2rem auto 0 auto
}

form input, form textarea {
    font: inherit;
    padding: .5rem 1rem;
    border: none;
    outline: none;
    background-color: transparent;
    border-bottom: 2px solid #555;
    color: #aaa;
    transition: border-color .2s;
    border-radius: 0
}

form textarea {
    height: 10rem;
    resize: none
}

form button {
    font: bold 1rem arial;
    border: none;
    cursor: pointer;
    background-image: linear-gradient(to right, #a2f, #f52);
    font-weight: bold;
    padding: .5rem;
    border-radius: 2rem;
    transition: border-radius .2s
}

form button:hover {
    border-radius: .5rem
}

form div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 2rem
}

form input:focus, form textarea:focus {
    border-color: #fff
}

form i {
    font-size: 4rem
}

form #show {
    visibility: visible
}

#tiers {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem
}

#tiers div {
    padding: 1rem;
    background-color: #222;
    border: 1px solid #333;
    border-radius: .8rem;
    font-size: .8rem;
    flex: 1 1 20rem
}

#tiers h3 {
    margin: 0;
    font: bold 1rem arial;
    color: #fff
}

#tiers span {
    font-style: italic
}

#tiers ol {
    margin-bottom: 0;
    line-height: 1.5rem
}

@keyframes dash {
    from {stroke-dashoffset: 21.5}
    to {stroke-dashoffset: 0}
}

@keyframes type {
    from {background-size: 0 200%}
}

@keyframes back {
    50% {background-position: 0 -100%, 0 0}
}

@font-face {
    font-family: varela;
    src: url(varela.ttf)
}

@font-face {
    font-family: orbitron;
    src: url(orbitron.ttf)
}

@media screen and (max-width: 60rem) {
    :root {
        font-size: 18px
    }
}

@media screen and (max-width: 40rem) {
    :root {
        font-size: 14px
    }

    .main {
        padding: 2rem 1rem
    }

    .box {
        gap: .5rem
    }
}