/* Cards generator specific styles */

#card-result {
    min-height: auto;
    padding: 1rem;
    margin: 1rem 0;
}

.card-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.playing-card {
    background: white;
    border: 3px solid #333;
    border-radius: 12px;
    width: 120px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: relative;
    font-family: serif;
    transition: transform 0.3s ease;
}

.playing-card:hover {
    transform: translateY(-5px) rotate(2deg);
}

.card-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.bottom-rank {
    transform: rotate(180deg);
    align-self: flex-end;
}

.card-suit {
    font-size: 3rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Red suits styling */
.red-suit .card-rank,
.red-suit .card-suit {
    color: #dc2626;
}

/* Black suits styling */
.black-suit .card-rank,
.black-suit .card-suit {
    color: #333;
}

.card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-top: 1rem;
}

.deck-info {
    text-align: center;
    margin: 1rem 0;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .playing-card {
        width: 100px;
        height: 150px;
        padding: 8px;
    }
    
    .card-rank {
        font-size: 1.2rem;
    }
    
    .card-suit {
        font-size: 2.5rem;
    }
    
    .card-name {
        font-size: 1rem;
    }
}