.nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    width: 95%;
    max-width: 320px;
    box-sizing: border-box;
    height: 60px;
    display: flex;
    z-index: 99999999999999999999999999999999999999;
    padding: 10px;
    border-radius: 1000px;
    justify-content: space-between;
    background-color: rgb(20, 20, 20);
}

.ni *{
    color: var(--bg);
}

.ni {
    display: flex;
    width: 40px;
    overflow: hidden;
    height: 40px;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    border-radius: 1000px;
    background-color: transparent;
}

.nav * {
    transition: 0.3s;
}

.nit {
    width: 0px;
}

.nii {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.nit {
    font-size: 15px;
    font-weight: 200;
}

.nav .a i{
    color: var(--main);

}

.nav .a {
    box-shadow: 0 0 10px 10px rgba(128, 128, 128, 0.301);
    background-color: rgba(128, 128, 128, 0.322);

}

.nii img {
    width: 100%;
    animation: spin infinite 2s linear;
}

@keyframes spin {
    0% {
        rotate: 0deg;
    }
    100% {
        rotate: 180deg;
    }
}

.ni:hover {
    background-color: rgba(128, 128, 128, 0.192);
    width: 120px;
}


.ni:hover .nit{
    width: 80px;
}



