#nav-container {
    padding-top: 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80vw;
    max-width: 800px;
    margin: auto;
    align-items: center;
}

@media only screen and (max-width: 700px) {
    #nav-container {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        flex-wrap: wrap;
        width: 80vw;
        max-width: 800px;
        padding-bottom: 16px;
        gap: 16px;
    }
}

.nav-item {
    width: 80px;
    height: 80px;
    background: rgba(69, 61, 87, 0.25);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    padding: 5px;
    backdrop-filter: blur(var(--blur-radius));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 0;
    transform: translateY(calc(var(--i) * var(--i) * -.6px));
}

.nav-item:hover {
    font-size: 0.75rem;
    transform: translateY(calc(var(--i) * var(--i) * -.6px)) translateY(-15px) scale(1.15);
    background: var(--secondary);
    box-shadow: 0 10px 25px rgba(113, 41, 78, 0.6);
    z-index: 20;
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-item:hover i {
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.nav-item i {
    font-size: 1.8rem;
    
    color: var(--primary);
    transition: all 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .nav-item {
        font-size: 0.75rem;
    }
    .nav-item:hover {
        transform: translateY(calc(var(--i) * var(--i) * -.6px));
    }

    .nav-item:hover i {
        margin-bottom: 0;
    }
}


/* Set distance index from edges */
@media only screen and (min-width: 700px) {
    .nav-item:first-child,
    .nav-item:last-child { --i: 0; }
    .nav-item:nth-child(2),
    .nav-item:nth-last-child(2) { --i: 1; }
    .nav-item:nth-child(3),
    .nav-item:nth-last-child(3) { --i: 2; }
    .nav-item:nth-child(4),
    .nav-item:nth-last-child(4) { --i: 3; }
    .nav-item:nth-child(5),
    .nav-item:nth-last-child(5) { --i: 4; }
    .nav-item:nth-child(6),
    .nav-item:nth-last-child(6) { --i: 5; }
    .nav-item:nth-child(7),
    .nav-item:nth-last-child(7) { --i: 6; }
}