html, body, h1, h2, h3, h4, h5, h6, p {
            font-family: 'Funnel Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            box-sizing: border-box;
        }
        html{
            scroll-behavior: smooth;
        }
        body {
            background-color: black;
            color: white;
        }
        header, nav, main, footer {
            margin-bottom: 2rem;
        }
        h1, h2, h3, h4, h5, h6 {
            color: #e0e0e0;
        }
        p, li {
            color: #b0b0b0;
        }
        code {
            background-color: #2f3437a1;
            padding: 0.1rem;
            border-radius: 0.25rem;
            color: #d7d7d7;
        }
        code::selection{
            background-color: #b6b9bb;
            color: #000000;
        }
        table {
            border-collapse: collapse;
            width: 100%;
        }
        th, td {
            border: 1px solid #444;
            padding: 0.5rem;
            text-align: left;
        }
        th {
            background-color: #333;
        }
        nav ul {
            list-style: none;
            padding: 0;
        }
        nav li {
            display: inline;
            margin-right: 1rem;
        }
        nav a {
            color: #b0b0b0;
            text-decoration: none;
        }
        nav a:hover {
            color: #e0e0e0;
        }
        .code-div {
            width: 90%;
            background-color: #272822;
            border-radius: 0.4rem;
            padding: 1rem;
        }
        .c-red {
            color: #f92672;
            font-family: monospace;
        }
        .c-pur {
            color: #ae81ff;
            font-family: monospace;
        }
        .c-str {
            color: #e6db74;
            font-family: monospace;
        }
        .c-gry {
            color: #75715e;
            font-family: monospace;
        }

        .ti {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            height: 5.5rem;
            aspect-ratio: 1;
            background-image: url("black_corrected_icons.png");
            background-size: cover;
        }
        #toc{
                display: flex;
                flex-direction: column;
        }
        #topbar {
            position: absolute;
            top: 0;
            width: 80%;
            left: 18%;
            overflow: hidden;
            display: flex;
            justify-content: flex-end;
            z-index: 10;
            margin-left: 0;
            margin-right: 0;
            gap: 1rem;
            background-color: transparent;
    align-items: center;
            
        }
        a{color: white; text-decoration: none;}
        .tii {
            width: 2rem;
            height: 2rem;
        }

        @media (max-width: 768px) {
            body {
                margin: 2rem;
                margin-top: 10rem;
            }
            #topbar {
                width: 100%;
                padding: 1rem;
                justify-content: space-between;
            }
            nav ul {
                padding-left: 1rem;
            }
            nav li {
                display: block;
                margin-bottom: 0.5rem;
            }
            .code-div {
                width: 100%;
            }
            .documentation{
                width: 80% !important;
                margin: 0 !important;
            }
            .navigation-bar,.nav-holder{
                display:none !important;
                width: 0 !important;
            }
        }

        @media (max-width: 480px) {
            body {
                margin: 1rem;
                margin-top: 10rem;
            }
            h1 {
                font-size: 1.5rem;
            }
            h2 {
                font-size: 1.25rem;
            }
            p, li {
                font-size: 0.9rem;
            }
            .code-div {
                padding: 0.5rem;
            }
        }
        
        main{
            display: flex;
            flex-direction: row;
            flex-grow: 1;
            gap: 1%;
            max-height: 92%;
            margin-top: 1%;
        }
        .nav-holder{
            
            flex-grow: 0.3;
            min-width: 200px;
    
            /* Optional: Set a maximum width to prevent it from getting too large */
            max-width: 350px;
            overflow: auto;
        }
        .navigation-bar{
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            max-height: 100%;
            height: 100%;
            overflow-y: auto; /* FIX: Added this to allow vertical scrolling */
            overflow-x: hidden;
        } 

        /* BONUS: Styling the scrollbar to match the theme */
        .navigation-bar::-webkit-scrollbar {
            width: 1px;
        }
        .navigation-bar::-webkit-scrollbar-track {
            background: #222;
        }
        .navigation-bar::-webkit-scrollbar-thumb {
            background-color: #555;
            border-radius: 4px;
        }
        .navigation-bar::-webkit-scrollbar-thumb:hover {
            background-color: #777;
        }

        table{
            max-width: 100%;
            overflow-x: auto;
        }
        .navigation-bar > a{
            width: 100% !important;
            transition: cubic-bezier(0.19, 1, 0.22, 1) 100ms all;
            padding-top: 0.1rem;
            padding-bottom: 0.1rem;
            overflow: hidden;
            min-height: 1.2rem;


        }
        .navigation-bar > a:active{
            background-color: rgba(255,255,255,0.035);
        }
        .documentation{
            flex-grow: 0.7;
            max-width: 99%;
            display: flex;
            flex-direction: column;
            overflow: auto;
        }
        .s1{
            padding-left: 0.6rem;
            opacity: 0.8;
            font-size: 0.9rem;
            border-left: solid;
            border-left-width: 1px;
        }
        .s2{
            padding-left: 0.5rem;
        }
        .ilustration{
            width: 100%;
            max-height: 5rem;
            align-self: center;
            justify-self: center;
        }
        .ilustration:is(.big){
            max-height: 25rem;
        }

        main{
            padding: 1%;

        }
