.navbar-layout {
  grid-area: navbar-layout;
  z-index: 100;
  display: grid;
  grid-template-rows: 5em 2em;
  grid-template-columns: 1fr;
  grid-template-areas:
    "primary"
    "secondary";
}

header .primary {
  grid-area: primary;
  background: #00a573;
  display: flex;
  align-items: center;
}

header .secondary {
  grid-area: secondary;
}

header .logo {
  height: 2em;
  margin-left: 2em;
}

header .icon {
  height: 2em;
}

header .logout {
  height: 2.8em;
}

header ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

header ul img {
  display: flex;
  align-items: center;
  justify-content: center;
}

header .primary li {
  margin-right: 2em;
}

header .primary a {
  color: #ffffff;
  font-weight: bold;
  font-size: 1.15em;
  letter-spacing: 0.02em;
  text-decoration: none;
}

header .primary a:hover,
header .primary a.active {
  color: #005b3f;
}

header .secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px inset #f1f1f1;
}

header .secondary li {
  margin: 0.2em 1em;
}

header .secondary a {
  color: #626262;
  text-decoration: none;
}

header .secondary a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 900px) {
  .navbar-layout {
    grid-template-rows: 3em 1.5em;
  }

  header .primary {
    overflow-x: scroll;
  }

  header .logo {
    height: 1em;
    margin-left: 1em;
  }

  header .primary li {
    margin-right: 1em;
  }

  header .secondary li {
    margin: 0.2em 1em;
    font-size: 0.9em;
  }
}
