:root {
    --nav-h: 56px;
    --footer-h: 56px;
}

/* Make sure content never hides behind fixed bars */
main.app-main {
    /* Reserve space equal to header + footer */
    padding-top: calc(var(--nav-h) + 0.5rem);
    padding-bottom: calc(var(--footer-h) + 1rem + env(safe-area-inset-bottom));
    /* Always stretch at least the full visible height minus bars */
    min-height: calc(100vh - var(--nav-h) - var(--footer-h));
    box-sizing: border-box;
}

/* Optional, keep footer visually above everything */
footer.fixed-bottom {
    width: 100%;
    background-color: #212529; /* matches bg-dark */
    color: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,.08);
    z-index: 1030; /* higher than Bootstrap content */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

header {
    flex-shrink: 0;
}

.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.index-image {
    max-width: 100%;
    max-height: 60vh; /* Adjust as needed */
    height: auto;
    object-fit: contain;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}