main {
  background-color: #e0f7fa; 
}

h1 {
  text-align: left;
  margin: 20px 5px;
  font-size: 2.5em;
  color: #19366b;
  padding-left: 15px;
}

.alumni-description {
  text-align: left;
  font-size: 1.2em;
  color: #555;
  margin-bottom: 40px;
  padding-left: 15px;
  margin: 5px;
}

#alumni-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.alumni-card {
  position: relative;
  width: 200px;
  height: 300px;
  margin: 20px;
  text-align: center;
  background-color: #f4f4f4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.alumni-card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-bottom: 2px solid #ccc;
}

.alumni-card h3 {
  margin: 10px 0;
  font-size: 1.2em;
  color: #333;
}

.alumni-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

body.dimmed {
  background-color: rgba(224, 247, 250, 0.5);
}

@keyframes flash {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.alumni-details {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 20;
  justify-content: center;
  align-items: center;
}


.details-content {
  background-color: #19366b;
  border-radius: 8px;
  padding: 30px;
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
  animation: slideInFadeScale 0.6s ease-out forwards, flash 0.5s ease-out forwards;
}

.details-text {
  color: white;
  font-size: 1.2em;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.details-text p:last-child {
  margin-top: auto;
}

.details-text a {
  color: white;
}

.details-text a:hover {
  color: red;
}

.details-content {
  background-color: #19366b;
  border-radius: 8px;
  padding: 30px;
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
  animation: slideInFadeScale 0.6s ease-out forwards, flash 0.5s ease-out forwards;
}

@keyframes slideInFadeScale {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flash {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .alumni-card {
    width: 150px;
    height: 250px;
  }

  .details-text {
    font-size: 1em;
  }

  h1 {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .alumni-card {
    width: 100%;
    height: auto;
  }

  .details-content {
    flex-direction: column;
    align-items: center;
  }

  .big-image {
    width: 100%;
  }

  .details-text {
    max-width: 90%;
  }
}
