.container {
  max-width: 600px; /* Set a fixed maximum width */
  margin: 0 auto; /* Center the container */
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8); /* Optional background color with transparency */
}



/* Increase font size for the container heading */
.container h1 {
  font-family: 'Caveat', cursive;
  color: #2A5FCD;
  font-size: 3.5em;  /* Adjust the size as needed */
  font-weight: 700;  /* Makes the text bold */
}



/* Update for .card-overlay for title above text */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);  /* Darker overlay for readability */
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column; /* Ensure title is above text */
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px; /* Padding around text */
  transition: opacity 0.3s ease-in-out;
}

/* Optional hover effect for better appearance */
.card-image:hover .card-overlay {
  opacity: 1;
}

/* Slightly style title and text for clarity */
.card-title {
  font-family: 'Caveat', cursive;
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 5px; /* Space between title and text */
  color:#BDDF63;
}

.card-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7em;
  font-weight: 400;
  line-height: 1.4;
  margin-left: 10px;
  margin-right: 10px;
  color: blanchedalmond;
}

.card {
  border-radius: 25px;
  overflow: hidden; /* Ensures content like overlays stay within the rounded corners */
}

