body {
    display: flex;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#sidebar {
    width: 250px;
    background-color: aliceblue;
    padding: 40px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

#sidebar h2 {
    margin-top: 0;
}

#sidebar  li {
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 10px;
}

#content {
    margin-left: 330px;
    padding: 40px;
    max-width: 80ch;
    font-size: 1.1em; /* Larger main text */
}

.navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.navigation a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

details {
    margin-bottom: 20px; /* More vertical whitespace */
    margin-top: 20px;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

a {
    text-decoration: none;
    color: navy; /* Shade of blue, no underline */
    background-color: aliceblue;
    /* padding: 4px; */
}

a:hover {
    background-color: navy;
    color: aliceblue;
}

/* Responsive media */
img, video {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra spacing */
    margin: 0 auto; /* Center if needed */
}

/* Caption styles (assuming <figcaption> for captions) */
figure {
    margin: 20px 0; /* Space around figures */
}

figcaption {
    font-size: 0.9em; /* Slightly smaller than main text */
    background-color: #f8f8f8; /* Subtle background shading */
    border: 1px solid #eee; /* Subtle outline */
    padding: 10px;
    margin-top: 5px;
    color: inherit; /* Inherit text color, no default styling overrides */
    font-style: normal; /* Allow inline styles like italic/bold */
    font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #sidebar {
        width: 200px; /* Slightly narrower on medium screens */
    }
    
    #content {
        margin-left: 280px; /* Adjust margin accordingly */
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column; /* Stack vertically on small screens */
    }
    
    #sidebar {
        position: static; /* Remove fixed positioning */
        width: 100%; /* Full width */
        height: auto; /* Auto height */
        border-right: none; /* Remove border */
        border-bottom: 1px solid #ddd; /* Add bottom border for separation */
        padding: 20px; /* Reduce padding for mobile */
    }
    
    #content {
        margin-left: 0; /* No left margin */
        padding: 20px; /* Reduce padding for mobile */
    }
    
    /* Ensure media remains responsive on mobile */
    img, video {
        width: 100%; /* Full width on small screens for better fit */
    }
