.navigation {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 75px;
  padding: 0.5rem;
  display: flex;
  transition: all ease-in-out 0.5s;
  align-items: center;
  background-color: white;
}

.brand-name-container {
  display: flex;
  align-items: center;
  padding: 0 0.5em;
  align-items: center;
}

.brand-name-container h1 {
  font-size: 1.5em;
  color: var(--primary);
}

.nav-menu {
  position: absolute;
  height: 100vh;
  background: var(--tertiary);
  top: 0;
  width: 100%;
  right: -100%;
  transition: all ease-in-out 0.5s;
  padding: 2rem;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.nav-menu li {
  margin-bottom: 0.75rem;
  text-align: center;
}
.nav-menu li a {
  color: var(--secondary);
  font-size: 1.2em;
  text-transform: uppercase;
}

/* .nav-menu li:last-child {
  flex-grow: 1;
  display: flex;
  margin: 0;
} */

/* .nav-menu li:last-child .social-icons {
  align-self: flex-end;
} */

.nav-menu .social-icons {
  margin-top: 1rem;
}

.brand-logo-container {
  width: 60px;
  display: flex;
  align-items: center;
}
.navigation .brand-logo-fixed {
  /* max-height: 70px; */
  width: 100%;
}

.navigation .brand-logo,
.nav-menu .brand-logo {
  max-height: 100px;
}

.nav-menu .linebreaker {
  width: 20px;
  height: 5px;
  background: var(--primary);
}

.nav-block {
  z-index: -1;
  width: 30%;
  left: -70%;
  position: absolute;
  height: 100vh;
  top: 0;
  transition: all ease-in-out 0.5s;
  background: rgba(0, 0, 0, 0.5);
}

/* class added to open the mobile nav */
.nav-menu-open {
  right: 0%;
}

.nav-block-open {
  left: 70%;
}

/* ================ Dropdown ======================= */

.dropdown-box {
  font-size: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0 0;
  align-items: center;
}

.dropdown-box a img {
  max-height: 15px;
}

.dropdown .dropdown-box a {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.dropdown .dropdown-btn {
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline;
  color: white;
}

.arrow {
  border: solid var(--secondary);
  border-width: 0px 3px 3px 0;
  display: inline-block;
  padding: 4px;
  position: relative;
  top: -0.2rem;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/* ================ Hamburger ======================= */

.hamburger {
  position: relative;
  display: flex;
  align-self: center;
  flex-direction: column;
  justify-content: space-between;
  width: 50px;
  height: 50px;
  padding: 11px 5px;
  cursor: pointer;
  margin: 0 0 0 auto;
  z-index: 10;
}

.hamburger div {
  -ms-flex-item-align: end;
  align-self: flex-end;
  height: 4px;
  width: 100%;
  background: var(--tertiary);
  box-shadow: 2px 2px 1px #555555;
}

.hamburger .hamburger-black {
  background: black;
}

.hamburger-open div {
  box-shadow: none;
  animation: unset;
}

.hamburger-open div:nth-child(1) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 50%;
}

.hamburger-open div:nth-child(2) {
  display: none;
}

.hamburger-open div:nth-child(3) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 50%;
}

.hamburger .middle {
  width: 75%;
  -webkit-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.hamburger .bottom {
  width: 50%;
  -webkit-transition: all 400ms ease-in-out;
  transition: all 400ms ease-in-out;
}

.hamburger:hover div {
  opacity: 0.6;
}

.hamburger-open:hover div.top,
.hamburger-open:hover div.bottom {
  animation: unset;
}

.hamburger:hover .top {
  -webkit-animation: burger-hover 1s infinite ease-in-out alternate;
  animation: burger-hover 1s infinite ease-in-out alternate;
}

.hamburger:hover .middle {
  -webkit-animation: burger-hover 1s infinite ease-in-out alternate forwards
    200ms;
  animation: burger-hover 1s infinite ease-in-out alternate forwards 200ms;
}

.hamburger:hover .bottom {
  -webkit-animation: burger-hover 1s infinite ease-in-out alternate forwards
    400ms;
  animation: burger-hover 1s infinite ease-in-out alternate forwards 400ms;
}

@-webkit-keyframes burger-hover {
  0% {
    width: 100%;
  }

  50% {
    width: 50%;
  }

  100% {
    width: 100%;
  }
}

@keyframes burger-hover {
  0% {
    width: 100%;
  }

  50% {
    width: 50%;
  }

  100% {
    width: 100%;
  }
}
/* ================================================= */

@media (min-width: 1024px) {
  .hamburger,
  .nav-block {
    display: none;
  }

  .nav-menu {
    position: unset;
    height: unset;
    width: unset;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 0 auto;
    left: unset;
    background: none;
    flex-direction: row;
    justify-content: flex-end;
  }

  .linebreaker {
    display: none;
  }
  .nav-menu li:first-child {
    flex-grow: 1;
    display: none;
  }
  .nav-menu li:last-child {
    flex-grow: unset;
  }
  .nav-menu li {
    margin: 0 0.5rem;
  }

  .nav-menu li a:hover {
    color: var(--primary);
  }

  .nav-menu .social-icons {
    display: none;
  }

  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-box {
    position: absolute;
    box-shadow: 2px 2px 7px #bfbfbf;
    background: white;
    width: 150px;
    left: -15px;
    padding: 0 15px 0 15px;
    width: max-content;
    align-items: flex-start;
  }
}
