:root {
  /* Default: Soft teal light theme */
  --bg: #cfe5ea;             /* soft teal base */
  --fg: #1c2a30;             /* dark text */
  --muted: #4d5e64;          /* muted text */
  --card: rgba(222,240,242,0.85); /* pastel teal card */
  --accent: #30555c;         /* button accent */
  --accent-contrast: #ffffff;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e0e0e0;
    --muted: #aaaaaa;
    --card: rgba(30,30,30,0.9);
    --accent: #90caf9;
    --accent-contrast: #121212;
  }
}

/* Dark mode override for visible links */
@media (prefers-color-scheme: dark) {
    a.map-link {
        color: #4fc3f7;
        text-decoration: underline;
    }

    a.map-link:hover {
        color: #81d4fa;
    }

    a.map-link:visited {
        color: #ce93d8;
    }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--fg);
  background: radial-gradient(
    1200px 800px at 80% -10%,
    var(--card) 0%,
    var(--bg) 45%,
    #b3d4d9 100%
  );
  display: flex;
  justify-content: center;
  padding: 24px;
  min-height: 100vh;  /* Use min-height instead of height: 100% */
  background-color: #151515;
}

.card {
  width: min(720px, 100%);
  background: var(--card);
  backdrop-filter: saturate(1.1) blur(6px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 40px 28px;
  text-align: center;
  margin: auto 0;  /* This will center it when there's extra space */
}

/* Default: light theme */
body {
  background-color: #cde2e6;
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #151515; /* or var(--bg) if you set it in :root dark mode */
  }
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.and { color: var(--muted); font-weight: 500; }
.date { font-size: clamp(16px, 2.5vw, 20px); color: var(--muted); margin: 2px 0 22px; }
.location { font-size: clamp(18px, 2.8vw, 22px); margin: 8px 0 16px; font-weight: 600; }
.address { color: var(--muted); margin: 0 0 28px; }

.details-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
    transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,.15);

    /* Add these button-specific resets: */
    border: none;           /* Remove default button border */
    cursor: pointer;        /* Ensure pointer cursor */
    font-family: inherit;   /* Use same font as parent */
    font-size: inherit;     /* Use same font size as parent */
    line-height: normal;    /* Reset line height */
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.btn:active {
    transform: translateY(0) scale(.98);
}

/* Larger buttons for wider screens (desktop) */
@media (min-width: 768px) {
  .btn {
    padding: 18px 75px;
    font-size: 15px;
  }
}

.footer-left-block {
  display: inline-block; /* shrink to content width */
  text-align: left;      /* left-align text inside the block */
  margin: 0 auto;        /* center the block in the footer */
  font-size: 18px;        /* increase text size */
}

footer { margin-top: 28px; color: var(--muted); font-size: 14px; }
