html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

#background {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;
  opacity: 1;
}

#background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
  z-index: 1;
}

.img {
    width: 50%;
    max-width: 300px !important;
    height: auto;
}

/* Add padding so content isn't glued to edges */
.content {
    position: relative;
    z-index: 1;
    padding-top: 50px;
}

.carousel-item img {
  height: 330px; /* Fixed height for mobile - increased by about a third */
  object-fit: cover;
  width: 100%;
}

@media (min-width: 768px) {
  .carousel-item img {
    height: 500px; /* Taller height for larger screens */
  }
}

#carouselExampleIndicators {
  /* Default square shape for mobile */
  border-radius: 0.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  /* Oval shape for larger screens */
  #carouselExampleIndicators {
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(ellipse 80% 60%, black 75%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse 80% 60%, black 75%, rgba(0,0,0,0) 100%);
  }
}

.logo-background {
  position: relative;
}

.logo-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/RRDConstructLogo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 350px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.logo-background > * {
  position: relative;
  z-index: 1;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

.card-link:focus {
  text-decoration: none;
  color: inherit;
}

.card-link .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
