/* ****^^^^ STYLES FOR RESPONSIVE NAV BAR ^^^^**** */
/* ****^^^^ JULY 2025 ^^^^**** */
nav {
  margin-bottom: .75rem;
  position: fixed;
  right:.5rem;
  top:0;
  width:100vw;
  height:auto;
  background-color: #fff;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
}
nav li {
  display: flex;
  font-family: var(--font-secondary);
  font-size: 1.5rem;
}
nav a {
  display: flex;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 400;
  padding: .5rem .5rem;
  transition: background-color 150ms ease;
  -webkit-transition: background-color 150ms ease;
  -moz-transition: background-color 150ms ease;
  -ms-transition: background-color 150ms ease;
  -o-transition: background-color 150ms ease;
}
nav a:hover {
  background-color: var(--hover-color);
}
#open-sidebar-button {
  display: none;
  background: none;
  border: none;
  margin-left: auto;
  cursor: pointer;
}
#close-sidebar-button {
  display: none;
  background: #fff;
  border: none;
  padding: 1rem;
  cursor: pointer;
  
}
#overlay {
  background-color: #303030;
  /* cover entire screen */
  position: fixed;
  inset:0; 
  z-index: 9;
  display: none;
}
@media screen and (max-width: 800px) {
  #open-sidebar-button, #close-sidebar-button {
    display: block;
  }
  nav {
    position: fixed;
    top:0;
    right:-100%;
    height: 100vh;
    width: min(15rem, 100%);
    z-index: 10;
    border-left: 1px solid var(--hover-color);
    transition: right 300ms ease-out;
    -webkit-transition: right 300ms ease-out;
    -moz-transition: right 300ms ease-out;
    -ms-transition: right 300ms ease-out;
    -o-transition: right 300ms ease-out;
}
  nav.show {
    right:0;
    background-color: #fff;
    color: var(--primary-color);
  }
  nav.show ~ #overlay {
    display: block;
  }
  nav ul {
    width: 100%;
    flex-direction: column;
  }
  nav a {
    width: 100%;
    padding-left: 2.5rem;
  }
  nav .home-li {
    margin-right: unset;
  }
}