@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/webfonts/JetBrainsMono-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/webfonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/webfonts/JetBrainsMono-LightItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    background-color: #181c1f;
    color: #cccccc;
    line-height: 1.6;
}

.container {
    max-width: 2000px;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
    font-size: 15px;
}

.sidebar {
    background-color: #181c1f;
    padding: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #181c1f;
    color: #d4d4d4;
    overflow-x: hidden;
    box-sizing: border-box;
}

.main-content h1 {
    color: #ffffff;
}

.main-content p, .main-content li {
    color: #d4d4d4;
    text-align: justify;
}

.main-content blockquote {
    border-left: 3px solid #555;
    margin-left: 0;
    padding-left: 20px;
    color: #d4d4d4;
}

.main-content strong, .main-content b {
    font-weight: bold;
}

.main-content h2 {
    position: relative;
    margin-top: 50px;
}

.main-content h2::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #99daff;
}

.sidebar h1, .sidebar p {
    color: #d4d4d4;
    margin: 0;
}

.sidebar p {
    font-size: 14px;
    margin-bottom: 16px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: -15px;
}

.sidebar li {
    padding: 8px 0;
}

a {
    color: #fb3a6a;
    font-weight:500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover, .right-sidebar a:hover {
    color: #f5bfcd;
}

.right-sidebar {
    background-color: #181c1f;
    padding: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 250px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;

}

.toc {
    background-color: #181c1f;
    padding: 15px;
    border-radius: 4px;
}

.toc h3 {
    color: #d4d4d4;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin: 10px 0;
}

a {
    color: #f76a8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.description {
    color: gray;
    font-style: italic;
    margin-bottom: -3px;;
}

.sidebar h2 {
    font-size: 14px;
    color: #a2a9b9;
}

.left-sidebar {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 250px;
    margin-left: 30px;
}

.sidebar a {
    font-size: 14px;
}

.sidebar li.active a{
    color: #f5bfcd;
}

.main-content img {
    max-width: 55%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.left-sidebar img {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 100px;
}

.info-box {
    margin: 20px 0;
    padding: 10px 30px;
    background-color: #1e2124;
    border-left: 4px solid #4094ed;
    color: #ccc;
    border-radius: 8px;
}

.info-box p {
    margin: 10px 0;
    color: #d4d4d4;
}

.quote-box {
    position: relative;
    margin: 20px 0;
    padding: 10px 30px;
    background-color: #1e2124;
    border-left: 4px solid #ccc;
    color: #d4d4d4;
    font-style: italic;
    border-radius: 8px;
}

img.wide-img {
    max-width: 100%!important;
}

@media (min-width: 1023px) {
    #mob-side-section {
        display: none;
    }
    aside.right-sidebar{
        display: flex;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1022px) {
    aside.right-sidebar{
        display: none;
    }

    #mob-side-section {
        display: none;
    }

}

@media (max-width: 767px) {
    .container {
        flex-direction: column;
    }
    aside.right-sidebar{
        display: none;
    }
    #normal-menu {
        display: none;
    }
    #mob-side-section {
        display: block;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #181c1f;
        color: #ffffff;
    }

    .menu-button {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5em;
        display: block;
    }

    nav.mobile-menu {
        display: none;
        top: 100%;
        left: 0;
        right: 0;
        background: #181c1f;
        z-index: 1000;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .mobile-menu.is-active {
        display: block;
    }
    .left-sidebar {
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: auto;
        margin-left: 0;
        width: 100%;
        order: -1;
        max-height: none;
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 20px;
        padding-right: 0;
        margin-bottom: -30px;
    }
    .main-content {
        transition: margin-top 0.3s ease;
    }
}

* {
    box-sizing: border-box;
}
