@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Mono:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --font: "Atkinson Hyperlegible Mono", sans-serif;
}

body {
    background-color: rgb(11, 11, 11);
}
body::-webkit-scrollbar {
    width: 10px;
}
body::-webkit-scrollbar-track {
    background-color: transparent;
}
body::-webkit-scrollbar-thumb {
    background-color: white;
}

header {
    background-color: rgb(50, 50, 50);
    height: 3.5vw;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
}

header > h1 {
    color: rgb(220, 220, 220);
    position: absolute;
    font-size: 2vw;
    left: 1vw;
    top: 50%;
    translate: 0 -50%;
    margin: 0;
    font-family: var(--font);
}

main {
    position: absolute;
    left: 0;
    top: 3.5vw;
    width: 100%;
    height: calc(100% - 3.5vw);
}

.section-nav {
    position: fixed;
    left: 0;
    top: 3.5vw;
    width: 23vw;
    height: 92.75vh;
    background-color: rgb(22, 22, 22);
    display: flex;
    flex-direction: column;
}

.section-nav > div {
    width: 100%;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 2.5vw;
}
.section-nav > div::-webkit-scrollbar {
    width: 10px;
}
.section-nav > div::-webkit-scrollbar-track {
    background-color: transparent;
}
.section-nav > div::-webkit-scrollbar-thumb {
    background-color: white;
}


.section-nav > div > * {
    font-family: var(--font);
}

.section-nav > div > div {
    margin-left: 1vw;
}

.section-nav > div > div > h1 {
    font-size: 2vw;
    margin: 1vw;
    margin-left: 0.2vw;
    color: white;
}

.section-nav > div > div > p {
    font-size: 1.25vw;
    margin: 0.2vw;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
    color: rgb(200, 200, 200);
}
.section-nav > div > div > p:hover {
    text-decoration: underline;
}

.content {
    position: absolute;
    left: 23vw;
    width: 75vw;
    height: 100%;
    top: 0;
    transition: all 0.15s;
}

.content > h1 {
    color: white;
    font-family: var(--font);
    font-size: 2.5vw;
    margin-left: 2vw;
    margin-top: 4vw;
}

.content > p {
    color: rgb(220, 220, 220);
    font-family: var(--font);
    font-size: 1vw;
    margin: 0;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-bottom: 2vw;
    margin-top: 2vw;
    text-align: justify;
}

.content > h3 {
    color: white;
    font-size: 1.75vw;
    font-family: var(--font);
    margin-left: 2vw;
    margin-top: 4vw;
}

.content > h4 {
    color: white;
    font-size: 1.4vw;
    font-family: var(--font);
    margin-left: 2vw;
    margin-top: 2vw;
    font-style: italic;
}

.content > div.code-block {
    width: calc(100% - 4vw);
    background-color: rgb(20, 20, 20);
    min-height: 2vw;
    position: relative;
    left: 2vw;
    height: auto;
    padding-bottom: 2.5vw;
    margin-top: 1vw;
}

.content > div.code-block > p {
    color: white;
    position: absolute;
    width: calc(100% - 0.5vw);
    height: 2vw;
    top: 0;
    left: 0;
    font-family: var(--font);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0.5vw;
    background-color: cornflowerblue;
}
.content > div.code-block > p > span {
    position: absolute;
    right: 0.5vw;
    margin-right: 0.5vw;
}
.content > div.code-block > h2 {
    color: rgb(150, 150, 150);
    position: relative;
    translate: 0 2.5vw;
    font-size: 0.8vw;
    margin: 0;
    margin-left: 0.5vw;
    font-family: var(--font);
    min-height: 1.2vw;
    white-space: pre;
    tab-size: 3vw;
}
.content > div.code-block > h2, .content > p {
    .import {
        color: purple;
    }
    .class {
        color: rgb(6, 179, 6);
    }
    .func {
        color: rgb(207, 112, 216);
    }
    .keyw {
        color: rgb(117, 117, 223);
    }
    .val {
        color: rgb(96, 96, 212);
    }
    .paren {
        color: yellow;
    }
    .param {
        color: orange;
    }
    .str {
        color: lightblue;
    }
    .num {
        color: rgb(150, 247, 5);
    }
    .text {
        color: rgb(238, 238, 238);
    }
    .css {
        color: goldenrod;
    }
}

.footer {
    height: 5vw;
    width: 100%;
}