/* CSS Document */
#nav {
    margin: 15px 5px 5px;
    padding: 7px 6px 0;
    border-radius: 2em;
    background: #888;
}
#nav li {
    margin: 0 5px;
    padding: 0 0 8px;
    float: left;
    position: relative;
    list-style: none;
}
/* main level link */
#nav a {
    font-weight: bold;
    color: #eee;
    text-decoration: none;
    display: block;
    padding: 5px 13px; /* Change the second value to widen or narrow the nav bar. */
    margin: 0;
    -webkit-border-radius: 1.6em;
    -moz-border-radius: 1.6em;
    border-radius: 1.6em;
    /*text-shadow: 0 1px 1px rgba(0, 0, 0, .3);*/
}
/* main level link hover */
#nav .current a, #nav li:hover > a {
    background: #ddd;
    color: #444;
}
/* sub levels link hover */
#nav ul li:hover a, #nav li:hover li a {
    background: none;
    border: none;
    color: #666;
    padding: 10px 15px;
}
#nav ul a:hover {
    background: #3d8bd8 !important;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#83bee7', endColorstr='#3d8bd8');
    background: -webkit-gradient(linear, left top, left bottom, from(#83bee7), to(#3d8bd8)) !important;
    background: -moz-linear-gradient(top, #83bee7, #3d8bd8) !important;
    background: linear-gradient(#83bee7, #3d8bd8);
    color: #fff !important;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    /*text-shadow: 0 1px 1px rgba(0, 0, 0, .1);*/
}
/* level 2 list */
#nav ul {
    background: #eee;
    display: none;
    margin: 0;
    padding: 0; /* This is the padding for the dropdown items */
    width: 200px;
    position: absolute;
    top: 35px;
    left: 0;
    /*border: solid 1px #b4b4b4;*/
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
/* dropdown */
#nav li:hover > ul {
    display: block;
}
#nav ul li {
    float: none;
    margin: 0;
    padding: 0;
}
#nav ul a {
    font-weight: normal;
    /*text-shadow: 0 1px 1px rgba(255, 255, 255, .9);*/
}
/* level 3+ list */
#nav ul ul {
    left: 181px;
    top: -3px;
}
/* rounded corners for first and last child */
#nav ul li:first-child > a {
    -webkit-border-top-left-radius: 9px;
    -moz-border-radius-topleft: 9px;
    border-top-left-radius: 9px;
    -webkit-border-top-right-radius: 9px;
    -moz-border-radius-topright: 9px;
    border-top-right-radius: 9px;
}
#nav ul li:last-child > a {
    -webkit-border-bottom-left-radius: 9px;
    -moz-border-radius-bottomleft: 9px;
    border-bottom-left-radius: 9px;
    -webkit-border-bottom-right-radius: 9px;
    -moz-border-radius-bottomright: 9px;
    border-bottom-right-radius: 9px;
}
/* clearfix */
#nav:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
#nav {
    display: inline-block;
}
html[xmlns] #nav {
    display: block;
}
* html #nav {
    height: 1%;
}
#mobile-nav {
    position: absolute;
    background: #666;
    padding: 0 15px;
    width: 175px;
    height: 350px;
    z-index: 5;
    top: 23px;
    right: 18px;
    border-radius: 5px;
    display: none;
}
#mobile-nav p {
    margin-top: .5em;
}
#mobile-nav a {
    color: white;
    text-decoration: none;
}