:root {
  --default-font-size: clamp(14px, 1.5vw, 18px); /* Fluid root font size */
  --font-family: "Albert Sans", -apple-system, Roboto, Helvetica, sans-serif;
  --brand-red: #88392b;
  --dark-fail: #ff9c9c;
  --text-gray: #424242;
  --text-black: #09090b;
  --border-1: 1px solid #e2e2e2; /* Fluid sizing scale */
  --size-xs: clamp(0.5rem, 0.5vw, 0.75rem);
  --size-sm: clamp(0.75rem, 0.75vw, 1rem);
  --size-md: clamp(1rem, 0.92rem + 0.19vw, 1.125rem);
  --size-lg: clamp(1.25rem, 0.96rem + 0.7vw, 2rem);
  --size-xl: clamp(1.2rem, 3.5vw, 4rem);
  --size-2xl: clamp(1.5rem, 0.54rem + 4.66vw, 3.75rem);
} /* ===================== */ /* Base Styles */ /* ===================== */
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-black);
  font-family: var(--font-family);
  font-size: var(--default-font-size);
  line-height: 1.4;
  min-height: 100vh;
}

header {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  /* flex-direction: row; */
  /* justify-content: space-between; */
}
/* header, */
main,
footer,
/* div, */
section,
article,
nav,
aside {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

div {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  /* flex: 1; */
  justify-content: space-between;
  align-items: center;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1 {
  font-size: var(--size-xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #09090b;
}
h2 {
  font-size: var(--size-lg);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-black);
}
h3 {
  font-size: var(--size-md);
  font-weight: 400;
  line-height: 1.2;
  color: #ffcb8b;
}
p {
  font-size: var(--size-md);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-gray);
}
header,
main,
footer {
  padding: var(--size-md) var(--size-xl);
  margin: 0 auto;
}
main {
  flex-direction: column;
  min-height: 90vh;
  align-items: stretch;
}
section {
  padding-block: var(--size-md);
} /* ===================== */ /* Header Styles */ /* ===================== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  flex-direction: row !important;
  border-bottom: var(--border-1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  background: white;
  justify-content: space-between;
  align-items: center;
}
nav {
  /* flex-direction: row !important; */ /* justify-content: space-between; */
  flex: 0 0 auto;
  gap: var(--size-lg);
}
nav a {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: var(--size-sm);
  text-decoration: none;
  text-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  color: var(--text-black);
}
nav a.active {
  color: var(--brand-red);
}
nav a:not(.active):hover {
  border-bottom: 2px solid var(--brand-red);
  color: var(--brand-red);
}
.github-icon:hover {
  border-bottom: none !important;
} /* ===================== */ /* Mobile Navigation */ /* ===================== */
.hamburger {
  display: none; /* margin-left: auto; */
}
.hamburger-icon svg {
  transition: transform 0.3s ease;
}
#logo-container,
#simulation-container-desktop,
#org-container-desktop {
  flex: 0 0 auto; /* keep natural width */
}

#mobile-menu {
  height: auto;
  display: none;
  border: 1px bottom var(--border-1);
}

/* Media query for mobile devices */

@media (max-width: 700px) {
  .hamburger {
    display: block;
    cursor: pointer;
    padding: 10px; /* position: absolute; */
    right: 10px; /* z-index: 1001; */
    background: none;
    border: none;
    width: auto;
    margin-left: auto;
  }
  nav {
    padding-inline: 0;
    justify-content: flex-start;
  }
  nav ul {
    display: none;
    position: fixed;
    top: 50px; /* Height of header */
    left: 0;
    right: 0;
    bottom: 0;
    background: #f3f3f3;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    overflow-y: auto;
  }
  #simulation-container-desktop,
  #org-container-desktop {
    display: none;
  } /* Mobile Menu Styling */
  #mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff; /* White like bootstrap default */
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid #e2e2e2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  } /* When active (open) */
  #mobile-menu.active {
    display: flex;
  } /* Menu containers */
  #simulation-container-mobile,
  #org-container-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  } /* Links inside mobile menu */
  #mobile-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #212529; /* Bootstrap text color */
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease, color 0.2s ease;
  } /* Hover / active like bootstrap */
  #mobile-menu a:hover {
    background-color: #f8f9fa; /* Light gray hover */
    color: var(--brand-red); /* Your brand red */
  }
  #mobile-menu a:last-child {
    border-bottom: none; /* Remove border from last item */
  } /* GitHub icon alignment */
  #mobile-menu .github-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  #mobile-menu .github-icon svg {
    width: 20px;
    height: 20px;
  }
  #hamburger-button {
    border: none;
    background-color: transparent;
    padding: 0;
  }
  nav ul.active {
    display: flex;
    justify-content: flex-start;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }
  nav {
    padding-inline: 10px;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    width: 100%;
    text-align: center;
    padding-inline: 0;
  }
  .hamburger {
    margin-left: auto;
  }
  #mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 1rem;
  } /* Show when active */
  #mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  } /* Hamburger open animation */
  /* #hamburger-button.open svg path:nth-child(1) {
    transform: rotate(45deg);
  }
  #hamburger-button.open svg path:nth-child(2) {
    opacity: 0;
  }
  #hamburger-button.open svg path:nth-child(3) {
    transform: rotate(-45deg);
  } */
} /* =============================== */ /* Footer */ /* =============================== */
footer {
  position: sticky;
  bottom: 0;
  left: 0;
  text-align: center;
  background: #fff;
  color: var(--text-gray);
  border-top: var(--border-1);
  z-index: 1000;
  justify-content: center;
}
.link {
  text-decoration: underline;
  cursor: pointer;
} /* ===================== */ /* Hero & Top Section */ /* ===================== */ /* Select the first section */
main > section:first-of-type {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
  flex: 0;
}
.hero-content {
  flex: 999 0 60vw;
  flex-direction: column;
  gap: var(--size-md);
  justify-content: flex-start;
}
.text-red {
  color: var(--brand-red);
  text-decoration: none;
} /* ===================== */ /* Video Section Styles */ /* ===================== */
.video-section {
  /* Let flexbox handle the width. Setting a width in vw would be too rigid. */
  flex: 1 1 30vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  min-width: 220px;
} /* We use the padding-top trick for aspect ratio, which is better than vh/vw. It ensures the video is always the right shape, regardless of viewport dimensions. */
.video-placeholder {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  height: 100%;
}
.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
} /* --- The rest of the CSS follows the same principles --- */ /* (Code from previous step is unchanged as it already uses best practices) */
.video-content {
  text-align: left;
}
.video-title {
  color: #88392b;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.video-description {
  color: #000000;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.tablet-wrapper {
  width: 100%;
  border-radius: 1.125rem;
  background-color: #e9e8e6;
  box-shadow: 0 0 0 1px rgba(200, 199, 193, 0.5);
  padding: 0.5rem;
}
.tablet-inner {
  width: 100%;
  border-radius: 0.625rem;
  background-color: #111110;
  padding: 1.25rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.tablet-title {
  color: #fdfdfc;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.1;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 0.5rem;
}
.content-flex {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
  align-self: stretch;
}
.content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #2a2a28;
  border: 1px solid rgba(98, 96, 91, 0.25);
  border-radius: 0.375rem;
  padding: 1.5625rem 1.3125rem;
  gap: var(--size-xs);
  text-align: center;
  /* min-width: 10ch; */
}
.content-box:hover {
  background-color: #3a3a38;
  border: 1px solid rgba(98, 96, 91, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-out;
}
.content-box img {
  width: clamp(10px, 50%, 100px);
}
.instruction-panel {
  flex: 2 1 40ch;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}
.instruction-text {
  color: white;
}
.warning-text {
  color: var(--dark-fail) !important;
}
.success-text {
  color: #92eaac !important;
}
.underline {
  text-decoration: underline;
}
.message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.375rem;
  text-align: center;
}
.success-message {
  background-color: #92eaac;
  color: #000;
}
.error-message {
  background-color: #ff9c9c;
  color: #000;
} /* ===================== */ /* Form Styles */ /* ===================== */
.form-panel {
  padding: 1.25rem 1rem;
  gap: 1.5rem;
  margin: 0 auto;
  color: #c5c5c5;
  flex: 1 0 clamp(30ch, 20%, 50ch);
  align-items: stretch;
  justify-content: flex-start;
}
.form-panel form:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
form > div {
  display: flex;
  align-items: stretch;
}
form > div label {
  color: #c5c5c5;
  flex: 1;
  text-align: left;
  margin: auto 0;
}
form > div input {
  width: 100%;
  /* min-width: 15ch; */
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #efefef;
  background-color: #ffffff;
  color: #000000;
  font-family: "Helvetica Neue", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  opacity: 0.8;
  flex: 2;
}

.disclaimer-text {
  color: #ffffff;
  font-size: 1rem; /* 16px */
  font-weight: 400;
  text-align: center;
} /* ===================== */ /* Button Styles */ /* ===================== */
button {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  font-size: 1rem;
  width: 100%;
}
.submit-button {
  border: 1px solid #c9c9c9;
  background-color: #f7f7f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  color: #000000;
  min-height: 1rem;
}
.reset-container {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
  min-width: 40ch;
}
.reset-button {
  background-color: var(--brand-red);
  color: white;
  padding: 0.625rem 1.25rem;
}
.test-failed {
  color: #d16969;
  text-align: center;
}
.test-failed h3 {
  margin: 0;
  padding: 0;
}

.failure-text,
#results-text {
  color: white;
}
.results-data {
  background-color: #1e1e1e;
  color: #d4d4d4;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  text-align: left;
  align-items: stretch;
}
.results-data h4 {
  color: #d16969;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  border-bottom: 1px dashed #555;
  padding-bottom: 0.625rem;
}
.results-data pre {
  color: #4ec9b0;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
} /* ===================== */ /* Utility Classes */ /* ===================== */
.text-red {
  color: var(--brand-red);
}
@media (max-width: 920px) {
}
.link {
  text-decoration: underline;
}
.underline {
  text-decoration: underline;
  color: #ffcb8b;
}
