/* General menu styling */
.nav {
position: relative;
margin: 0px;
padding: 0;
line-height: 16px;
text-align:center;
}
/* The main navigation link containers */
.nav>li {
display: block;
float: left; /* Displaying them on the same line */
margin-right: 3px;
padding: 0;
}
/* The main navigation links */
.nav>li>a {
/* Layout */
display: block;
position: relative;
padding: 0px 0px;
/* Text */
font-family: squarei;
font-style:italic;
color: #5588bb;
font-size: 28px;
text-decoration: none;
/* Background */
background: rgba(111,111,111,0.2); /* For older browsers */

background: -ms-linear-gradient(bottom, rgba(111,111,111,0.2) 0%,rgba(111,111,111,0) 70%);

/* Mozilla Firefox */ 
background: -moz-linear-gradient(bottom, rgba(111,111,111,0.2) 0%,rgba(111,111,111,0) 70%);

/* Opera */ 
background: -o-linear-gradient(bottom, rgba(111,111,111,0.2) 0%,rgba(111,111,111,0) 70%);

/* Webkit (Safari/Chrome 10) */ 
background: -webkit-gradient(linear, bottom, top, color-stop(0, rgba(111,111,111,0.2)), color-stop(70, rgba(111,111,111,0)));

/* Webkit (Chrome 11+) */ 
background: -webkit-linear-gradient(bottom, rgba(111,111,111,0.2) 0%,rgba(111,111,111,0) 70%);

/* Making the color to change on hover with a transition */
-webkit-transition: color .2s ease-in;
-moz-transition: color .2s ease-in;
-o-transition: color .2s ease-in;
-ms-transition: color .2s ease-in;

-moz-border-radius: 4px; 
-webkit-border-radius: 4px; 
-khtml-border-radius: 4px; 
border-radius: 4px; 

width:420px;
height:40px;

border: solid 0px;
}
/* Changing the color on hover */
.nav>li>a:hover, .nav>li:hover>a {
color: #0085ee;
/* Background */
background: rgba(33,33,33,0.2); /* For older browsers */

background: -ms-linear-gradient(bottom, rgba(000,000,000,0.3) 0%,rgba(111,111,111,0.2) 70%);

/* Mozilla Firefox */ 
background: -moz-linear-gradient(bottom, rgba(000,000,000,0.3) 0%,rgba(111,111,111,0.2) 70%);

/* Opera */ 
background: -o-linear-gradient(bottom, rgba(000,000,000,0.3) 0%,rgba(111,111,111,0.2) 70%);

/* Webkit (Safari/Chrome 10) */ 
background: -webkit-gradient(linear, bottom, top, color-stop(0, rgba(000,000,000,0.3)), color-stop(70, rgba(111,111,111,0.2)));

/* Webkit (Chrome 11+) */ 
background: -webkit-linear-gradient(bottom, rgba(000,000,000,0.3) 0%,rgba(111,111,111,0.2) 70%);
}

/* The links which contain dropdowns menu are wider, because they have a little arrow */
.nav>.dropdown>a {
padding: 20px 0px 0px 0px;
}

/* The arrow indicating the dropdown */
.dropdown>a::after {
content: "";
position: absolute;
top: 25px;
right:380px;
width: 7px;
height: 7px;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
border-bottom: 1px solid #58b;
border-right: 1px solid #58b;
}

/* The arrow indicating the dropdown */
.dropdown >a.active::after {
border-bottom: 1px solid #03c4ff;
border-right: 1px solid #03c4ff;
}

/* Changing the color of the arrow on hover */	
.dropdown>a:hover::after, .dropdown:hover>a::after {
border-color: #0085dc;
}

/* The submenus */
.nav ul {
position: absolute;
margin: 0;
padding: 0;
list-style: none;
display: block;
}
/* General layout settings for the link containers of the submenus */
.nav ul li {
position: absolute;
top: -9999px; /* Hiding them */
height: 0px;
display: block;
margin: 0;
padding: 0;
/* Making them to expand their height with a transition, for a slide effect */
-webkit-transition: height .2s ease-in;
-moz-transition: height .2s ease-in;
-o-transition: height .2s ease-in;
-ms-transition: height .2s ease-in;
}

/* Displays the submenu links, by expading their containers (with a transition, previously defined) and by repositioning them */
.dropdown:hover>ul>li {
height: auto;
position: relative;
top: auto;
}

/* The submenu links */
.nav ul li a {
/* Layout */
text-align:left;
padding: 10px 14px;
width: 200px;
height:auto;
display: block;
position: relative;
/* Text */
font-family: squarei;
font-style: italic;
color: #fff;
text-decoration: none;
font-size: 16px;

/* Background & effects */
background: black;
background: rgba(111, 115, 122, .9);
-webkit-transition: color .2s ease-in, background .2s ease-in;
-moz-transition: color .2s ease-in, background .2s ease-in;
-o-transition: color .2s ease-in, background .2s ease-in;
-ms-transition: color .2s ease-in, background .2s ease-in;
}

/* Changing the link's color and background on hover */
.nav ul li:hover>a, .nav ul li a:hover {
color: #0fd0f9;
background: rgba(88, 88, 99, .9);
}


/* active link */
.nav a.active {
  color: #03c4ff;
  text-decoration: none;
/* Background */
background: rgba(255,255,255,0.7); /* For older browsers */

background: -ms-linear-gradient(bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);

/* Mozilla Firefox */ 
background: -moz-linear-gradient(bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);

/* Opera */ 
background: -o-linear-gradient(bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);

/* Webkit (Safari/Chrome 10) */ 
background: -webkit-gradient(linear, bottom, top, color-stop(0, rgba(255,255,255,0)), color-stop(70, rgba(255,255,255,1)));

/* Webkit (Chrome 11+) */ 
background: -webkit-linear-gradient(bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);
}


/* Making the level 2 (or higher) submenus to appear at the right of their parent */
.nav ul .dropdown:hover ul {
left: 228px;
top: 0px;
}

/* The submenu links have a different arrow which indicates another dropdown submenu */
.nav ul .dropdown a::after {
width: 6px;
height: 6px;
border-bottom: 0;
border-right: 1px solid #fff;
border-top: 1px solid #fff;
top: 15px;
right:10px;
}
/* Changing the color of the arrow on hover */
.nav ul .dropdown:hover>a::after, .nav ul .dropdown>a:hover::after {
border-right: 1px solid #0fd0f9;
border-top: 1px solid #0fd0f9;
}
