nav{
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    top: 40px;
    height: 40px;
    width: 40vw;
    background-color: #fff;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    padding-inline: 16px;
    box-sizing: border-box;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 99;
    a{
        color: black;
        text-decoration: none;
    }
    a:hover{
        cursor: pointer;
        color: var(--main);
    }
}

@media(max-width:928px){
    nav{
        width: 80%;
    }
}

@media(max-width:508px){
    nav{
        top: 264px;
        width: 95%;
        a{
            font-size: 0.75rem;
        }
    }
}