/* Basic Reset and Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2 { text-align: center; }

ul, ol { list-style-type: none; }
.sub-menu {
      text-align: left;
      margin-left: 50%;
      display: none;
}
.red { color: red; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #333;
  color: white; /* font color */
}
div { display: flex; }

/* Class added by JavaScript to make menu visible */
.nav-menu.active { right: 0; }
.nav-link {
    color: white;
    text-decoration: none;
}

/* Hamburger Icon Styling */
.hamburger {
  /* Hide by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: 0.4s; /* */
}

/* default (mobile/narrow) settings start */
body { background-color: blue; }
.nav-menu {
  display: flex;
  list-style: none;
  position: fixed;
  right: -100%; /* Position off-screen initially */
  top: 68px; /* Adjust based on navbar height */
  width: 45%; /* open menu width */
  flex-direction: column;
  background-color: #333;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.nav-item { margin: 15px 0; } /* This is the margin around nav-items */
.sub-item { margin-top: 5px; } /* This is the margin around sub-items */
/* default (mobile/narrow) settings end */
/* -------------------------------------------------- */
/* wider screen (desktop/wide) settings start */
@media screen and (min-width: 600px) { /* ie, wider than this get's these settings */
  .nav-menu {
      /* right: -100%; Position off-screen initially */
      /* top: 105px; Adjust based on navbar height */
      width: 30%; /* open menu width */
      background-color: blue;
  }
  body { background-color: silver; }
  /* .nav-item { margin: 15px; } This is the margin around menu items */
}
/* wider screen (desktop/wide) settings end */


/* @media only screen and (max-width: 600px) { */
@media only screen and (min-width: 600px) {
}
