body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: sans-serif;
}

#menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fafafa;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}
#menu-container button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease;
    color: #333;
}
#menu-container button:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}
#menu-container a {
    margin-left: auto;
}

#content {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

#menu {
    width: 22%;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    background: #fafafa;
    padding: 1em;
    transition: transform 0.3s ease;
    z-index: 999;
}

#docFrame {
    flex: 1;
    border: none;
    min-width: 0;
    height: 100vh;
    margin-left: 22%;
}

ul { list-style-type: none; margin: 0; padding-left: 1em; }
li { margin: 0.2em 0; }
.version-title {
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    display: flex;
    align-items: center;
    font-size: 1.2em;
}
.version-title::before {
    content: "\FE0E\25B6\FE0E";
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s ease;
}
.version-title.expanded::before {
    transform: rotate(90deg);
}
.version-list {
    display: none;
    margin-top: 0.3em;
    margin-left: 1em;
    font-size: 1.1em;
}
.version-list.visible {
    display: block;
}
a[data-path] {
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
}
a[data-path]:hover {
    text-decoration: underline;
    color: #007acc;
}
a.active {
    color: #007acc;
    font-weight: bold;
}


@media (max-width: 1000px) {
    #menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 80%;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    #menu.active {
        transform: translateX(0);
    }

    #menu-container {
        justify-content: space-between;
        font-size: 30px;
        display: flex;
    }

    #menu-container button {
        font-size: 30px;
    }

    #menu-toggle {
        display: block;
        font-size: 50px;
    }

    .version-title {
        font-size: 1.8em;
    }
    .version-list {
        font-size: 1.5em;
    }

    #docFrame {
        width: 100%;
        margin-left: 0;
    }
}