﻿nav {
    display: block;
    text-align: center;
}

    nav ul {
        margin: 16px 0 0 0;
        padding: 0;
        list-style: none;

    }

.nav a {
    display: block;
    color: #333;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    /*padding: 0.8em 1.8em;
    text-transform: uppercase;*/
    font-size: 14px;
    letter-spacing: 1px;
    /*text-shadow: 0 -1px 0 #000;*/
    position: relative;
}

.nav {
    vertical-align: top;
    display: inline-block;
    box-shadow: 1px -1px -1px 1px #000, -1px 1px -1px 1px #fff, 0 0 6px 3px #fff;
    border-radius: 6px;
    width: 100%;
    line-height: 1.8em !important;
    position: relative;
    z-index: 1 !important;
    display: flex;
}

    .nav li {
        position: relative;
        position: relative;
        border: none;
        font-size: 15px;
    }
.li-border-bottom {
    border-bottom: 4px #aaa solid;
}
.nav > li {
    /* margin-right: 1px;*/
    /*padding-bottom: 9px;*/
    padding-bottom: 0px;
}

    .nav > li > a {
        /*margin-bottom: 1px;
            box-shadow: inset 0 2em .33em -0.5em #555;*/
        font-weight: 700;
        font-family: 'PT Sans';
    }

    .nav > li:hover,
    .nav > li:hover > a {
        border-bottom-color: #2d83cf;
    }

.nav li:hover > a {
    color: #2d83cf;
}

.nav > li:first-child {
    -webkit-border-top-right-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-radius-topright: 4px;
    -moz-border-radius-bottomright: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

    .nav > li:first-child > a {
        /*border-radius: 4px 0 0 0;*/
        -webkit-border-top-left-radius: 4px;
        -webkit-border-bottom-left-radius: 4px;
        -moz-border-radius-topleft: 4px;
        -moz-border-radius-bottomleft: 4px;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

.nav > li:last-child > a {
    -webkit-border-top-right-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-radius-topright: 4px;
    -moz-border-radius-bottomright: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}



.nav li li a {
    margin-top: -1px;
    padding: 5px 15px;
    font-weight: 400;
    font-family: 'PT Sans';
}


.nav li a:first-child:nth-last-child(2):before {
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border: 5px solid transparent;
    top: 40%;
    right: -1px;
}

/* submenu positioning*/
.nav ul {
    position: absolute;
    white-space: nowrap;
    border-bottom: 3px solid #2d83cf;
    z-index: 999;
    left: -99999em;
}

.nav > li:hover > ul {
    left: auto;
    margin-top: 0;
    min-width: 100%;
}

.nav > li li:hover > ul {
    left: 100%;
    margin-left: 0px;
    top: -1px;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left: 0px;
    -webkit-border-top-right-radius: 6px;
    -webkit-border-bottom-right-radius: 6px;
    -moz-border-radius-topright: 6px;
    -moz-border-radius-bottomright: 6px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    margin: 0px;
}

/* 	arrow hover styling 
    .nav > li > a:first-child:nth-last-child(2):before {
        border-top-color: #fff;
    }
	.nav > li:hover > a:first-child:nth-last-child(2):before {
	border: 3px solid transparent;
		border-bottom-color: #2d83cf;
		margin-top: -5px
	}
*/

.nav li li > a:first-child:nth-last-child(2):before {
    border-left-color: #aaa;
    /*margin-top: -5px*/
}

.nav li li:hover > a:first-child:nth-last-child(2):before {
    /*border: 3px solid transparent;
    border-right-color: #2d83cf;
    right: 10px;*/
}
