body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    margin-bottom: 80px; /* Adjust based on footer height */
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex;
    flex-direction: column;
}

p {
    margin-top: 0px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0.2rem 0; /* Reduce top and bottom margins */
}

nav.horizontal {
    background-color: #444;
}

nav.horizontal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav.horizontal ul li {
    margin: 0 1rem;
}

nav.horizontal ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

nav.horizontal ul li a:hover {
    background-color: #555;
}

#sidebar {
    width: 200px;
    background-color: #444;
    padding: 1rem;
}

nav.vertical ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.vertical ul li {
    margin: 0.1rem 0;
    position: relative; /* Ensure the pseudo-element is positioned relative to the list item */
}

nav.vertical ul a {
    color: #fff;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    display: block;
}

nav.vertical ul a.current-page {
    background-color: #666;
    font-weight: 700;
    border-left: 4px solid #fff;
    padding-left: calc(0.5rem - 4px);
}

nav.vertical ul a.current-section {
    background-color: #555;
}

nav.vertical ul li ul {
    list-style: none;
    padding-left: 1rem;
    display: none; /* Hide nested lists by default */
}

nav.vertical ul li ul li {
    margin: 0.5rem 0;
}

nav.vertical ul li ul li a {
    padding-left: 1.5rem;
}

nav.vertical ul li a:hover {
    background-color: #555;
}

.collapsible::before {
    content: '\25B8'; /* 02C4 Right-pointing wedge */
    font-size: 0.8rem;
    margin-right: 5px;
/*    position: absolute;
    left: 0.5rem; /* Adjust this value to position the wedge correctly */
/*    top: 50%;
    transform: translateY(-50%); */
}

.collapsible.active::before {
    content: '\25BE'; /*\02C5 Down-pointing wedge */
}

.nested {
    display: none;
}

.active + .nested {
    display: block;
}

#container {
    display: flex;
    align-items: flex-start;
    padding: 0rem 1rem;
}

#content {
    max-width: 1200px;
    width: calc(100% - 200px);
    background-color: #fff;
    padding: 0rem 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed; 
    bottom: 0;
    width: 100%;
}

#hamburger-menu {
    display: none;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    #container {
        flex-direction: column;
        padding: 1rem;
    }

    #sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }

    #content {
        width: 100%;
        padding: 1rem;
    }

    nav.horizontal ul {
        flex-direction: column;
    }

    nav.horizontal ul li {
        margin: 0.5rem 0;
    }

    #hamburger-menu {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        background-color: #444;
        color: #fff;
        text-align: center;
        width: 2rem;
        position: absolute;
        top: 2.2rem;
    }

    #sidebar {
        display: none;
    }

    #sidebar.active {
        display: block;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 1.5rem;
    }

    nav.horizontal ul li a {
        padding: 0.5rem;
    }


    #content {
        padding: 0.5rem;
    }


    footer {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}