/* Base Styling */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  background: url("../images/background_image.jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Overlay Containers */
header,
section,
footer {
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent background */
  padding: 2rem 1rem;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
label {
  color: #ffffff;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.6) !important;
}

.navbar-brand img {
  margin-left: 0;
}

.navbar-nav .nav-link {
  color: #000 !important;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
}

/* Improve readability of section blocks */
section {
  background-color: rgba(0, 0, 0, 0.75); /* darker overlay for more contrast */
  border-radius: 8px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Increase contrast on headings */
section h2 {
  color: #f1f1f1;
  font-weight: 600;
}

/* Improve paragraph text visibility */
section p {
  color: #e0e0e0;
  font-size: 1.1rem;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
  padding: 1rem;
  border-radius: 20px;
  object-fit: contain;
}

.carousel-inner img {
  max-height: 400px;
  object-fit: contain;
}

.fade-out {
  opacity: 1;
  transition: opacity 1s ease-out;
}

.fade-out.hide {
  opacity: 0;
}
