/* === Animated Gradient Background === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  cursor: url('https://cdn-icons-png.flaticon.com/512/32/32339.png'), auto;
}
@keyframes gradientBG {
  0% {background-position:0% 50%}
  50% {background-position:100% 50%}
  100% {background-position:0% 50%}
}

/* === Cards container === */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
}

/* === Card styling === */
.card {
  width: 200px;
  height: 280px;
  perspective: 1000px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.card:hover .card-inner {
  transform: rotateY(180deg);
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  font-size: 1rem;
  text-align: center;
}
.card-front {
  background: rgba(255, 255, 255, 0.9);
}
.card-back {
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: white;
  transform: rotateY(180deg);
}

h1 {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* === Share button === */
.share-btn {
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  transition: background 0.3s ease;
  display: block;
}
.share-btn:hover {
  background: linear-gradient(90deg, #0072ff, #00c6ff);
}
