nav {
    position: relative;
    margin: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    /* Sub Menu */
    position: center;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    -moz-transition: 0.2s linear;
    -ms-transition: 0.2s linear;
    -o-transition: 0.2s linear;
    transition: 0.1s linear;
    border-radius: 5px;
    background: whitesmoke;
}

nav ul li a:hover {
    background: white;
    /* color: #515151; */
}

nav ul li a .fa {
    width: 16px;
    text-align: center;
    margin-right: 5px;
    float: right;
}

nav ul ul {
    background-color: whitesmoke;
}

nav ul li ul li a {
    /* background: #f8f8f8; */
    border-left: 4px solid transparent;
    padding: 10px 20px;
}

nav ul li ul li a:hover {
    background: #ebebeb;
    border-left: 4px solid #3498db;
}