body{
    display: flex;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    position: relative;
    overflow: hidden;
    width: 90%;
    height: 55px;
    background-color: #fff;
    padding: 0 20px;
    border-radius: 40px;
    z-index: 10;
    overflow: hidden;
    align-content: center;
    justify-content: center;
    margin: 20px auto;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.26);
}

.nav-item {
    color: #83818c;
    padding: 20px;
    text-decoration: none;
    transition: 0.3s;
    margin: 0 6px;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    position: relative;
    align-self: center;
    width: 16%;
    height: 100%;
    box-sizing: border-box;
}

.nav-item:before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #dfe2ea;
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: 0.3s;
}

.nav-item:not(.is-active):hover:before {
    opacity: 1;
    bottom: 0;
}

.nav-item:not(.is-active):hover {
    color: #333;
}

.nav-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    transition: 0.4s;
    height: 5px;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

@media (max-width: 800px) {
    .nav{
       position: fixed;
        bottom: 10px;
        width: 85%;
        margin-left: 5%;
    }
}

@media (max-width: 580px) {
    .nav {
        font-size: 15px;
        margin-left: 3.5%;
    }
    .nav-item{
        padding: 20px 5px;
    }
}
