/* Base styles maintaining the requested color scheme */
:root {
    --bg-color: #556B2F;
    /* DARKOLIVEGREEN */
    --text-color: #FFFFFF;
    /* WHITE */
    --link-color: #87CEFA;
    /* LIGHTSKYBLUE */
    --visited-color: #FFA500;
    /* ORANGE */
    --container-bg: rgba(0, 0, 0, 0.2);
    /* Slight overlay for readability */
    --card-bg: rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:visited {
    color: var(--visited-color);
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Layout Containers */
.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Sidebar Layout for Root Index */
.container-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.main-content {
    flex: 4;
    min-width: 0;
    /* Prevents overflow */
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .container-with-sidebar {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        box-sizing: border-box;
    }
}

/* Typography & Elements */
h1,
h2,
h3 {
    margin-top: 2em;
    margin-bottom: 0.8em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
}

h1:first-child,
h2:first-child {
    margin-top: 0;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    border-bottom: none;
    margin-bottom: 10px;
}

.update-info {
    font-size: 0.9em;
    opacity: 0.9;
}

blockquote {
    border-left: 4px solid var(--link-color);
    margin: 1.5em 0;
    padding: 1em;
    background-color: var(--card-bg);
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

ul,
ol {
    padding-left: 1.5em;
}

img,
video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.text-right {
    text-align: right;
    font-style: italic;
    margin-top: 20px;
}

/* Navigation Menu in Sidebar */
.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin-bottom: 10px;
}

.nav-menu a {
    display: block;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Component Sections */
section {
    margin-bottom: 40px;
}