/* --------------------------------------------------------------
   Global reset
   -------------------------------------------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;               /* Make the body fill the viewport */
  background: #111;           /* Fallback colour behind the image */
}

/* --------------------------------------------------------------
   Full‑screen container that holds the image
   -------------------------------------------------------------- */
.bg-container {
  position: fixed;            /* Stick to the viewport */
  inset: 0;                    /* top/right/bottom/left = 0 */
  overflow: hidden;           /* Hide any overflow */
  display: flex;              /* Center children */
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------
   The image – keep aspect ratio, never stretch
   -------------------------------------------------------------- */
.bg-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;        /* Preserve aspect ratio, show whole image */
}

/* --------------------------------------------------------------
   Optional overlay (title, button, etc.)
   -------------------------------------------------------------- */
.overlay {
  position: absolute;
  color: #fff;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);   /* Semi‑transparent dark backdrop */
  border-radius: 8px;
}

/* Small‑screen tweaks (optional) */
@media (max-width: 480px) {
  .overlay { font-size: 0.9rem; }
}
