@charset "utf-8";
/* CSS Document */

nav {    
  display: block;
  text-align: center;
}

nav ul {
  margin: 0;
  padding:0;
  list-style: none;
}

.nav a {
  display:block; 
  background: #111; 
  color: #fff; 
  text-decoration: none;
  padding: 0.8em 1.8em;
  /*text-transform: uppercase;*/
  font-size: 50%;
  letter-spacing: 2px;
  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;
  margin-top: 20px
}

.nav li {
  position: relative;
}

.nav > li { 
  float: left; 
  border-bottom: 5px #aaa solid; 
  margin-right: 1px; 
} 

.nav > li > a { 
  margin-bottom: 1px;
  box-shadow: inset 0 2em .33em -0.5em #555;
}

.nav > li:hover, 
.nav > li:hover > a { 
  border-bottom-color: orange;
}

.nav li:hover > a { 
  color:orange; 
}

.nav > li:first-child { 
  border-radius: 4px 0 0 4px;
} 

.nav > li:first-child > a { 
  border-radius: 4px 0 0 0;
}

.nav > li:last-child { 
  border-radius: 0 0 4px 0; 
  margin-right: 0;
} 

.nav > li:last-child > a { 
  border-radius: 0 4px 0 0;
}

.nav li li a {
	border-top: 1px solid orange;
}

/*------------------------------------------------*/

.nav li a:first-child:nth-last-child(2):before { 
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  border: 5px solid transparent;
  top: 50%;
  right: 5px;
 }
/*------------------------------------------------*/

/* submenu positioning*/

.nav ul {
  position: absolute;
  white-space: nowrap;
  border-bottom: 5px solid  orange;
  z-index: 1;
  left: -99999em;
}

.nav > li:hover > ul {
  left: auto;
  margin-top: 5px;
  min-width: 100%;
}

.nav > li li:hover > ul { 
  left: 100%;
  border-left: 1px solid orange;
  border-right: 1px solid orange;
  border-top: 1px solid orange;
  top: -1px;
}

/* arrow hover styling */
.nav > li > a:first-child:nth-last-child(2):before { 
  border-top-color: #aaa; 
}

.nav > li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-bottom-color: orange; 
  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: 5px solid transparent; 
  border-right-color: orange;
  right: 10px; 
}

/**************************************************************/
.nav ul li:hover,
.nav ul li.active {
  background: #0f71ba;
  background: -moz-linear-gradient(top, #3fa4f0 0%, #0f71ba 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #3fa4f0), color-stop(100%, #0f71ba));
  background: -webkit-linear-gradient(top, #3fa4f0 0%, #0f71ba 100%);
  background: -o-linear-gradient(top, #3fa4f0 0%, #0f71ba 100%);
  background: -ms-linear-gradient(top, #3fa4f0 0%, #0f71ba 100%);
  background: linear-gradient(to bottom, #3fa4f0 0%, #0f71ba 100%);
}
.nav ul li a:hover,
.nav ul li.active > a {
  background: url('images/bg.png');
  color: orange;
}

.nav li.active {
	border-bottom: 5px orange solid;
	font-size: 35%;
}
