/* Import pygments styles for syntax highlighting */
@import "pygments.css";


/* Global Reset and Layout */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh; /* Ensures the layout uses the full viewport height */

    overflow-y: hidden;
}

/* Simple Sidebar Styling (Navigation) */
.wide-nav {
    display: flex;
    flex-direction: column;

    font-family: "JetBrains Mono", monospace;

    width: 250px;
    background-color: #f4f4f4;
    padding: 20px;
    border-right: 1px solid #ddd;

    /* mobile overlay */
    position: sticky;
    left: 0;
    top: 0;
    height: 100vh; /* Use full height if sticky */
    overflow-y: auto; /* Allows scrolling if menu is long */
    z-index: 100;

}

@media (width <= 768px) {
    .wide-nav {
        display: none;
    }
}

.wide-nav hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 10px 0;
    width: 100%;
}

.wide-nav .title-link {
    display: block;
    padding: 0;
    margin: 0;
    transition: none;
}

.wide-nav .title-link:hover {
    background-color: transparent;
}

.wide-nav .nav-home {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: small;    
}

.wide-nav .nav-breadcrumb {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: small;    
}

.wide-nav ul {
    flex-grow: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    min-height: 100px;
}

.wide-nav li {
    font-family: "IBM Plex Sans", sans-serif;
    margin-bottom: 10px;
    min-height: 1.5em;
}

.wide-nav a {
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s; /* Smooth hover effect */
}

.wide-nav .no-shade:hover {
    background: fixed;
}

/* Breadcrumbs */
.wide-nav p a {
    display: inline-block;
}

/* Left side menu items */
.wide-nav ul a {
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.widenav .back-button {
    background-color: #e6e6e6;
}

.wide-nav a:hover {
    background-color: #ccc;
}

/* Active Page Indicator */
.wide-nav a.active {
    background-color: #333;
    color: white;
}

/* Mobile nav */
.mobile-nav {
    display:none
}

@media (width <= 768px) {
    .mobile-nav {
        position: fixed;
        display: flex;

        left: 0;
        top: 0;
        height: fit-content;
        width: 100%;

        padding: 5px;
        
        background-color: #ddd;
    }

    .mobile-nav ul {
        margin: 0;
        min-height: auto;
        list-style: none;
    }

    .mobile-nav a {
        color: #333;
        text-decoration: none;
    }
}



.wide-nav .bottom-tray {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.wide-nav .bottom-tray a {
    margin: 8px;
    transition: opacity 0.4s;
}

.wide-nav .bottom-tray a:hover {
    opacity: 0.6;
}

/* Main Content Area */
main {
    display: flex;
    flex: 1; /* Takes up the rest of the space */
    padding: 40px;

    max-height: 100vh;
    overflow-y: auto;
}
@media (width <= 768px) {
    main {
        padding: 20px
    }
}

.markdown-content p {
    text-align: justify;

    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.markdown-content img {
    display: block;
    margin: auto;
    max-width: 65%;
}

.markdown-content pre {
    margin-top: 10px;
    margin-bottom: 10px;

    /* Aesthetic improvements for code blocks */
    background-color: #272822; /* Dark background */
    color: #f8f8f2; /* Light text color */
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto; /* Allows horizontal scrolling for long lines */
    line-height: 1.4;
    font-size: 0.9em;
}

code {
    font-family: "JetBrains Mono", monospace;
    font-size: medium;
    color: #555;
}
@media (width <= 768px) {
    code {
        font-size: small;
    }
}

.markdown-content {
    font-family: "IBM Plex Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: large;
    font-weight: 400;
    font-style: normal;

    line-height: 1.6;

    padding-bottom: 60px;
    max-width: 900px;

    margin: auto;
}

@media (width <= 768px) {
    .markdown-content {
        width: 100%;
        font-size: small;
        margin: auto;
    }
}

.markdown-content a {
    color: #333;
}

.markdown-content blockquote {
    font-family: 'Baskervville', serif;
    background-color: #eee;

    border: 15px solid #eee;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-radius: 6px;
}


/* CUSTOM MARKDOWN CONTENT STYLES */
.post-header {
    margin-bottom: 2em;
}

.post-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.3em;
    line-height: 1.2;
}

.post-subtitle {
    font-size: smaller;
}

.post-date {
    font-size: 0.9em;
    color: #666;
    margin-top: 0;
    margin-bottom: 1em;
}

.post-divider {
    border: 0;
    border-top: 2px solid #ddd;
    margin: 1em 0;
}

/* CLASS-BASED ATTRIBUTES */

.text-center {
    text-align: center;
}

.text-old-timey {
    font-family: "Baskervville", serif;
}

.vertical-align-parent {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-align {
    height: fit-content;
}