/* Simplified Card Flip Styles - No Animation */

/* Basic card styling without animations */
.card {
  width: 200px;
  height: 280px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  color: white;
  transition: all 0.3s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Flipping state - shows "Flipping card..." text */
.card.flipping {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.card.flipping .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card.flipping .flipping-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  animation: textPulse 1s ease-in-out infinite;
}

.card.flipping .flipping-dots {
  font-size: 2rem;
  animation: dotsPulse 1.5s ease-in-out infinite;
}

/* Result state - shows the final result */
.card.result {
  background: var(--result-color, #667eea);
  color: white;
}

/* Hide original card content during flipping */
.card.flipping .card-front,
.card.flipping .card-back,
.card.flipping .card-symbol,
.card.flipping .result-symbol,
.card.flipping .result-text {
  display: none;
}

/* Show result content when card has result */
.card.result .card-front,
.card.result .card-symbol {
  display: none;
}

.card.result .card-back,
.card.result .result-symbol,
.card.result .result-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Simple text animations for flipping state */
@keyframes textPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes dotsPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Result symbol styling */
.result-symbol {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.result-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Card symbol styling */
.card-symbol {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  .card {
    width: 150px;
    height: 210px;
    padding: 20px;
  }
  
  .card.flipping .flipping-text {
    font-size: 1.2rem;
  }
  
  .card.flipping .flipping-dots {
    font-size: 1.5rem;
  }
  
  .result-symbol {
    font-size: 4rem;
  }
  
  .card-symbol {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .card {
    width: 120px;
    height: 168px;
    padding: 15px;
  }
  
  .card.flipping .flipping-text {
    font-size: 1rem;
  }
  
  .card.flipping .flipping-dots {
    font-size: 1.2rem;
  }
  
  .result-symbol {
    font-size: 3rem;
  }
  
  .card-symbol {
    font-size: 2.5rem;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .card.flipping .flipping-text,
  .card.flipping .flipping-dots {
    animation: none;
  }
} 