:root {

  --bg-base: #f4f8ff;

  --bg-rg-1: rgba(120,160,255,0.25);
  --bg-rg-2: rgba(0,80,150,0.12);
  --bg-lg-1: #b5b6db;
  --bg-lg-2: #abc6f2;
  --bg-lg-3: #82a8f5;
  --bg-lg-grid: rgba(255,255,255,0.25);
  
  --menu-bg: rgba(255,255,255);

  --bg-main: rgb(161, 167, 193);
  --bg-panel: rgb(255,255,255);
  --bg-table: rgb(248,249,255);

  --tbl-hdr: rgba(0,0,0);
  --tbl-row:rgba(0,0,0);

  --text-h2:  rgba(0,0,0);
  --text-h3:  rgba(0,0,0);
  --text-p:  rgba(0,0,0);
  --text-shdw: rgba(255,255,255,.7);
  
  --text-main: rgb(0,0,0);
  --text-soft: rgb(60,60,90);
  --text-header: rgb(25,25,112);

  --text-accent-1: rgb(0, 0, 255);
  --text-accent-2: #176740;
  --text-accent-3: #f5a609; 

}

[data-theme="dark"] {

  --bg-base: #0b4f8a;
  --bg-rg-1: rgba(255,255,255,0.15);
  --bg-rg-2: rgba(0,0,0,0.25);
  --bg-lg-1: #1f659f;
  --bg-lg-2: #1f629c;
  --bg-lg-3: #1a3a5e;
  --bg-lg-grid: rgba(255,255,255,0.08);

  /* large grid */
  --grid-major: rgba(255,255,255,.10);

  /* small grid */
  --grid-minor: rgba(255,255,255,.04);

  --bg-main: rgb(84, 88, 62);
  --bg-panel: rgb(0,0,0);
  --bg-table: rgb(7,6,0);

  --tbl-bg: rgba(10,25,55,.45);
  --tbl-brdr: rgba(255,255,255,0.15);
  --tbl-shdw: rgba(0,0,0,.35);
  --tbl-shdw-ins: rgba(255,255,255,.05);
  --tbl-hdr: #e8f0ff;
  --tbl-row: #cfdfff;
  --tbl-nth: rgba(255,255,255,.02);

  --menu-bg: rgba(10,25,55,.85);

  --theme-hdr: #9fb5d6;
  --theme-acc: #ffd27a;

  --text-h2: #E6EAF2;
  --text-h3: #E6EAF2;
  --text-p:  #c8d8f0;
  --text-shdw-1: rgba(0,0,0,.45);
  --text-shdw-2: rgba(0,0,0,.15);

  --text-main: #f2f6ff;
  --text-heading: #ffffff;
  --text-secondary: #c8d8f0;

  --text-link: #7fd3ff;
  --text-accent-1: #ffd27a;
  --text-accent-2: #a8ffd6;
  --text-accent-3: rgb(255,255,0);

  --box-shdw-1: rgba(0,0,0,.4);
  --box-shdw-2: rgba(0, 0, 0, 0.1);

  --popup-bg: rgba(179, 107, 107, 0.4);

}

body {
  height: 97vh;

background-image: 
    /* grid vertical */
  linear-gradient(var(--bg-lg-grid) 1px, transparent 1px),

    /* grid horizontal */
  linear-gradient(90deg, var(--bg-lg-grid) 1px, transparent 1px);

  /* Base color */
  background-color: var(--bg-base);

  /* Layered background */
  background-image:
    radial-gradient(circle at 30% 30%, var(--bg-rg-2), transparent 40%),
    radial-gradient(circle at 70% 70%, var(--bg-rg-1), transparent 30%),
    linear-gradient(to bottom right, var(--bg-lg-3) 0%, var(--bg-lg-2) 50%, var(--bg-lg-1) 100%);

  background-size:
    auto,
    auto,
    cover,
    60px 60px,
    60px 60px;

  background-position:
    center,
    center,
    center,
    center,
    center;

  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  
  padding: 70px 70px;
  box-sizing: border-box;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background-image: url("https://www.transparenttextures.com/patterns/grid-me.png");
  opacity: 0.35;
}


h2 {
    color:black;
}

h3 {
    color: blue;
    margin-bottom: 0.25rem;
}

h4 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

h5 {
 margin-top: .4rem;
}

ul {
  margin-top: 0;   /* THIS is the main one */
  margin-bottom: 0.5rem;
  
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* allow items to wrap to next row */
  width: 100%;
}

li {
  margin-right: 2rem;
  white-space: normal; /* prevent text inside li from wrapping */
}

.no-wrap {
    white-space: normal;
}

li::marker {
  content: "⁜  ";
  color: blue;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    line-height:  40%;
}

.headerLeft {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 724px;
    justify-content: space-between;
}

.headerRight {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 264px;
    justify-content: flex-end;
}

/* Hamburger icon */

.hamburger {
    position: fixed;
    top: 30px;
    right: 60px;

    width: 30px;
    height: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
    z-index : 1000;

}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--tbl-hdr);
    border-radius: 2px;
    transition: all .35s ease;
}

/* Animate into X */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px,-6px);
}

/* Slide menu panel */

.menu {
    position: fixed;
    top: 0;
    right: -300px;

    width: 260px;
    height: 100%;

    background: var(--menu-bg);
    backdrop-filter: blur(10px);

    border-left: 1px solid var(--tbl-brdr);

    padding-top: 120px;

    display: flex;
    flex-direction: column;
    gap: 28px;

    transition: right .35s ease;

    z-index: 900;
}

/* Open state */

.menu.open {
    right: 0;
}

/* Menu links */

.menu a {
    color: var(--tbl-hdr);
    text-decoration: none;
    font-size: 18px;
    padding-left: 40px;
    letter-spacing: .05em;

    transition: all .2s ease;
}

.menu a:hover {
    color: var(--text-heading);
    transform: translateX(6px);
}

/*  theme picker styling  /
//////////////////////////*/

/* divider between menu and theme picker */

.menuDivider {
    height: 1px;
    margin: 10px 40px;
    background: var(--tbl-brdr);
}

/* theme picker */

.theme-picker {

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding-left: 40px;
    margin-top: 10px;

    color: var(--text-secondary);
    font-size: 14px;
}

.themeTitle {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--theme-hdr);
    margin-bottom: 6px;
}

.theme-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* nicer radios */

.theme-picker input[type="radio"] {
    accent-color: var(--theme-acc);
}
