:root {
    --fs-600: 24px;
    --fs-500: 18px;
    --fs-400: 16px;
    --fs-300: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    background-color: #303030;
}

#navbar {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 25vw;
    height: 100vh;
    overflow: scroll;
}

#main-doc {
    margin-left: 25vw;
    color: white;
    padding: 2rem;
}

#navbar header {
    text-align: center;
    margin: 1.5rem auto;
    font-weight: bold;
    font-size: var(--fs-600);
}

#navbar ul {
    padding: 0 1rem;
    margin: 0;
}

#navbar ul li {
    list-style-type: none;
    margin: 2rem auto;
}

.nav-link {
    text-decoration: none;
    color: black;
}

.nav-link:hover {
    border-bottom: 1px solid black;
}

.main-section header {
    font-size: var(--fs-600);
    font-weight: bold;
}

.main-section article {
    margin: 1.5rem 0;
}

.main-section p {
    font-size: var(--fs-400);
    text-align: justify;
    padding-left: 2rem;
    line-height: 1.75;
}

.main-section a {
    color: white;
    transition: font-weight 50ms ease;
}

.main-section a:hover {
    font-weight: bold;
}

.main-section h3 {
    font-weight: normal;
    padding-left: 1rem;
    font-size: var(--fs-500);
}

.main-section code {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--fs-300);
    display: block;
    width: fit-content;
    text-align: left;
    white-space: pre-line;
    word-break: normal;
    word-wrap: normal;
    line-height: 2;
    background-color: white;
    color: black;
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    margin-left: 2rem;
}

.main-section pre {
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 800px) {
    :root {
        --fs-600: 20px;
        --fs-500: 16px;
        --fs-400: 14px;
        --fs-300: 12px;
    }

    #navbar {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 2rem auto;
        width: 80vw;
        height: 25vh;
        text-align: center;
    }

    #navbar header {
        margin: 0.5rem auto;
    }

    #navbar ul li {
        margin: 0.5rem auto;
    }

    #main-doc {
        margin: 0;
        padding: 1rem;
    }

    .main-section p {
        padding-left: 1rem;
    }
}