@import url("https://fonts.googleapis.com/css2?family=Freeman&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  font-family: "Poppins";
}

/* Custom CSS for blurring background */
.blur-background {
  filter: blur(5px);
}

.title {
  font-size: 3rem;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  margin-top: -3rem;
 

}

.subtitle {
  font-size: 1.2rem;
  margin-left: 1.5rem;
  margin-bottom: 2rem;
  font-weight: normal;
  color: slategray;
}

.circular-btn {
  width: 12vw; /* Adjusted for responsiveness */
  height: 12vw; /* Adjusted for responsiveness */
  max-width: 4rem; /* Added maximum width */
  max-height: 4rem; /* Added maximum height */
  border-radius: 50%;
  background-color: white;
  color: #5533ff;
  border: none;
  transition: background-color 0.3s ease;
}

.circular-btn:hover {
  background-color: #482bd9;
  color: white;
}

/* Fixed height for card body */
.card {
  text-align: center;
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
  width: 90%; /* Use percentage for width */
  max-width: 40rem; /* Adjusted maximum width */
  margin: 0.3rem auto; /* Center the card */
  border-radius: 2%;

  margin-top: -1rem;

  
}

.card-img-top {
  height: 100%;
  max-width: 50rem;
  border-top-right-radius: 2%;
  border-top-left-radius: 2%;
}

.card:hover .backgroundEffect {
  height: 520px;
  width: 100%;
  background: #da95f8;
  animation: popBackground 6s ease-in forwards;
}

.card-parent {
   padding: -2rem;
}

@keyframes popBackground {
  0% {
    height: 180px;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
  }

  50% {
    height: 200px;
    border-bottom-right-radius: 60%;
    border-bottom-left-radius: 60%;
  }
}

.card:hover {
  background-color: #5dcbf7;
  transform: scale(1.1);
  box-shadow: 9px 9px 5px slategray;
  
}

.card-body {
  height: auto; /* Remove fixed height */
  overflow: hidden;
 padding: 1rem;
}

.backgroundEffect {
  bottom: 0;
  left: 0;
  z-index: -1;
}

.modal-custom {
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content {
  background-color: transparent !important;
  border: none;
}

.modal-content .close {
  margin: 10px;
  outline-color: transparent;
}

.maincard {
  margin: 3rem;
 
}

.card-title {
 font-size: 1.8rem;
  
}

.close {
  font-size: 3rem;
  color: black;
}


@media (max-width: 768px) {
  .card {
      width: 90%; /* Adjusted width for smaller screens */
      max-width: none;
  }
  .circular-btn {
      width: 20vw; /* Adjusted width for smaller screens */
      height: 20vw; /* Adjusted height for smaller screens */
      max-width: 6rem; /* Added maximum width for smaller screens */
      max-height: 6rem; /* Added maximum height for smaller screens */
  }
}
