/* home page */

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4vw;
  padding: 0 2vw;
}

/* >>>>>>>>>>> carousel section: bootstrap >>>>>>>>>>>> */
.carousel {
  width: 100%;
}

.hero-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
}

/* >>>>>>>>>>> about section >>>>>>>>>>>> */

/* >>>>>>>>>>> wildlife section >>>>>>>>>>>> */
.wildelife {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vw;
}

.wildelife a {
  display: flex;
  justify-content: center;

}

.animalType {
  position: relative;

}

.animalType img {
  width: 400px;
  border-radius: 50%;
  object-fit: cover;
}

.animalType figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5vw;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 50%;
  cursor: pointer;
}

.animalType:hover figcaption {
  opacity: 1;
}

.animalTypeInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4vw;
}

.type-card {
  margin-bottom: 5vw;
}

/* >>>>>>>>>>> event section >>>>>>>>>>>> */
.event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
}

.event-list {
  display: flex;
  justify-content: space-between;
  gap: 2vw;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 1vw;
  width: 30vw;
  height: 36vw;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.event-card>a {
  width: 100%;
  height: 60%;
}

.event-card>a>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
  padding: 0 1vw;
}

.card-bottom {
  /* height: 3vw; */
  align-items: end;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fafafa;
  border-top: 1px solid #e0e0e0;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.card-bottom a {
  height: 100%;
  padding: 0.5vw;
  color: #5DC3F3;
}

/* >>>>>>>>>>> donate section >>>>>>>>>>>> */
.donate {
  width: 100%;
  /* height: 16vw; */
  position: relative;
  padding: 1vw;
  background: url(/images/bear.jpg) no-repeat center/cover;
  border-radius: 5px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 1vw;
}

.donate-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
  color: #fff;
  z-index: 999;
}


/* >>>>>>>>>>> responsive >>>>>>>>>>>> */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  h2,
  h3,
  h4,
  h5 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
  }

  li {
    font-size: 14px;
  }

  a {
    font-size: 14px;
  }

  .animalType img {
    width: 300px;
  }

  .about,
  .wildlife,
  .donate {
    width: 80vw;
  }

  .type-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }


  .event-list {
    flex-direction: column;
    gap: 2vw;
  }

  .event-card {
    width: 80vw;
    height: 60vw;
  }

  .event-card>a {
    width: 100%;
    height: 70%;
  }

}