/* NAV */

header {
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 1);

  display:flex ;
  flex-flow: row;
  align-items: center;

  position: fixed;
  z-index: 2;
  
  box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.5);

}
header > div {
  width: 100%;
  max-width: 2400px;
  margin: auto;
  display:flex ;
  flex-flow: row;
  align-items: center;
  
}

header > div figure {
  width: auto;
  margin-left: 0.8em;
}
header > div figure a {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
}

header > div figure a img:first-child {
  width: auto;
  height: 40px;
  margin-right: 0.5em;
}
header > div figure a img:last-child {
  width: auto;
  height: 12px;
}

.ham {
  position:fixed;
  top: 12px;
  right: 20px;
  z-index: 999;
  height: 32px;
  width: 32px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ham span,
.ham span::before,
.ham span::after {
  position: absolute;
  content: '';
  width: 32px;
  height: 3px;
  background:rgba(225, 225, 225, 1);
  border-radius: 20px;
  transition: 500ms cubic-bezier(0.77, 0, 0.175, 1);
}
.ham span::before {
  top: -10px;
  left: 0;
}
.ham span::after {
  top: 10px;
  left: 0;
}
.ham.cross > span {
  background: transparent;
}
.ham.cross > span::before,
.ham.cross > span::after {
  background: rgba(225, 225, 225, 1);
  top: 0px;
}
.ham.cross > span::before {
  -webkit-transform: rotate(-225deg);
  transform: rotate(-225deg);
}
.ham.cross > span::after {
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}


/* ------ MENU ------ */
nav {
  width: 100%;
  height: 180px;
  display: block;
  background-color: rgba(255, 255, 255, 0.9);
  position:fixed;
  top: -190px;
  left: 0;
  z-index: -1;
}

.primary {
  padding-top: 70px;

}
.primary > li {
  float: none;
}

/* clear'n floats */
nav > ul:after {
  clear: both;
}

nav > ul:before,
nav > ul:after {
  content: " ";
  display: table;
}

/* prime */
ul.primary li {
  list-style: none;
  position: relative;
}
ul.primary li:first-child {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

ul.primary li a {
  display: block;
  text-align: right;
  color: rgba(0, 0, 0, 1);
  font-size: 1em;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
}

.active {
  font-weight: 600;
}
.non-active {
  font-weight: 400;
}

/*iPad portrait*/
@media (min-width: 820px) {
  
  header {
    height: 69px;
  }
  header > div {
    width: 95%;
  }
  .ham {
    display: none;
  }
  nav {
    width:inherit; 
    height:inherit;
    position:initial;
    top: 0;
    right: 0;
    z-index: 5;
    background:transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
  }

  nav ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
  }
  .primary {
    padding-top: 0;
  }
  ul.primary li:first-child {
    border: none;
  }
  
}

/* ---- animation ---- */
.slide-In {
  -webkit-animation: slide-In 0.3s ease-in-out both;
  animation: slide-In 0.3s ease-in-out both;
          -webkit-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.5);
          -moz-box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.5);
          box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.5);
}
@-webkit-keyframes slide-In {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(190px);
            transform: translateY(190px);
  }
}
@keyframes slide-In {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(190px);
            transform: translateY(190px);
  }
}

.slide-Out {
	-webkit-animation: slide-Out 0.3s ease-in-out both;
	        animation: slide-Out 0.3s ease-in-out both;
}
@-webkit-keyframes slide-Out {
  0% {
    -webkit-transform: translateY(190px);
            transform: translateY(190px);
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes slide-Out {
  0% {
    -webkit-transform: translateY(190px);
            transform: translateY(190px);
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
