* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#v-menu {
    list-style: none;
    width: 150px;
    background-color: #000000;
    margin: 50px;
}

#v-menu li {
    position: relative;
    border-bottom: 1px solid #FFF;
}

#v-menu a {
    display: block;
    padding: 10px 15px;
    color: #FFF;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

#v-menu li:hover > a {
    background-color: darkgray;
}

#v-menu ul {
    list-style: none;
    position: absolute;
    left: 100%; 
    top: 0;
    background-color: #000000;
    display: none;
    width: max-content; 
    min-width: 150px;
    z-index: 100;
}

#v-menu li:hover > ul {
    display: block;
}

.sub-3 {
    left: 100%; 
    top: 0;
}