/* Tarot Cards Styles with Pink Theme */
.tarot-intro {
    text-align: center;
    margin: 20px auto;
    font-weight: bold;
    color: #FF4DB2;
}

/* Contenitore principale del form */
#tarot-form-fields {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    background: #FF4DB2;
    padding: 15px;
    border-radius: 8px;
    color: white;
}

#tarot-form-fields .tarot-row {
    margin-bottom: 10px;
}

.tarot-label {
    display: inline-block;
    width: 110px;
    text-align: right;
    margin-right: 5px;
    color: white;
    font-weight: bold;
}

.tarot-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 6px;
    width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}

.tarot-description {
    margin-top: 15px;
    font-style: italic;
    font-size: 0.9em;
    color: white;
}

/* Container delle 3 carte */
.tarot-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
    perspective: 1000px;
}

.tarot-card {
    width: 200px;
    height: 300px;
    cursor: pointer;
    position: relative;
    margin: 10px;
}

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

.tarot-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-back, .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.card-front {
    transform: rotateY(180deg);
}

.card-message {
    text-align: center;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 77, 178, 0.9);
    color: white;
    font-style: italic;
    font-size: 14px;
    display: none;
    box-shadow: 0 0 10px rgba(255, 77, 178, 0.5);
    min-height: 60px;
}

.new-reading-btn {
    display: block;
    margin: 20px auto;
    background: linear-gradient(90deg, #FF4DB2, #FF69B4);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 77, 178, 0.5);
}

.new-reading-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(255, 77, 178, 0.9);
}

/* Responsive design */
@media (max-width: 768px) {
    .tarot-card {
        width: 150px;
        height: 225px;
    }
    
    .tarot-container {
        gap: 10px;
    }
    
    #tarot-form-fields {
        width: 90%;
    }
    
    .tarot-label {
        display: block;
        text-align: left;
        width: auto;
        margin-bottom: 5px;
    }
    
    .tarot-input {
        width: 100%;
    }
}