/*
**********************************************
***      created by Boris Schmakowski      ***
***          www.schmakowski.de            ***
**********************************************
*/

nav {
	background-color: rgba(255, 255, 255, 0.95);
	/*position: absolute;
	bottom: 0;
	width: 100%;
	max-width: 980px;
	z-index: 999;*/
	top:-200px;
	padding: 10px 0;
	border-bottom: 2px solid #ffffff;
		-webkit-transition: all 2.25s ease;
       -moz-transition: all 2.25s ease;
        -ms-transition: all 2.25s ease;
         -o-transition: all 2.25s ease;
            transition: all 2.25s ease;
}
nav.fixed {
	width: 100%;
	position: fixed;
	bottom: inherit;
	top:0px;
	z-index: 1;
}
body.navfixed header {
	margin-bottom: 56.7px;
}

nav > div {
	margin: 0 auto;
	width: 100%;
}
nav ul.nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	justify-content: space-between; 	/*flex-end*/
}
nav ul.nav li {
	padding: 0;
	margin: 0;
}

nav ul#ProjectMenu {
	justify-content: space-around;
	margin-top: 40px;
}

nav ul.nav li a,
nav ul.nav li span {
	z-index: 2;
	display: block;
	padding: 0px 1px 2px 1px;
	color: #555555;
	font-weight: 300;
	font-size: 1.1em;
	line-height: 1.2em;
	text-decoration: none;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid transparent;
}
/*
nav ul.nav li:first-child a,
nav ul.nav li:first-child span {
	padding-left: 0px;
}
nav ul.nav li:last-child a,
nav ul.nav li:last-child span {
	padding-right: 0px;
}
*/
nav ul.nav li a:hover,
nav ul.nav li span:hover {
	text-decoration: none;
	border-bottom: 1px solid #68a4b9;
}

nav ul.nav li ul {
	/*display: none;*/
	position: absolute;
	margin: 12px 0 0 -20px;
	padding: 0 10px 10px 20px;
	background-color: rgba(155,255,255, 1);
	text-align: left;
	z-index: 1;
	opacity: 0;
    visibility: hidden;
/*     height: 0px; */
    top: 2em;
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
nav ul.nav li:hover ul {
	/*display: block;*/
	opacity: 1;
    visibility: visible;
/*
    height: auto;
    overflow: hidden;
*/
    top: 2.4em;
    -webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}
nav ul.nav li ul li {
	display: block;
	list-style: none;
	padding: 10px 15px 10px 0;
}
nav ul.nav li ul li a
nav ul.nav li ul li span {
	padding: 0;
}

nav ul.nav > li.active > a,
nav ul.nav > li.active > span {
	color: #68a4b9;
	border-bottom: 1px solid #68a4b9;
}
nav ul li ul.nav-child li.active a,
nav ul li ul.nav-child li.active span {
	color: #68a4b9;
	border-bottom: 1px solid #68a4b9;
}


/*---- Menu Toggle ----*/

div#menu-toggle {
	display: none;
	cursor: pointer;
	color: #68a4b9;
	font-size:1.3em;
	text-align: right;
}
div#menu-toggle span.icon-menu-3 {
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 20px;
	margin: 0 10px 0 0;
}
@media all and (max-width: 800px)
{
	div#menu-toggle {
		display: block;
	}
	body div.menu-collapse {
		max-height: 0;
	}
}
div.menu-collapse {
	overflow: hidden;
	-webkit-transition: max-height .3s ease-in-out;
       -moz-transition: max-height .3s ease-in-out;
        -ms-transition: max-height .3s ease-in-out;
         -o-transition: max-height .3s ease-in-out;
            transition: max-height .3s ease-in-out;
}
body.menu-open div.menu-collapse {
	max-height: 500px;
}


/* Small screens */
@media all and (max-width: 800px) {
  nav ul.nav {
    /* On small screens, we are no longer using row direction but column */
    flex-direction: column;
  }
  nav ul.nav li {
		padding: 0;
		margin: 0 0 0.5em 0;
	}
}
