* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f7faff;
  color: #1e293b;
  padding: 20px;
}

/* Navigation */
nav {
  background: rgb(254, 254, 254);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  position: sticky;
  top: 10px;
  left: 0;
  z-index: 200;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: #0c4a6e;
  padding: 8px 14px;
  background: #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
}

nav a:hover {
  background: #cbd5e1;
}

nav a:active {
  background: #94a3b8;
}

/* Main container */
main {
  max-width: 860px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 36px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #0f172a;
}

h2 {
  margin-top: 30px;
  font-size: 24px;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: 8px;
}

p {
  margin: 12px 0;
  font-size: 16px;
  color: #334155;
}

ul,
ol {
  margin: 10px 0 10px 20px;
}

ul li,
ol li {
  margin-bottom: 6px;
}

section {
  margin-top: 35px;
  padding: 20px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

a {
  color: #0284c7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  margin-top: 35px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

:root {
  --iconbg: #6265fd;
  --gap: 4px;
  --sidebarbg: rgb(254, 254, 254);
  --borderColor: #314564;
  --hoverbg: rgba(0, 0, 0, 0.9);
}
.menuIcon,
.sidebar {
  display: none;
}
@media (max-width: 750px) {
  nav {
    display: none;
  }
  header {
    padding: 0;
    margin: 14px;
  }
  header nav a {
    display: none;
  }

  .menuIcon {
    position: fixed;
    z-index: 1;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-direction: column;
    border: 2px solid var(--borderColor);
    padding: 8px;
    border-radius: 4px;
    margin: 10px 22px;
  }
  .menuIcon:hover {
    background: var(--hoverbg);
  }
  .menuIcon span {
    width: 28px;
    height: 4px;
    background: var(--iconbg);
    border-radius: 4px;
    transition: all 0.5s ease;
  }
  /* MAKE SPAN FOR CANCEL ICON LOOK LIKE AN X SHAPE */
  #middlebar.remove {
    display: none;
  }

  #topbar.crossForward {
    transform: rotate(45deg) translate(6px);
  }

  #bottombar.crossBackward {
    transform: rotate(-45deg) translate(6px);
  }

  #sidebarContainer {
    position: fixed;
    right: -100%;
    top: 90px;
    transition: all 0.5s ease;
    width: 100%;
    height: 100dvh;
    z-index: 2;
  }
  #sidebarContainer.show {
    right: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  .sidebar {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--sidebarbg);
    width: 70%;
    height: 100%;
    display: block;
  }
  .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--gap));
    padding-top: 22px;
  }
  .sidebar nav a {
    text-decoration: none;
    color: #0f172a;
    border: 2px solid var(--borderColor);
    border-radius: 12px;
    text-align: center;
    margin: 0 15px;
    padding: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.6s ease;
  }
  .sidebar nav a:hover {
    border: 2px solid #878484;
    background: #cbd5e1;
  }
}
