ul ul {
    display: none;
}

ul li:hover > ul {
    display: block;
}

ul {
    color: white;
    border-radius: 3px;
    list-style: none;
    position: relative;
    display: inline-table;
    z-index: 0;
    position: relative;
}


div:hover > ul{
    z-index: 1;
}


ul:after {
    content: "";
    clear: both;
    display: block;
    z-index: -1;
}

ul li {
    cursor: default;
    padding-left: 10px;
    padding-right: 10px;
    float: right;
    position: relative;
    font-weight: bold;
}

ul li:hover {
    background: #b2b2b2;
    color: white;
}

ul li:hover a {
    color: #fff;
}

ul li a {
    display: block;
    padding: 3px 60px;
    color: #000000;
    text-decoration: none;
}

ul li {
    border-color: #b2b2b2;
    color: #000000;
    padding-top: 3px;
    padding-bottom: 3px;
    border-width: 2px;
    float: right;
    position: relative;
    font-weight: bold;
}


ul li:hover {
    background: #b2b2b2;
    color: white;
}

ul li:hover a {
    color: black;
}

ul li a {
    font-family: shabnam;
    display: block;
    padding: 3px 40px;
    color: #000000;
    text-decoration: none;
}

ul ul {
    font-family: shabnam;
    border-radius: 0px;
    padding: 0;
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
}
ul ul li {
    float: none;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    position: relative;
    z-index: 1;
}
ul ul li a {
    padding: 3px 60px;
    color: #fff;
}
ul ul li a:hover {
    background: #b2b2b2;
    color: white;
}

ul ul ul {
    position: absolute;
    right: 100%;
    top:10px;
}
