html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-image: url('/images/PencilDrawnChurch.PNG');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  background-size: contain;
  /* Add some opacity to fade it back */
  background-color: rgba(255, 255, 255, 0.9);
  background-blend-mode: overlay;
}

/* Alternative approach - apply background to main content area only */
main.container {
  position: relative;
}

main.container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/PencilDrawnChurch.PNG');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  background-attachment: fixed;
  opacity: 0.15; /* Faded back significantly */
  z-index: -1;
  pointer-events: none;
}

.top-spacing-10 {
    margin-top: 10px;
}

.logo {
    margin: 0 auto;
    display: block;
}

/* Navbar spacer - responsive to navbar height */
.navbar-spacer {
    height: 150px; /* Default desktop height */
    transition: height 0.3s ease;
}

/* Desktop navbar sizing */
@media (min-width: 576px) {
    .navbar-spacer {
        height: 150px; /* Full height on desktop */
    }
}

/* Mobile navbar compact mode */
@media (max-width: 575.98px) {
    .navbar-spacer {
        height: 220px; /* Standard mobile height */
    }
    
    .navbar-spacer.compact {
        height: 150px; /* Reduced height when navbar is compact */
    }
    
    .navbar-brand {
        transition: all 0.3s ease;
    }
    
    .navbar-brand .logo {
        transition: height 0.3s ease;
    }
    
    .navbar-brand h1 {
        transition: font-size 0.3s ease;
    }
    
    .navbar-brand h5 {
        transition: opacity 0.3s ease, max-height 0.3s ease;
        overflow: hidden;
    }
    
    .navbar.compact .navbar-brand .logo {
        height: 45px;
    }
    
    .navbar.compact .navbar-brand h1 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .navbar.compact .navbar-brand h5 {
        opacity: 0;
        max-height: 0;
        margin: 0;
    }
    
    .navbar.compact {
        min-height: 60px;
    }
}

/* Ensure content has proper background for readability */
.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Special handling for home page carousel */
#carouselExampleCaptions {
    background: none;
    margin-bottom: 20px;
}

/* Adjust card backgrounds for better visibility */
.card {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Custom validation error styling */
.validation-error-list {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.validation-error-list li {
    margin-bottom: 0.25rem;
}

.alert-heading {
    margin-bottom: 0.75rem;
}

/* Improve form validation visual feedback */
.was-validated .form-control:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.sansation-light {
    font-family: "Sansation", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.sansation-regular {
    font-family: "Sansation", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.sansation-bold {
    font-family: "Sansation", sans-serif;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 0px;
}

.sansation-light-italic {
    font-family: "Sansation", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.sansation-regular-italic {
    font-family: "Sansation", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.sansation-bold-italic {
    font-family: "Sansation", sans-serif;
    font-weight: 700;
    font-style: italic;
}
.container {
    background: transparent;
}