.card-container {
  perspective: 1000px;
}
.card {
  width: 100%;
  height: 300px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  border-radius: 8px;
}
.card:hover {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  font-size: 1.5rem;
  color: white;
  border-radius: 8px;
}
.card-front {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-front .about-card-content{
  color: white;
  font-weight: bold;
  font-size: 3rem;
  margin: 0;
}

.card-back {
  background-color: #29abde;
  transform: rotateY(180deg);
}
.card-back h3 {
  margin-bottom: 10px;
  color: white;
}

.card-back p {
  color: white;
  margin-bottom: 20px;
  font-size: large;
}
.card-back .btn {
  font-size: 1rem;
  margin-bottom: 10px;
  color: white;
  font-weight: bolder;
  font-size: 3rem;
}

.about-card-content {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  justify-content: center;
  font-weight: bold;
}

@media (max-width: 768px) {
  .card {
    transform: none !important;
  }
  .card-front,
  .card-back {
    position: relative;
    backface-visibility: visible;
    transform: none;
  }
  .card-back {
    display: none;
  }
  .about-card-content {
    position: relative;
    left: 0;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
}
