:root {
  color-scheme: dark;
  --bg: #07111f;
  --matte: rgba(34, 35, 35, 0.6);
  --panel: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
  --text: #f4f7ff;
  --reduced: #c9d5ee;
  --muted: #aeb8ce;
  --accent: #6c7cff;
  --accent-2: #2dd4bf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  /* background: linear-gradient(var(--matte), var(--matte)), url("RW_-083.jpg") no-repeat cover; */

  /* Set up your background image 
  background-image: url('./images/RW_-083.jpg');*/
  background: linear-gradient(var(--matte), var(--matte)), url('./images/RW_-083.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  
  color: var(--text);
  min-height: 120vh;

  /* Link the background-position to the page scroll timeline */
  animation: lockBackground linear both;
  animation-timeline: scroll(root);
}

@keyframes lockBackground {
  from {
    /* Start with the top of the image at the top of the browser */
    background-position: center top;
  }
  to {
    /* End with the bottom of the image at the bottom of the browser */
    background-position: center bottom;
  }
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 30px;
}

.brand {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand .sub {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 24px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04131f;
  padding: 12px 80px;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel);
}

.card, .sub-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.sub-card {
  margin-top: 30px;
}

.subcard a {
  font-size: 0.8em;
}

.stats {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
  border-bottom: 0;
}

section {
  margin-top: 18px;
}

section a, .clear  {
  text-decoration: none;
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flex-item {
  padding: 0px 10px;
  margin: 0 20px 20px 0;
  text-align: left;
  width: 28%;
  min-width: 300px;
  border-color: #f1f1f1;
  border-style: solid;
  border-width: 2px;
  border-radius: 8px;
}

.flex-slide {
  margin: 10px;
  float: left;
  width: 300px;
  height: 200px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.feature p {
  line-height: 1.6;
  margin: 0;
}

#b9Logo {
  width: 60px;
  float: left;
}

#socials img{
  height: 1.5em;
}

#tubeInfo {
    border-collapse: collapse;
    color: #000000;
}

#tubeInfo td {
    background-color: #FFFFFF;
    border: solid 1px #333333;
}

footer {
  padding: 36px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.print-only {
  display: none;
}

@media print {
  .noprint {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .page-break {
    break-before: always;
    page-break-before: always; /* Legacy fallback */
  }

  .card {
    background: none;
    box-shadow: none;
    border:none;
    padding: 0px;
  }

  .print-text {
    font-size: 0.8em;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}