nav{
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 100px;
    left: 0;
    top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 9;
}
nav > img{
    height: 40px;
}
nav>ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 668px;
}
nav>ul>li,nav>ul>li>a{
    color: white;
    font-size: 16px;
    cursor: pointer;
}
nav>ul>li:hover,nav>ul>li>a:hover{
    font-size: 18px;
    border-bottom: 1px solid white;
}
#menu{
    display: none;
}

@media(max-width: 1039px){
    nav{
        padding: 30px 50px;
    }
}

@media(max-width: 939px){
    nav>img{
        height: 35px;
    }
    nav>ul{
        width: 550px;
    }
}

@media(max-width: 839px){
    #navList{
        display: none;
        position: absolute;
        align-items: flex-start;
        width: 100%;
        left: 0;
        top: 95px;
        box-sizing: border-box;
        padding:10px 5px;
        background-color: white;
    }
    nav>ul>li,nav>ul>li>a{
        color: black;
        padding: 4px 0px;
    }
    nav>ul>li:hover,nav>ul>li>a:hover{
        font-size: 12px;
        border-bottom: none;
        color: rgb(201, 201, 201);
    }
    #menu{
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 24px;
        height: 15px;
        cursor: pointer;
    }
    #menu>div{
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 5px;
    }
}

@media(max-width: 499px){
    #navList{
        flex-direction: column;
        padding-left: 20px;
    }
}