$navbarHeight: getCssVar(navbar-height);

.navbar {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  padding: 0 0.5rem;
  height: var($navbarHeight);
  line-height: var($navbarHeight);
  z-index: var(getCssVar(navbar-z-index));

  .navbar-logo {
    height: calc(var($navbarHeight) - 5%);
    margin: 0 1rem;

    img {
      height: inherit;
    }

    &.navbar-centered {
      margin: 0;
    }
  }

  .navbar-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-brand {
    text-decoration: none;
    font-size: 1.5rem;
    color: inherit;
  }

  ul.navbar-menu {
    list-style: none;
  }

  .navbar-menu {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;

    .navbar-link {
      color: inherit;
      text-decoration: none;
      display: block;
      padding: 0 0.6rem;
      transition: background-color 0.23s ease;
      cursor: pointer;

      @include responsive('xs') {
        padding: 0 0.4rem;
      }
    }
  }

  &.hover-text,
  .hover-text,
  &.hover-text-dark,
  .hover-text-dark {
    &.navbar-link,
    .navbar-link {
      transition: color 0.3s ease;

      &:hover,
      &.active {
        background-color: inherit !important;
      }
    }
  }

  &.hover-text,
  .hover-text {
    &.navbar-link,
    .navbar-link {
      &:hover,
      &.active {
        color: var(getCssVar(hover-text-color));
      }
    }
  }

  &.hover-text-dark,
  .hover-text-dark {
    &.navbar-link,
    .navbar-link {
      &:hover,
      &.active {
        color: var(getCssVar(hover-text-color-dark));
      }
    }
  }
}

.navbar .navbar-link {
  &.active,
  &:hover {
    background-color: var(getCssVar(hover-background));
  }
}

.navbar-fixed {
  height: var($navbarHeight);
  width: 100%;
  position: relative;

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

.navbar .dropdown .dropdown-content {
  line-height: 1.15;
  z-index: var(getCssVar(dropdown-z-index-navbar));
}
