body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* ensures full viewport height */
  margin: 0;
  background-color: #87768f; /* optional for contrast */
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7); /* semi-transparent dark overlay */
  padding: 20px 0;
  text-align: center;
}

.carousel-caption h5,
.carousel-caption p {
  color: #fff;
  margin: 0;
}

.carousel-container {
  width: 80%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  margin: auto;
}

/* make sure images fill the container properly */
.carousel-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Centers the whole content vertically and horizontally */
.outer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 70%;
  max-width: 1000px;
  border: 2px solid #ccc;
  border-radius: 15px;
  background-color: #f8f9fa;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}


/* Heading above the carousel */
.outer-container::before {
  content: "Image Carousel";
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Pause button styling */
.carousel-controls {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

.carousel-controls:hover {
  background-color: #0056b3;
}
