header {
  z-index: 9999;
  box-shadow: 0px 3px 6px #00000029;
  top: 0;

  ol,
  ul,
  li {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #3b3b3a;
    font-size: 16px;
  }
}

.site-logo {
  min-width: 120px;
  width: fit-content;
  max-width: 180px;
  height: auto;
  position: relative;
  z-index: 99999;

  img {
    transition: all 250ms ease-in-out;
  }
}

.nav-item {
  font-size: 16px;

  &:first-child {
    margin-left: 0;
  }
}

.dropdownPanel {
  display: none;
  position: absolute;
  top: 110px;
  background-color: #fff;
  overflow: hidden;
  transition: all 500ms ease-in-out;
  border-radius: 0 0 5px 5px;
  padding-top: 1rem;

  a {
    font-size: 16px;
    line-height: 2rem;
  }

  .submenu {
    height: 0;
    overflow: hidden;
    transition: all 500ms ease;
    background-color: #f1f1f1;
  }
}

.dropdownPanelAnimation {
  animation: dropDown 500ms ease-in-out forwards;
  transform-origin: top center;
}

@keyframes dropDown {
  0% {
    transform: scaleY(0);
  }

  80% {
    transform: scaleY(1.1);
  }

  100% {
    transform: scaleY(1);
  }
}

.menu-items {
  padding: 1rem 0;
  font-weight: 500;
  overflow: auto;
  max-height: 600px;

  &:first-child {
    padding: 0;
  }

  a {
    display: grid;
    padding: 0.25rem 1rem;
    width: 100%;
  }
}

#language-switcher a {
  font-size: 16px;
  font-weight: bold;
}

.burger-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  right: 0;
  z-index: 2;
}

.burger-icon-line {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 0 10px 0;
  background: #26408b;
  transition: all 0.5s ease-out;
}

.burger-icon-line:last-child {
  margin: 0;
}

.close .burger-icon-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.close .burger-icon-line:nth-child(2) {
  opacity: 0;
}

.close .burger-icon-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.submenu-item > a {
  display: inline-block;
}
/* .hiddenNav {
  top: 95px !important;
} */

@media screen and (min-width: 1200px) {
  .burger-icon {
    display: none;
  }

  .navbar-nav {
    justify-content: end;
    display: flex;
    flex-direction: row;
    gap: 10px !important;
  }
  .navbar {
    display: flex;
    flex-wrap: nowrap;
  }
  .back-button {
    display: none;
  }

  /* .logged-in .dropdownPanel {
        padding-top: 16px;
    } */
}

@media screen and (max-width: 1291px) {
  .nav-item {
    font-size: 15px;

    &:first-child {
      margin-left: 0;
    }
  }
  .navbar-nav {
    padding-right: 0rem !important;
    padding-left: 0rem !important;
  }
  .fa-angle-down {
    padding-left: 0rem !important;
  }
}

@media screen and (max-width: 1200px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    z-index: 2;
    top: 95px;
    right: 0;
    left: 0;
    width: 0;
    transition: height 0.5s ease, width 0.5s ease, visibility 0.2s ease;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    max-width: 100dvw;
    /* padding-top: 3rem; */
  }

  .logged-in .navbar-nav {
    top: 127px;
  }

  .hiddenNav {
    max-width: 100dvw;
    width: 100%;
    height: 100%;
    top: 85px !important;
    transform: translateY(-10px);
    visibility: visible;
    z-index: 9999;
    pointer-events: all;
    flex-direction: column !important;
    padding-top: 3rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .logged-in .hiddenNav {
    height: 100%;
    top: 127px;
    transform: translateY(35px);
  }

  .dropdownPanel {
    top: 0;
    height: 100vh;
    width: 100vw;
    padding-top: 3rem;
  }

  .nav-item {
    padding: 0;
  }

  .back-button {
    padding: 10px 15px;
    border-radius: 100%;
  }

  .menu-items {
    gap: 2rem;
  }
}

@media screen and (max-width: 783px) {
  .logged-in .hiddenNav {
    top: 141px;
  }

  .logged-in .navbar-nav {
    top: 141px;
  }
}
