/* ================================
   Reefbusters — Global Theme
   ================================ */
:root {
  --bg: #0b0b0b;
  --card: #111111;
  --pill: #000000;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --accent: #e53935; /* red accent for categories */
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Container & Header
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  text-align: center;
  margin: 24px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* REEFBUSTERS title */
.badge-title {
  display: inline-block;
  padding: 18px 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 48px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Tagline under Reefbusters */
.header h1 {
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.5px;
  max-width: 600px;
}

/* ================================
   Grid Layout
   ================================ */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ================================
   Columns
   ================================ */
.col,
.centered {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Left column: right-aligned so it hugs the logo */
.col.justify-end {
  align-items: flex-end;
  text-align: right;
}

/* Right column: left-aligned */
.grid > .col:last-child {
  align-items: flex-start;
  text-align: left;
}

/* Center column: centered */
.centered {
  align-items: center;
  text-align: center;
}

/* Stack vertically on small screens */
@media (max-width: 980px) {
  .col.justify-end,
  .grid > .col:last-child {
    align-items: center;
    text-align: center;
  }
}

/* ================================
   Logo
   ================================ */
.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px; /* adjust this value as needed */
}

.logo {
  width: 340px;
  height: 340px;
}


/* ================================
   Category Pills
   ================================ */
.pill {
  display: inline-block;
  width: auto;
  padding: 10px 16px;
  background: var(--pill);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.pill:hover {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ================================
   Footer
   ================================ */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 80px; /* increase spacing from content above */
  padding-bottom: 20px; /* adds a little space below */
}

/* ================================
   Optional Utility Links
   ================================ */
.nav a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.nav a:hover {
  border-color: var(--accent);
}
/* Center the calculator section */
.card {
  max-width: 850px; /* keeps layout width consistent */
  margin: 0 auto;   /* centers horizontally */
}

/* Optional: center-align the result text while keeping inputs aligned */
.result {
  text-align: center;
}

/* Preserve equal spacing of entry areas */
.calc-grid {
  justify-items: center;
}
/* Center the footnote text */
.footnote {
  text-align: center;
}
/* Center the Calculate and Reset buttons */
.flex {
  justify-content: center;
}

