:root {
  --black: #000000;
  --white: #ffffff;
  --ltgrey: #eaeaea;
  --grey: #cccccc;
  --blue: #0000bd;
  --red: #ff2600;
  --yellow: #ffe94f;
  --darkBlue: #001c6c;
  --darkGreen: #0c5c3f;
  --brown: #6e0500;
}

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

body {
  padding: 0;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0;
  background-color: var(--white);
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-height: 100vh;
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 0.875rem;
  text-wrap: pretty;
}

body > * {
  width: 100%;
}

a,
a:visited {
  color: var(--blue);
}

a:hover,
a:active {
  color: var(--brown);
  transition: opacity 100ms ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem 0;
  font-weight: normal;
  color: var(--black);
}

p {
  margin: 0 0 1rem 0;
}

li {
  margin: 0.75rem 0;
}

ol {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 0;
}

ol li {
  display: table;
  counter-increment: item;
  padding: 0;
  margin: 0.75rem 0;
}

ol li:before {
  content: counters(item, '.') ' ';
  display: table-cell;
  padding-right: 0.75rem;
  min-width: 1.5rem;
  color: var(--blue);
  font-weight: bold;
}

.width_wrapper {
  max-width: 60rem;
  margin: auto;
}

#jump_link {
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 0.5rem;
  font-size: 1.25rem;
  background-color: var(--blue);
  color: var(--white);
  width: 100%;
  position: fixed;
  left: 0;
  transform: translateY(-100%);
}

#jump_link:focus {
  transform: translateY(0);
}

header {
  border-bottom: 1px solid var(--grey);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a {
  text-decoration: none;
  color: var(--blue);
}

header a:hover,
header a:active {
  opacity: 1;
  color: var(--blue);
}

header h1 {
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  font-size: 1rem;
  letter-spacing: 2px;
}

header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--black);
}

.menu_btn {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--grey);
  background-color: var(--ltgrey);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-family: Optima, Segoe, Segoe UI, Candara, Calibri, Arial, sans-serif;
  font-size: 1.25rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.menu_btn svg {
  width: 2.5rem;
  height: auto;
}

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

main {
  flex: 1;
  display: flex;
  gap: 3rem;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  overflow: auto;
  transform: translateX(-100%);
  transition: all 500ms ease-in-out;
  background-color: var(--white);
  padding: 1rem;
}

nav .menu_btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

nav.menu_open {
  transform: translateX(0);
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

nav li {
  margin: 0;
}

nav a {
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  cursor: pointer;
}

nav a:hover,
nav a:active {
  color: var(--darkGreen);
}

nav .current_page_item > a {
  color: var(--black);
  font-weight: bold;
}

nav ul ul {
  padding-left: 1.5rem;
}

/* Hide all submenus initially */
nav ul.sub-menu {
  display: none;
}

/* Show submenus of the current page or its ancestors */
nav .current_page_item > ul.sub-menu,
nav .current_page_ancestor > ul.sub-menu {
  display: block;
}

@media (min-width: 768px) {
  nav {
    flex: 0 0 15rem;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    transform: none;
    transition: none;
    padding: 0;
  }
}

.sidebar-content {
  margin-top: 1.5rem;
}

#content {
  padding: 0 0.5rem;
  margin-left: 50px;
  flex: 1;
}

#content h2:first-of-type {
  color: var(--red);
  margin-left: -50px;
}

footer {
  border-top: 1px solid var(--grey);
  padding: 0.5rem;
}

footer .flexbox {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion) {
  *,
  *::after,
  *::before {
    transition: none;
  }
}
