.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    text-align: center;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.active {
        margin-left: 0;
    }
}

/* Shrinking the sidebar from 250px to 80px and center aligining its content*/
#sidebar.active {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

/* Toggling the sidebar header content, hide the big heading [h3] and showing the small heading [strong] and vice versa*/
#sidebar .sidebar-header strong {
    display: none;
}

#sidebar.active .sidebar-header h3 {
    display: none;
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    text-align: left;
}

#sidebar.active ul li a {
    padding: 10px 5px;
    text-align: center;
    font-size: 0.75em;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

/* Same dropdown links padding*/
#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar ul li.active {
    /*background: rgba(32, 32, 32, 0.9);*/
    border-top: 1px #999;
    border-top-style: solid;
    border-bottom: 1px #999;
    border-bottom-style: solid;
}


/* Changing the arrow position to bottom center position,
   translateX(50%) works with right: 50%
   to accurately  center the arrow */
#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 40%;
    right: 15%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

.logo {
    margin: 0 auto;
}

#sidebar.active .logo {
    width: 80px;
    height: auto;
}

#sidebar ul.resources {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px #343a40;
    border-top-style: solid;
    border-bottom: 1px #343a40;
    border-bottom-style: solid;
}

#sidebar.active .resources {
    display: none;
}


nav.resources-top {
    display: none;
}

nav.resources-top.show {
    display: block;
    top: 54px;
    left: 80px;
}

#topbar {
    left: 250px;
}

#topbar.show {
    left: 80px;
}
#content {
    position: relative;
    top: 54px;
}

#content.show {
    top: 94px;
}

@media (max-width: 768px) {
    /* 80px and its content aligned to centre. Pushing it off the screen with the
       negative left margin
    */
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
    }

    /* Toggling the sidebar header content, hide the big heading [h3] and showing the small heading [strong] and vice versa*/
    #sidebar .sidebar-header h3 {
        display: none;
    }

    #sidebar .sidebar-header strong {
        display: block;
    }

    #sidebar ul li a {
        padding: 10px 5px;
        text-align: center;
        font-size: 0.75em;
    }

    #sidebar ul li a i {
        margin-right: 0;
        display: block;
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    /* Same dropdown links padding*/
    #sidebar ul ul a {
        padding: 10px !important;
        font-size: 0.75em !important;
    }

    /* Changing the arrow position to bottom center position,
       translateX(50%) works with right: 50%
       to accurately  center the arrow */
    #sidebar .dropdown-toggle::after {
        top: auto;
        bottom: 40%;
        right: 15%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }

    .logo {
        margin: 0 auto;
    }

    #sidebar .logo {
        width: 80px;
        height: auto;
    }

    #sidebar .resources {
        display: none;
    }

    nav.resources-top {
        display: block;
        top: 55px;
        left: 80px;
    }
    nav.resources-top.show {
        display: block;
        top: 55px;
        left: 0;
    }

    #topbar {
        left: 80px;
    }

    #topbar.show {
        left: 0;
    }

    #content {
        top: 136px;
    }

    #content.show {
        top: 136px;
    }

    #sidebar.active {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }


    #sidebar {
        transition: all 0.1s;
    }


    /* Reappearing the sidebar on toggle button click */
    #sidebar {
        margin-left: 0;
    }


    /* Toggling the sidebar header content,
       hide the big heading [h3] and showing the small heading [strong] and vice versa
    */
    #sidebar .sidebar-header strong {
        display: none;
    }

    #sidebar.active .sidebar-header h3 {
        display: none;
    }

    #sidebar.active .sidebar-header strong {
        display: block;
    }

    /* Downsize the navigation links font size */
    #sidebar.active ul li a {
        padding: 20px 10px;
        font-size: 0.75em;
    }

    #sidebar.active ul li a i {
        margin-right: 0;
        display: block;
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    /* Adjust the dropdown links padding*/
    #sidebar.active ul ul a {
        padding: 10px !important;
    }

    /* Changing the arrow position to bottom center position,
      translateX(50%) works with right: 50%
      to accurately  center the arrow */
    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
}


#topbar {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 54px;
    background-color: rgba(0, 0, 0, 0.9);
}
.resources-top {
    background-color: rgba(0,0,0,0.9);
}