#nav {
    position:relative;
    width:800px;
    margin:0 auto;
    margin-top:0px;
    padding:0px;
    margin-left:0px;
    margin-right:auto;
}

ul#navigation {
    margin:0px auto;
    position:relative;
    float:center;
}

ul#navigation li {
    display:inline;
    font-size:12px;
    font-weight:bold;
    padding:0;
    float:left;
    position:relative;
}

ul#navigation li>ul>li {
    margin:0;
}

ul#navigation li a {
    padding: 4px 10px !important;
    font-size: 12px;
    color: #596167;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #abb4ba;
    border-radius: 0;
    background: url('../../img/lightPattern.png') repeat;
    /* width: 212px; */
    display:block;

    -webkit-transition:color 0.2s linear, background 0.2s linear;
    -moz-transition:color 0.2s linear, background 0.2s linear;
    -o-transition:color 0.2s linear, background 0.2s linear;
    transition:color 0.2s linear, background 0.2s linear;
}

ul#navigation li.wider {
    margin: 15px;
    text-align: center;
}

ul#navigation li a:hover {
    background:#f8f8f8;
    color:#fff;
}

ul#navigation li a.first {
    border-left: 0 none;
}

ul#navigation li a.last {
    border-right: 0 none;
}

ul#navigation li:hover > a {
    background: url('../../img/darkPattern.png') repeat;
    color:#fff;
}
/* Drop-Down Navigation */
ul#navigation li:hover > ul
{
/*these 2 styles are very important,
being the ones which make the drop-down to appear on hover */
    visibility:visible;
    opacity:1;
}

ul#navigation ul, ul#navigation ul li ul {
    list-style: none;
    margin: 0;
    padding: 0;
/*the next 2 styles are very important,
being the ones which make the drop-down to stay hidden */
    visibility:hidden;
    opacity:0;
    position: absolute;
    width:210px;
    background:#f8f8f8;
    box-shadow:1px 1px 3px #ccc;
/* css3 transitions for smooth hover effect */
    -webkit-transition:opacity 0.2s linear, visibility 0.2s linear;
    -moz-transition:opacity 0.2s linear, visibility 0.2s linear;
    -o-transition:opacity 0.2s linear, visibility 0.2s linear;
    transition:opacity 0.2s linear, visibility 0.2s linear;
}

ul#navigation ul {
    top: 28px;
    left: 1px;
}

ul#navigation ul li ul {
    top: 0;
    left: 168px; /* strong related to width:180px; from above */
}

ul#navigation ul li ul.expand-left {
    left: -168px;
}

ul#navigation ul li {
    clear:both;
    width:100%;
    border:0 none;
    border-bottom:1px solid #c9c9c9;
}

ul#navigation ul li a {
    background: url('../../img/lightPattern.png') repeat;
    padding:7px 15px;
    color:#616161;
    display:inline-block;
    border:0 none;
    float:left;
    clear:both;
    width:210px;
}

.current_page {
    padding: 4px 10px !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #abb4ba;
    border-radius: 0;
    background: url('../../img/darkPattern.png') repeat;
    color:#fff;
    width: calc(100%);
    display:block;
    text-align: center;
    height: 30px;

    -webkit-transition:color 0.2s linear, background 0.2s linear;
    -moz-transition:color 0.2s linear, background 0.2s linear;
    -o-transition:color 0.2s linear, background 0.2s linear;
    transition:color 0.2s linear, background 0.2s linear;
}

.current_page span {
  color:#fff;
}

div.current_page > span.current_subpage, span.current_subpage {
    font-weight: bold;
    color:white !important;
}

ul#navigation li.active a, #navbar li.active > a{
    background: url(../../img/darkPattern.png);
    color: #fff;
}

ul#navigation a.active, #navbar a.active {
    background: url('../../img/darkPattern.png') repeat;
    color:#fff;
}

.faCentered{
    padding:  8px 0 0 5px;
 }


 /* Dropdowns */
/* Compared to old ones, these automatically resize to fit their content */
/* and automatically apply appropriate styles when nested uls are present, up to the second level */
#navbar > li {
    position: relative;
    display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

#navbar li a {
    transition: color 0.2s linear, background 0.2s linear;
}

/* main styling for nested lists when visible */
#navbar li:hover > ul, #navbar li > ul:hover {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 25px;
    z-index: 9999;
    padding-top: 2px;
    cursor: pointer;
}

/* main styling for nested lists */
#navbar li ul, #navbar li ul > li > ul {
	box-sizing: border-box;
	display: none;
	padding: 0;
	margin: 0;
	border-left: 1px solid #abb4ba;
	border-right: 1px solid #abb4ba;
	box-shadow: rgba(0,0,0,0.2) 2px 2px 4px;
    width: 100%;
}

/* additional styling for nested dropdown `a` */
#navbar li ul li > a {
	border: none;
	border-bottom: 1px solid #aab4aa;
	position: relative;
}

/* flexing of nested dropdown li */
#navbar li ul li {
	flex: 1;
	margin: 0;
	position: relative;
	max-height: 27px;
}

/* `a` icons, displayed automatically when nested dropdown present */
#navbar > li > ul~a:after, #navbar li ul li > ul~a:after {
	position: absolute;
	font-family: 'FontAwesome';
	top: 7px;
	right: 10px;
	content: "\f078";
}
/* exception for last element, which opens dropdown to the left instead of right */
#navbar li:last-of-type ul li > ul~a:after {
	content: " "
}
#navbar li:last-of-type ul li > ul~a:before {
	position: absolute;
	font-family: 'FontAwesome';
	top: 7px;
	left: 10px;
	content: "\f053";
}

/* Second level `a` icon */
#navbar li ul li > ul~a:after {
	content: "\f054";
}

/* Second level container ul */
#navbar li ul > li:hover > ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    z-index: 9999;
    cursor: pointer;
	left: 100%;
	border-top: 1px solid #aab4aa;
	padding-top: 0;
}

#navbar li:last-of-type ul > li:hover > ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    z-index: 9999;
    cursor: pointer;
	left: -100%;
	border-top: 1px solid #aab4aa;
	padding-top: 0;
}


/* New Flex Navmenu END */
