﻿
.card-container {
  perspective: 1000px;
  width: 300px;
  height: 200px;
}

.card-container .card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
  cursor: pointer;
}

.card-container .card:hover {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-front {
  background: #fff;
}

.card-back {
  background: #fff;
  transform: rotateY(180deg);
}
@media (max-width: 1200px) {
.card-container {
  width: 280px;
}
}