.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #212529;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: -250px;
    /* Initially hidden off-screen */
    transition: left 0.3s ease;
    z-index: 1031;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

#offsidebar {
    top: 0;
    height: 100%;
    width: 100%;
    left: 250px;
    position: fixed;
    background-color: #333;
    z-index: 1030;
}

.offside-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s, visibility 0s linear 0.3s;
    width: 0px;
}

.offside-visible {
    opacity: 0.5;
    visibility: visible;
    transition: linear 0.3s opacity 0.2s, visibility 0s;
    width: 300%;
}