#deck {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 10px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.card {
  width: 80px;
  height: 120px;
  flex-shrink: 0;
  background-image: url('../TarotBackImage.png');
  background-size: cover;
  background-position: center;
  margin-left: -72px; 
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.card:first-child {
  margin-left: 0;
}

.reading-area {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.reading-card {
  width: 130px;
  height: 195px;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  border-radius: 6px;
  perspective: 1000px;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  top: 0;
  left: 0;
}

.card-front {
  background-image: url('../tarotimages/questionMark.png');
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  background-image: url('../tarotimages/TarotBackImage.png');
  transform: rotateY(180deg);
}

.reading-card.flipped .card-front {
  transform: rotateY(180deg);
}

.reading-card.flipped .card-back {
  transform: rotateY(0deg);
  z-index: 3;
}

#actionButtons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px; 
  flex-wrap: nowrap; 
}

.fly-animation {
  position: fixed !important;
  transition: transform 0.7s ease, opacity 0.7s ease;
  z-index: 1000 !important;
  pointer-events: none;
}

@media (max-width: 600px) {
  .card {
    width: 60px;
    height: 90px;
    margin-left: -54px;
  }

  .reading-card {
    width: 100px;
    height: 150px;
  }
}

@media (max-width: 400px) {
  .card {
    width: 50px;
    height: 75px;
    margin-left: -45px;
  }

  .reading-card {
    width: 90px;
    height: 135px;
  }
}

.extra-section {
  padding: 60px 20px;
  border-top: 2px solid #333;
}

.extra-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ff7f50;
}

.extra-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.extra-section p strong {
  color: #ff7f50; 
  font-size: 1.2rem;
}

.extra-section ul,
.extra-section ol {
  margin-top: 10px;
  margin-bottom: 20px;
  padding-left: 1.5rem;
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.extra-section ul li::before {
  content: "• ";
  color: #ff7f50;
  font-weight: bold;
  margin-right: 6px;
}

.extra-section ol li {
  margin-bottom: 8px;
  color: #eee;
}

.extra-section ul li,
.extra-section ol li {
  margin-bottom: 6px;
}

.extra-section ul {
  list-style: none;
}

.extra-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
  font-size: 1.15rem;
  line-height: 1.6;
}
