@import "tirefire/colors";

.nav-links {
  list-style: none;
}

.nav-item a {
  display: inline-block;
  padding: 10px 15px;
}

.nav-item:hover {
}

.nav-item:hover a {
  color: $secondary_blue;
}

$navbar_height: 50px;
$navbar_padding: 10px;
$stripe_thickness: 8px;
$stripe_padding: ($stripe_thickness / 4);

.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: $navbar_padding;
  padding-right: $navbar_padding;
  margin-top: $navbar_padding;
  background-color: $beige;
  box-shadow: 0px (1 * $stripe_thickness + 0 * $stripe_padding) 0px $red,
              0px (1 * $stripe_thickness + 1 * $stripe_padding) 0px $clear,
              0px (2 * $stripe_thickness + 1 * $stripe_padding) 0px $orange,
              0px (2 * $stripe_thickness + 2 * $stripe_padding) 0px $clear,
              0px (3 * $stripe_thickness + 2 * $stripe_padding) 0px $yellow;
  margin-bottom: (3 * ($stripe_thickness + $stripe_padding));

  .logo {
    text-decoration: none;
    font-size: 60px;

    a { text-decoration: none; color: $black; }

    img {
      height: 56px;
    }
  }
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
  z-index: 10000;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

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

  margin-left: auto;  // Float hard right
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: $red;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#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);
}

//@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: $navbar_height + ($navbar_padding * 3);
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: left;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: $secondary_blue;
    background-color: $beige;
  }
  /*
  #menu-toggle:checked ~ .menu > li {
    border-top: 1px solid #444;
  }
  */
  #menu-toggle:checked ~ .menu > li:last-child {
    padding-bottom: 1em;
    border-bottom: 1px solid #444;
  }
//}
