:root {
  /* Colors */
  --primary-color: #4C51BF;
  --secondary-color: #667EEA;
  --text-color: #2D3748;
  --light-bg: #F7FAFC;
  --border-color: #E2E8F0;
  --dark-gray-color: #5c5d5e;
  --light-link-color: #0066cc;
  --dynamic-width: calc(min(100%, ((100vw - 400px) * 0.7) + 400px));

  /* Typography */
  --font-family: system-ui, -apple-system, sans-serif;
}

/* Base styles */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
  padding: 120px 20px 20px 20px; /* Added top padding to account for fixed header */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.1; 
}

/* All Forms */
input, textarea, select {
  width: 85%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
}

/* This is all buttons */
button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

button:hover {
  background-color: var(--secondary-color);
}

/*Fixed Header Panel that stays at the top of the page and is slowly hidden as the user scrolls down. */
.header-panel-class {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: white;
  text-align: center;
  z-index: 95;
  transition: transform 0.3s ease-in-out;
  border-bottom: 1px solid var(--border-color);
  padding: 5px;
  box-sizing: border-box;
}

.header-panel-class.hidden {
  transform: translateY(-100%);
}

.header-title {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--primary-color);
  font-size: 1.4rem; 
  font-weight: bold;
  
}

.header-text {
  color: var(--dark-gray-color);
  font-size: 1.04rem; /* was .8em, increased by 30% */
  line-height: 1;
  padding-top: 5px;
}



/* Floating Right Bar Side Nav Bar. This is working. Fixed Width. */
.nav-class {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 200px;
  background: var(--light-bg);
  transform: translateX(-100%);
  z-index: 100;
  padding: 4rem 1rem 1rem 1rem;
  transition: transform 0.3s ease-in-out;
}

.nav-class.show {
    transform: translateX(0);
}

/* Hamburger menu */
.nav-hamburger-class {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}



/* Small Footer Text */
.footer-class {
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  color: rgba(64, 64, 64, 0.95);  /* 95% opacity */
}

/* Small Nav Text */
.bottom-nav-class {
  display: flex;
  flex-direction: column; /* Stack content vertically */
  justify-content: flex-end; /* Align items to the end (bottom) */
  width: 100%;
  height: 70%;
  font-size: 0.7em;
  color: rgba(64, 64, 64, 0.95);  /* 95% opacity */
}
/* nav text */
.nav-text-class a {
  display: inline-block;
  font-size: 1.1em;
  margin: 5px;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}



