.nav {
  padding: 2.2rem 0;
  z-index: 2;
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  text-decoration: none;
  max-width: 30%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-logo {
  max-width: 24.3rem;
  max-height: 5.3rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.emblem {
  max-width: 5.3rem;
  max-height: 5.3rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.nav-right {
  max-width: 60%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style-type: none;
  cursor: pointer;
  a,
  h3 {
    font-size: 1.4rem;
    text-decoration: none;
    color: #000;
    font-weight: normal;
  }
}

.nav-lang {
  width: 2.7rem;
  height: 2rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.nav-select {
  position: relative;

  &:hover > .nav-downarrow {
    transform: rotate(180deg);
    transition: all 0.3s ease-out;
  }

  &:hover > .nav-dropdown {
    max-height: 40rem;
    transition: all 0.2s ease-out;
  }

  &:nth-child(1n) {
    &:hover {
      border-bottom: 0.2rem solid #003a9d;
    }
  }

  h3 {
    margin-right: 0.8rem;
  }
}

.nav-dropdown {
  position: absolute;
  top: 2.5rem;
  right: 50%;
  background: #353536;
  color: #fff;
  max-width: 20rem;
  overflow: hidden;
  max-height: 0;
  transform: translateX(50%);
  transition: all 0.2s ease-out;

  a {
    color: #fff;
  }
}

.nav-dropdown-shifted {
  right: 200%;
}

.nav-dropdown-content {
  list-style-type: none;
}

.dropdown-content {
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;

  &:hover {
    background: #003a9d;
  }
}

.nav-downarrow {
  transform: rotate(0deg);
  transition: all 0.3s ease-out;
}

.flag-wrapper {
  width: 2.7rem;
  height: 2rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.nav-lang {
  .dropdown-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }

  h4 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-left: 0.7rem;
  }
}

// MOBILE

.nav-links-mobile-button {
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.mobile-button {
  cursor: pointer;
  width: 5rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.1rem solid #003a9d;
  background: transparent;

  div {
    display: flex;
    flex-direction: column;
    align-items: center;

    .stripe {
      margin: 0.2rem 0;
      width: 3rem;
      height: 0.4rem;
      background: #003a9d;
      border-radius: 2rem;
    }
  }
}

.stripe-1 {
  transition: all 0.3s ease;
  transform: translate(0rem) rotate(0deg);

  &.active {
    transition: all 0.3s ease;
    transform: translate(0px, 8px) rotate(45deg);
  }
}

.stripe-2 {
  transition: all 0.3s ease;
  opacity: 1;

  &.active {
    transition: all 0.3s ease;
    opacity: 0;
  }
}

.stripe-3 {
  transition: all 0.3s ease;
  transform: translate(0px, 0px) rotate(0deg);

  &.active {
    transition: all 0.3s ease;
    transform: translate(0px, -8px) rotate(-45deg);
  }
}

.nav-mobile {
  overflow: hidden;
  max-height: 0;
  transition: all 0.4s ease-in-out;

  &.active {
    max-height: 60rem;
    transition: all 0.4s ease-in-out;
  }
}

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

.nav-mobile-link {
  width: 100%;
  margin: 2rem 0;
  cursor: pointer;

  a {
    font-size: 1.4rem;
    display: block;
  }

  h3 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-right: 0.8rem;
  }

  &:nth-child(1n):hover .nav-mobile-link-dropdown {
    max-height: 50rem;
    transition: 0.2s all ease-in-out;
  }
}

.nav-mobile-downarrow {
  transform: rotate(0deg);
  transition: all 0.2s ease-in-out;
}

.nav-mobile-link-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  &:hover .nav-mobile-downarrow {
    transform: rotate(180deg);
    transition: all 0.2s ease-in-out;
  }

  div {
    &.flag {
      width: 2.7rem;
      height: 2rem;
    }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.flag {
  width: 2.7rem;
  height: 2rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.nav-mobile-link-dropdown {
  overflow: hidden;
  max-height: 0;
  margin: 1rem 0;
  background: #353536;
  transition: 0.2s all ease-in-out;

  ul {
    list-style-type: none;
  }
}

.mobile-dropdown-link {
  padding: 1rem;

  a {
    color: #fff;
  }

  h3 {
    color: #fff;
  }

  &:nth-child(1n):hover {
    background: #003a9d;
  }

  &.flag-container {
    display: flex;
    align-items: center;

    h3 {
      margin-left: 0.8rem;
    }
  }
}

@media screen and(max-width: 1000px) {
  .nav-left {
    max-width: 50%;
  }
  .nav-link {
    display: none;
  }

  .nav-links-mobile-button {
    display: flex;
  }
}
