/* ------------------------ Navbar ------------------------ */

nav {
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: row;
  height: 6vh;
  padding: 0 4vw;
  justify-content: space-between;
  align-items: center;
}

navbar-component {
  width: 100%;
  top: 0;
  position: fixed; /* sticky position creates errors with hover on projects */
  z-index: 2;
}

html {
  margin-top: 6vh; /* margin because navbar is fixed and does not consume space. */
  scroll-padding-top: 6vh; /* height of the sticky header to avoid overlap when jumping to a page anchor */
}

nav .links {
  display: flex;
  flex-direction: row;
  gap: 2vw;
}

.openbtn {
  display: none;
}

@media (max-aspect-ratio: 1/1) {
  nav .links {
    display: none;
  }

  .openbtn {
    display: block;
  }
}

@media (max-width: 600px) {
  nav h1 {
    font-size: 25px;
  }
}
