body {
  margin-left: 10%;
  margin-top: 5%;
  background: #2c3e50;
  font-family: "Merriweather", serif;
}

/* Kartları saran alan */
.container-kart {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 90%;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 2rem;
}

/* Kart kapsayıcı */
.kart-container {
  width: 300px;
  height: 400px;
}

/* Kart */
.kart {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.kart-container:hover .kart {
  transform: rotateY(180deg);
}

/* Ön ve arka yüz */
.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 10px;
  box-sizing: border-box;
  background: #ffffff;
  color: #363434;
}

/* Ön yüz */
.front {
  font-size: 20px;
}

.front h2 {
  text-align: center;
  font-size: 30px;
  border-bottom: 2px solid #2980b9;
  font-family: "Rowdies", sans-serif;
  font-weight: 100;
}

.front p {
  text-align: left;
  font-size: 18px;
}

/* Arka yüz */
.back {
  transform: rotateY(180deg);
  font-size: 18px;
}

.back ul {
  text-align: left;
}

.back ul li {
  margin-bottom: 20px;
}

/* Buton */
.container-kart .button {
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  font-size: 20px;
  width: 100%;
  text-decoration: none;
  color: #2980b9;
  margin: 40px;
}

.container-kart .button:hover {
  color: #065366;
}

/* Mobil */
@media (max-width: 576px) {
  body {
    margin: 10px;
  }

  .container-kart {
    width: 90%;
  }

  .kart-container {
    width: 100%;
  }
}

/* Top Button */
#topBtn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 16px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

#topBtn:hover {
  background-color: #0056b3;
}
