.navbar {
    height: 100%;
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 100px;
    top: 0;
    left: 0;
    background-color: white;
    transition: all 1s cubic-bezier(1, 0, 0, 1);
    z-index: 100;
    overflow: hidden;
    border-radius: 0 5px 5px 0;
}

.navbar a {
    text-decoration: none;
    color: black;
    transition: all 1s cubic-bezier(1, 0, 0, 1), opacity 0.3s ease-in-out;
}

.navbar p {
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.navbar div {
    height : 50px;
    width : 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease-in-out;
}

.navbar div.dropdown-toggle:hover {
    background-color: #e6e6e6;
}

.navbar div.submenu:hover {
    background-color: #e6e6e6;
}

.navbar div.home {
    height : 100px;
    background-image: url('/images/main-gradient.jpg');
    background-size: 200px 200px;
    transition: inherit;
}

.navbar div.home img {
    height: 120%;
    transition: inherit;
}

.navbar div.home:hover img {
    opacity: 0.8;
}

.navbar div.dropdown-toggle img {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar .submenu {
    width: 300px;
    justify-content: center;
    transition: background-color 0.3s ease-in-out, position 1s cubic-bezier(1, 0, 0, 1), width 1s cubic-bezier(1, 0, 0, 1);
}

.navbar .submenu .icon {
    width: 100px;
    transition: position 1s cubic-bezier(1, 0, 0, 1), width 1s cubic-bezier(1, 0, 0, 1);
}

.navbar .submenu .text {
    width: 200px;
    transition: position 1s cubic-bezier(1, 0, 0, 1), width 1s cubic-bezier(1, 0, 0, 1);
}

.navbar.expanded {
    width: 300px;
}

.navbar.expanded div.home {
    height: 300px;
    background-size: 300px 300px;
}

.navbar.expanded div.home img {
    height: 100%;
}

.navbar.expanded div.dropdown-toggle img {
    rotate: 90deg;
}

.navbar.expanded .submenu .icon {
    width: 50px;
}

.navbar.expanded .submenu .text {
    width: 150px;
}

.navbar .bottom {
    margin-top: auto;
}

.cover-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.cover-box.hidden {
    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;
}