﻿#navbar *:after, #navbar *:before {
    box-sizing: border-box;
}


#navbar ul {
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    background-color: #05043e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px 0 rgba(5, 4, 62, 0.25);
}

#navbar li:nth-child(7) {
    margin-top: 5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #363664;
}

#navbar li + li {
    margin-top: 0.75rem;
}

#navbar a {
    color: #FFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
    position: relative;
}

    #navbar a:hover, #navbar a:focus, #navbar a.active {
        background-color: #30305a;
        outline: 0;
    }

        #navbar a:hover span, #navbar a:focus span, #navbar a.active span {
            transform: scale(1);
            opacity: 1;
        }

    #navbar a i {
        font-size: 2rem;
    }

    #navbar a span {
        font-size: 12px;
        position: absolute;
        background-color: #30305a;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        left: calc(100% + 1.5rem);
        transform-origin: center left;
        transform: scale(0);
        opacity: 0;
        transition: 0.15s ease;
        z-index: 100;
    }

        #navbar a span:before {
            content: "";
            display: block;
            width: 12px;
            height: 12px;
            position: absolute;
            background-color: #30305a;
            left: -5px;
            top: 50%;
            transform: translatey(-50%) rotate(45deg);
            border-radius: 3px;
        }

@-webkit-keyframes scale {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes scale {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}
