/* Card-specific styles and animations */
.card {
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: visible;
    perspective: 1000px;
    aspect-ratio: 2.5/3.5;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.card.highlighted {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-front {
    background: inherit;
}

.card-back {
    background: #333;
    color: white;
    transform: rotateY(180deg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card-content {
    text-align: center;
    z-index: 1;
}

.card-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.card-description {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.4;
}

.scene-words-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.scene-word {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    color: white;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scene-word:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.prompt-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.prompt-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.new-prompt-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card.story .card-front { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card.opinion .card-front { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card.description .card-front { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card.debate .card-front { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card.imagination .card-front { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.card.comparison .card-front { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.card.story .card-title,
.card.opinion .card-title,
.card.description .card-title,
.card.debate .card-title,
.card.imagination .card-title,
.card.comparison .card-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.card.story .card-description,
.card.opinion .card-description,
.card.description .card-description,
.card.debate .card-description,
.card.imagination .card-description,
.card.comparison .card-description {
    color: rgba(255,255,255,0.9);
}

.scene-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.scene-card .card-front {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.scene-card .card-content {
    padding: 1.5rem;
    flex: 1;
}

.card.scene-city .card-front { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card.scene-park .card-front { background: linear-gradient(135deg, #a8e6cf 0%, #7fcdcd 100%); }
.card.scene-classroom .card-front { background: linear-gradient(135deg, #ffd3a5 0%, #fd9853 100%); }
.card.scene-beach .card-front { background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); }
.card.scene-store .card-front { background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%); }
.card.scene-playground .card-front { background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%); }
.card.scene-restaurant .card-front { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
.card.scene-livingroom .card-front { background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%); }

