:root {
  --nav-background-color: light-dark(var(--dark-green), var(--mid-green));
}

.navbar {
  background-color: var(--nav-background-color);
}

.navbar a {
  color: var(--off-white);
  text-decoration: none;
}

.navbar a[aria-current="page"] {
  font-weight: bold;
  text-decoration: underline;
}

.navbar a:hover {
  text-decoration: underline;
}

.menuicon div {
  width: 5vw;
  height: 4px;

  background-color: var(--background-contrast-color);

  margin: 3px 0;
  border-radius: 25px;
}

.menuicon {
  display:none;
}

.navbar .closebtn {
  display: none;
}

/* In landscape orientation show the navbar across the top of the screen */
@media screen and (orientation: landscape) {
  .navbar {
    align-content: center;
    text-align: center;
    padding: 12px 12px 12px 12px;
  }

  .navbar a {
    font-size: 18px;
    /* padding: 8px 10px 8px 10px; */
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 5px 5px 5px 5px;
  }
}

/* In portrait orientation hide the navbar in the left-side menu */
@media screen and (orientation: portrait) {
  /* Place the "hamburger" menu button floating over the content in the top left of the screen */
  .menuicon {
    display: block;
    z-index: 1;

    position: absolute;
    top: 10px;
    left: 10px;
  }

  /* Give the links a large left pad and block display to form a vertical list */
  .navbar a {
    padding: 8px 8px 8px 32px;
    font-size: 25px;
    display: block;
    transition: 0.1s;
  }

  /* Display the closed button in the top right */
  .navbar .closebtn {
    display: block;

    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }

  /* Display the navbar along the left hand side taking up the full screen height. It should have no width (hidden) by default. */
  .navbar {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;

    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.2s; /* 0.5 second transition effect to slide in the sidenav */
  }

  /* When the navbar has the "open" class applied in Javascript give it width to unhide it.  */
  .navbar.open {
    width: 250px;
  }
}
