/* Reset basic image scaling */
img {
    max-width: 100%;
    height: auto;
}

.container img.left-align + p,
.container img.right-align + p {
    flex: 1 1 calc(100% - 120px); /* Adjust based on image width + gap */
}

/* Body and global styles */
body {
    background-color: #000;
    color: #0f0;
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
}

/* Sidebar */
.header-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: #000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

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

.header-nav li {
    margin: 20px 0;
}

.header-nav a {
    color: #0f0;
    text-decoration: none;
    display: block;
    padding: 10px;
    transition: color 0.3s ease-in-out;
}

.header-nav a:hover {
    color: #007bff;
}

/* Main content */
main {
    margin-left: 200px; /* Match sidebar width */
    padding: 20px;
    max-width: 800px;
}

/* Headings */
h1, h2, h3 {
    color: #0f0;
}

h4 {
    color: #ff0;
    text-decoration: underline;
}

/* Bio section */
.bio {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #0f0;
}

/* Table of Contents */
.table-of-contents h3 {
    margin-top: 20px;
}

/* Links */
a {
    color: red;
    text-decoration: none;
}

a:hover {
    color: lightblue;
}

/* Blog post styling (if used later) */
.blog-post {
    margin-bottom: 40px;
}

/* Footer */
footer {
    margin-top: 40px;
    border-top: 1px solid #0f0;
    padding-top: 20px;
    text-align: center;
}

/* Responsive sidebar for smaller screens */
@media (max-width: 600px) {
    .header-sidebar {
        width: 150px;
    }
    main {
        margin-left: 150px;
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .header-sidebar {
        width: 120px;
    }
    main {
        margin-left: 120px;
        padding: 10px;
    }
}
