/* General Layout */


/* Countdown Overlay */
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.countdown-number {
  font-size: 5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #ffec99, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  animation: pulse 1s infinite;
}

.countdown-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ccc;
}

/* Countdown Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Card Result Section */
.hidden {
  display: none;
}

.card-result {
  max-width: 1100px;
  margin: 100px auto 40px;
  text-align: center;
}

.result-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f87171;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-family: 'Cinzel', serif;
  margin-bottom: 2rem;
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .card-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
  }
}

/* Card Image */
.card-image-wrapper {
  perspective: 1000px;
  max-width: 320px;
  width: 100%;
}

.card-flip {
  border: 4px solid #fff;
  border-radius: 1rem;
  overflow: hidden;
  animation: cardFlip 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-image {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image:hover {
  transform: scale(1.05);
}

/* Flip Animation */
@keyframes cardFlip {
  0% { transform: perspective(800px) rotateY(180deg); }
  100% { transform: perspective(800px) rotateY(0deg); }
}

/* Card Text */
.card-text {
  max-width: 500px;
  text-align: center;
}

.card-name {
  font-size: 2rem;
  color: red;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.description-container p {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
}

/* Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-read {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  color: #333;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

.icon {
  width: 20px;
  height: 20px;
}

.btn-return {
  display: inline-block;
  padding: 10px 28px;
  font-weight: 600;
  color: #222;
  background: linear-gradient(to right, #ffde59, #ffcc00);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 255, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-return:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #ffcc00, #ffde59);
}

@media (max-width: 768px) {
  .card-image-wrapper {
    max-width: 200px;
   height: 200px;
}
.card-text{
    margin-top: 2rem;
}
.card-result {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.description-container p {
    font-size: 1.2rem;
    padding: 0 1rem;
}
.card-name {
    font-size: 1.7rem;
    margin-top: 6rem;
}
.result-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
}