/* ==================================================
    Nav
   ================================================== */

.nav-wrapper {
  position: relative;
  top: inherit;
}

nav {
  /*  background-color: #fff;*/
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFF;
  z-index: 1;
  border-radius: 5px;
  margin: 0 5vw 1vw 5vw;
}

nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 0;
  color: var(--blue-color);
}

nav ul>li {
  overflow: hidden;
}

nav ul a {
  display: inline-block;
  padding: 7px 0px;

  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-family: var(--nav-font-family);
  font-weight: 600;
  color: inherit;
  text-transform: uppercase;
}

nav ul a:first-child {
  padding-left: 0;
}

nav ul a:last-child {
  padding-right: 0;
}

nav ul a.active {
  color: var(--blue-color);
}

nav ul span.devider {
  font-size: 1.1em;
  font-weight: 300;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#menu-toggle {
  padding: 10px;
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: var(--blue-color);
  position: absolute;
  height: 3px;
  width: 35px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 0px;
  z-index: 20;
}

.menu-button::before {
  content: 'non-visible-content';
  color: rgba(255, 255, 255, 0);
  size: 20px;
  margin-top: -9px;
}

.menu-button::after {
  content: 'non-visible-content';
  color: rgba(255, 255, 255, 0);
  size: 20px;
  margin-top: 9px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

nav ul li:hover {
  color: var(--red-color);
}

nav ul li a:hover {
  color: var(--red-color);
}

.nav-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
}

.top-link {
  position: absolute;
  height: 50px;
  top: -3px;
  left: 30px
}

@media (max-width: 620px) {
  .menu-button-container {
    display: flex;
  }

  nav {
    background-color: rgba(255, 255, 255, 0.8);
    padding-top: 28px;
    padding-bottom: 28px;
    height: 0;
  }

  nav ul {
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }

  #menu-toggle~ul li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked~ul li {
    /*    border: 1px solid #efefef;*/
    height: 1.5em;
    padding: 0em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  nav ul>li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
    color: var(--brown-color);
    background-color: rgba(255, 255, 255, 0.9);
    line-height: max(25px, min(4vw, 38px));
  }

  nav ul li:hover {
    background-color: #eeeeee !important;
  }

  nav ul li a:not(.top-link):hover {
    background-color: #eeeeee !important;
  }

  nav ul a {
    width: 100%;
  }

  .top-link {
    top: 3px;
    left: 15px;
    height: 50px;
    width: 23px;
  }

  .top-link img {
    height: 50px;
    width: 23px;
  }
}