body {
    margin: 0;
    font-family: monospace;
    background-color: #f5f5f5;
}

#container {
    display: flex;
    height: 100vh;
}

/* About Me section */
#about {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    overflow: auto;
    transition: flex 0.3s ease;
}

/* Sidebar */
#sidebar {
    width: 60px; /* Shrunken width */
    background-color: #333;
    color: #fff;
    transition: width 0.3s ease, background 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

#sidebar-toggle-area {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 2;
    position: relative;
}

#sidebar-toggle {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 100vh;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    outline: none;
    background-color: transparent;
    transition: background 0.2s;
    padding: 0;
}

#sidebar-toggle-area:hover, #sidebar-toggle:hover {
    background-color: #555;
}

#sidebar.expanded #sidebar-toggle {
    display: block;
}

/* Expanded sidebar */
#sidebar.expanded {
    width: 90%; /* Takes 90% of the screen */
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: row;
}

/* Sidebar content */
#sidebar-content {
    flex: 1 1 auto;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: transparent;
    height: 100%;
    overflow-y: auto;
}

#sidebar.expanded #sidebar-content {
    opacity: 1;
}

#sidebar:not(.expanded) #sidebar-content {
    pointer-events: none;
}
