body {
    background-color: black;
    color: rgba(255, 255, 255, 1);
}

.MainContentContainer {
    margin-left: 3em;
    margin-right: 3em;
}

header {
    /* position: sticky; */
    top: 0px;
    z-index: 99999;
    /* background-color: black; */
}

.post-date {
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    font-size: 0.6em;
}

code {
    background-color: rgba(10, 10, 10, 0.75);
    color: rgba(200, 200, 200, 1);
    padding: 0.5em;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    border-radius: 5px;
}

pre code {
    color: white;
    background-color: transparent;
}

.postWrapper code {
    background-color: rgba(20, 20, 20, 1);
    border-color: rgba(10, 80, 30, 1);
    border-style: solid;
    border-width: 0.2px;
    font-weight: 100;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0.5em;
}

.mainMenu {
    position: relative;
    top: -30px;
    background-color: rgba(10, 80, 30, 1);
    border: 2px solid black;
    border-radius: 10px;
}

.mainMenu ul {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    padding-inline-start: 0;
    justify-content: space-evenly;
    list-style-type: none;
    /* border: 2px solid blue; */
}

.mainMenu ul li {
    background-color: rgba(5, 50, 20, 1);
    color: rgb(250, 250, 250);
    font-weight: 600;
    font-size: 1.3em;
    border: 1px solid black;
    padding: 0.5em 2em;
    border-radius: 20px;
    margin-top: 3px;
    margin-bottom: 3px;
    box-shadow: 2px 2px 5px black;
}

.mainMenu ul li:hover {
    background-color: black;
    color: rgb(200, 200, 200);
    border: 1px solid black;
    box-shadow: 0 0 0;
}

.mainMenu ul li a {
    color: rgb(200, 200, 200);
}

.mainMenu ul li a:hover {
    color: rgb(20, 255, 255);
}

.article-like-list {
    background-color: rgba(230, 255, 230, 1);
    color: black;
    margin: 1em;
    padding-right: 3px;
    padding-left: 5px;
    padding-bottom: 3px;
    padding-top: 0px;
    border-radius: 15px;
}

.article {
    background-color: rgba(230, 255, 230, 1);
    color: black;
    margin: 3em;
    padding: 0.4em 1em;
    border-radius: 15px;
}

.article pre {
    background-color: rgba(0, 90, 0, 1);
    padding: 0.5em;
    box-shadow: 5px 5px 5px rgba(0, 90, 0, 0.7);
    border-radius: 5px;
}

.learningNav-container-narrow {
    display: none;
}
.learningNav-container {
    position: relative;
    float: right;
    top: 0;
    left: 0;
}

@media (max-width: 650px) {
    .learningNav-container {
        display: none;
        flex-direction: column;
        align-items: center;
        /*justify-content: center;*/
        position: relative;
        float: right;
        top: 0;
        left: 0;
        /*height: 5px;*/
    }
    .learningNav-container-narrow {
        display: flex;
        flex-direction: column;
        align-items: center;
        /*justify-content: center;*/
        position: relative;
        float: right;
        top: 0;
        left: 0;
        /*height: 5px;*/
    }
    .article pre {
        background-color: rgba(0, 90, 0, 1);
        padding: 0;
        box-shadow: 5px 5px 5px rgba(0, 90, 0, 0.7);
        border-radius: 5px;
    }
    .article {
        background-color: rgba(230, 255, 230, 1);
        color: black;
        margin: 0;
        padding: 0.4em 1em;
        border-radius: 15px;
    }
}

.learningNav {
    top: 5px;
    right: 10px;
    background-color: rgba(230, 255, 230, 1);
    border-radius: 10px;
    padding-right: 0.5em;
    padding-bottom: 1.2em;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 5px 5px 5px rgba(0, 90, 0, 0.7);
}

.learningNav ul {
    list-style-type: none;
    padding-left: 0.5em;
}

.learningNav ul > li {
    display: flex;
}

.learningNav a {
    color: rgba(230, 255, 230, 1);
    background-color: rgba(10, 80, 30, 1);
    margin-top: 0.3em;
    padding: 3px 9px;
    border-radius: 5px;
    width: 100%;
    text-decoration: none;
    box-shadow: 3px 3px 3px black;
}

.learningNav h3 {
    color: rgba(10, 100, 30, 1);
    padding-left: 5em;
}

.learningNav a:hover {
    box-shadow: none;
    background-color: rgba(10, 100, 30, 1);
}

.header-jstoday {
    font:
        112.5%/1.45em georgia,
        serif;
    font-weight: 400;
    word-wrap: break-word;
    font-kerning: normal;
    font-feature-settings: "kern", "liga", "clig", "calt";
    font-family: "Arvo, sans-serif";
    color: black;
    box-sizing: inherit;
    background-color: rgb(0, 0, 0);
    text-align: center;
    text-shadow: rgb(255, 255, 255) 0px 0px 10px;
    font-size: 5vw;
    white-space: nowrap;
    width: 100%;
    height: 60%;

    h1 {
        font-size: 2em;
    }
}

.postWrapper {
    background-color: rgba(5, 5, 100, 0.25);
    margin: 2em 1em;
    padding: 5px 1em;
}

.post-breadcrumb-button {
    background-color: green;
    border-radius: 10px;
    margin-right: 2em;
}

.posts-breadcumbs-menu {
    display: flex;
}

.works-cited {
    font-size: 0.8em;
}

/* Style for h3 headers in posts to make them stand out */
.article h3 {
    background-color: rgba(10, 80, 30, 0.8);
    color: rgba(255, 255, 255, 1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 20px 0 15px 0;
    /*border-left: 4px solid rgba(10, 100, 30, 1);*/
    /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);*/
}

.article h3 a {
    color: rgba(255, 255, 255, 1);
    /*text-decoration: none;*/
}

.article h3 a:hover {
    color: rgba(20, 255, 255, 1);
    text-decoration: underline;
}

.postWrapper h3 {
    background-color: rgba(10, 80, 30, 0.8);
    color: rgba(255, 255, 255, 1);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 20px 0 15px 0;
    /*border-left: 4px solid rgba(10, 100, 30, 1);*/
    /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);*/
}

.postWrapper h3 a {
    color: rgba(255, 255, 255, 1);
    /*text-decoration: none;*/
}

.postWrapper h3 a:hover {
    color: rgba(20, 255, 255, 1);
    text-decoration: underline;
}

/* Section Navigation Sidebar - Compact Version */
.content-wrapper {
    display: flex;
    gap: 1.5em;
    margin-top: 2em;
}

.section-nav {
    min-width: 200px;
    max-width: 220px;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1em;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    flex-shrink: 0;
}

.section-nav h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
    color: #4caf50;
    font-size: 1em;
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 0.4em;
}

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

.tutorial-list li {
    margin-bottom: 0.3em;
}

.tutorial-list li a {
    display: flex;
    align-items: flex-start;
    gap: 0.4em;
    padding: 0.4em 0.5em;
    color: rgba(200, 200, 200, 0.9);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.85em;
    line-height: 1.3;
}

.tutorial-list li a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: white;
}

.tutorial-list li.current a {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    font-weight: bold;
}

.tutorial-number {
    color: #4caf50;
    font-weight: bold;
    min-width: 1.5em;
    flex-shrink: 0;
}

.tutorial-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tutorial-duration {
    font-size: 0.75em;
    color: rgba(150, 150, 150, 0.8);
    white-space: nowrap;
    display: none;
}

.tutorial-list li.current .tutorial-duration,
.tutorial-list li a:hover .tutorial-duration {
    display: block;
}

.article {
    flex: 1;
    min-width: 0;
}

/* Mobile responsive */
@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
    }

    .section-nav {
        position: static;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 2em;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .tutorial-list {
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .tutorial-list li a {
        font-size: 0.9em;
        padding: 0.5em;
    }

    .tutorial-duration {
        display: block;
    }

    .article {
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-x: hidden;
    }
}

/* Tablet - narrower sidebar */
@media (max-width: 1200px) and (min-width: 969px) {
    .section-nav {
        min-width: 180px;
        max-width: 200px;
    }

    .tutorial-list li a {
        font-size: 0.8em;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

.content-wrapper {
    box-sizing: border-box;
}

.section-nav,
.article,
.tutorial-list {
    box-sizing: border-box;
}
