nav {
    position: fixed;
    height: 100vh;
    width: 20px;
    max-width: 20px;
    background-color: #1b2b6a;
    background-image: radial-gradient(circle, #1d8881 0%, #1b2b6a 60%), radial-gradient(circle, #1d8881 0%, #1b2b6a 50%);
    background-position: center top -50vh, right -50vh bottom -56vh;
    background-size: 100vh 100vh;
    background-repeat: no-repeat;
    color: #fff;
    transition: width 250ms;
    z-index: 3;
}

nav:after {
    content: '...';
    font-weight: bolder;
    font-size: 1.5em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-25%);
}

nav:hover {
    max-width: inherit;
    width: 220px;
    transition: width 250ms;
    z-index: 4;
}

@keyframes slidein {
    from {
        transform: translateX(-200%);
        opacity: 0;
        touch-action: none;
        pointer-events: none;
    }

    to {
        transform: translateX(0%);
        opacity: 1;
        touch-action: initial;
        pointer-events: initial;
    }
}

@keyframes slideout {
    from {
        transform: translateX(-200%);
        opacity: 1;
    }

    to {
        transform: translateX(-200%);
        opacity: 0;
    }
}

nav * {
    display: none;
    animation: slideout 0ms;
    transform: translateX(-200%);
    touch-action: none;
}

nav:hover * {
    display: inherit;
    animation: slidein 250ms;
    transform: translateX(0%);
    touch-action: initial;
}

nav:hover:after {
    display: none;
}

nav ul li {
    white-space: nowrap;
}

nav ul li:not(.separador):hover {
    background: rgba(255, 255, 255, 0.25);
}

nav ul li a {
    padding: 10px 20px;
    width: 100%;
    font-weight: 600;
}

nav .logo {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 35px;
}

nav .logo img {
    width: 6em;
}

nav .carregando .logo img {
    opacity: 0;
}

nav li.separador {
    border: 1px solid rgba(255, 255, 255, .3);
    margin: 10px 10px;
}