/* :root {
  --lightgrey: rgb(240, 240, 240);
  --seafoam: #3bb176;
  --grey: #848c8eff;
  --blood-orange: #ba2d0bff;
  --orange: #ffa630ff;
  --black: #000501ff;
} */

html {
  height: 100%;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background-color: #fff;
}

/* header - mobile only */
header {
  position: sticky;
  top: 0;
  height: 40px;
  text-align: center;
  z-index: 5;
  color: #fff;
  /* grass background with darkening */
  background: url('../img/grass.jpg') repeat center center;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: darken;
}

.menuIcon {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.menuIcon .line {
  width: 80%;
  height: 2px;
  background-color: #fff;
}
.menuIcon .arrow {
  width: 80%;
  height: 7px;
  background-color: #fff;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  /* up arrow for when menu is open
  clip-path: polygon(50% 0, 0 100%, 100% 100%); */
}

/* Show header in mobile view (at top with menuIcon */
header h2 {
  display: block;
  margin: 0;
  padding-top: 5px;
  color: #fff;
}

/* Hide desktop title in mobile view */
.sidenav .desktopTitle {
  display: none;
}

/* SideNav Mobile Stacked under header ON RIGHT */
/* Default mobile sidenav: hidden (collapsed) */
.sidenav {
  /* Force mobile positioning even when collapsed */
  position: fixed;
  top: 40px;
  right: 0;

  color: #fff;
  text-align: right;
  width: 160px;
  max-height: 0;
  overflow: hidden;
  padding: 0; /* just while collapsed */

  /* grass background with darkening */
  background: url('../img/grass.jpg') repeat center center;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: darken;

  transition: max-height 0.3s ease; /* transition fix */
}

/* optional inner wrapper to avoid padding jumps */
.sidenav > ul {
  padding: 0.5rem;
}

.sidenav.sidenavOpen {
  max-height: 300px; /* transition fix */
  z-index: 50;
}

.sidenav ul {
  padding-left: 0;
  list-style: none;
  line-height: 1.8;
}

.sidenav ul a {
  /* display: block; */
  padding: 0px 4px 2px 8px;
  text-decoration: none;
  color: inherit;
}

/* ---------------------------------------------------------
   MAIN CONTENT WRAPPER
   (Mobile: full width)
--------------------------------------------------------- */

.wrapper {
  margin-left: 0;
}

section {
  margin: 1rem 0;
  scroll-margin-top: 3rem;
  padding: 0 1rem;
}

ol {
  /* margin-top: 1rem; */
  padding-inline-start: 14px;
}
ol li {
  margin-top: 1rem;
}

main h3 {
  width: 100%;
}

footer {
  display: grid;
  place-content: center;
  color: #fff;
  height: 40px;
  background: url('../img/grass.jpg') repeat 40% 30%;
  background-color: rgba(0, 0, 0, 0.3);
  background-blend-mode: color;
}
footer h4 {
  text-align: center;
}

/* ---------------------------------------------------------
   DESKTOP LAYOUT (≥ 700px)
   - Hide header
   - Convert sidenav to left sidebar
   - Shift main content right
--------------------------------------------------------- */

@media (min-width: 768px) {
  header {
    display: none;
  }

  .sidenav .desktopTitle {
    display: block;
    /* padding: 0.5rem; */
    /*    color: #fff;  or whatever matches your theme */
  }

  /* Sidenav becomes a fixed left sidebar */
  .sidenav {
    /* display: block; */
    max-height: none; /* transition fix */
    overflow: visible; /* transition fix */
    position: fixed; /* Fixed Sidebar (stay in place on scroll) */
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    color: #fff;
    padding: 1rem;
    text-align: left;
    overflow-y: auto;
    /* z-index: 1;  Stay on top */
    grid-column: 1/2;
    /* grass background with darkening */
    background: url('../img/grass.jpg') repeat center center;
    background-color: rgba(0, 0, 0, 0.3);
    background-blend-mode: darken;
  }

  /* Desktop ignores the mobile toggle */
  .sidenav.sidenavOpen {
    /*max-height: none;  transition fix */
    padding: 1rem;
    /* display: block;
    position: fixed;
    left: 0;
    right: auto;
    top: 0;
    width: 220px;
    background: #f5f5f5; */
  }

  .menuIcon {
    display: none;
  }

  .wrapper {
    margin-left: 220px; /* Same as the width of the sidebar */
    padding: 0 1rem 1rem 1rem;
    max-width: 1150px;
    min-height: 100%;
    /* margin: 0 auto; */
    /* display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: auto 1fr;
    align-items: start; */
  }

  main {
    /* padding: 1rem; */
    /* background-color: #fff; */
    grid-column: 2/3;
  }

  section {
    scroll-margin-top: 1rem;
    padding: 0;
  }

  footer {
    margin-left: 220px;
  }
}
