/* Styles améliorés pour les animations du tour de magie */

/* Animations pour la coupe des cartes */
@keyframes pulseLine {
    0% { opacity: 0.6; height: 2px; }
    100% { opacity: 1; height: 4px; }
}

@keyframes cardShuffle {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes cardCut {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-80px) rotate(-5deg); opacity: 0.8; }
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    100% { transform: translateX(-50%) scale(1.05); box-shadow: 0 0 15px rgba(255, 215, 0, 0.8); }
}

@keyframes instructionPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Classes pour les animations */
.card-shuffle {
    animation: cardShuffle 0.5s ease-in-out;
}

.top-deck-cut {
    transform: translateY(-80px) translateZ(50px) rotateX(15deg) !important;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.bottom-deck-cut {
    transform: translateY(80px) translateZ(50px) rotateX(-15deg) !important;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cut-deck-container {
    perspective: 1200px !important;
}

/* Styles pour la boîte de dialogue de confirmation */
#cut-confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    color: white;
    text-align: center;
    z-index: 2000;
    max-width: 80%;
    border: 2px solid gold;
}

#cut-confirmation-dialog p {
    font-size: 18px;
    margin-bottom: 20px;
}

#cut-confirmation-dialog .button-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

#cut-confirmation-dialog button {
    padding: 10px 30px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

#cut-confirmation-dialog button.yes-btn {
    background-color: #4CAF50;
}

#cut-confirmation-dialog button.no-btn {
    background-color: #f44336;
}

#cut-confirmation-dialog button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Styles spécifiques pour PC */
@media (min-width: 768px) {
    .instruction-msg {
        font-size: 18px;
        font-weight: bold;
        color: white;
        text-shadow: 0 0 5px black;
    }
    
    #cut-deck {
        margin: 20px auto;
    }
}

/* Styles spécifiques pour mobile */
@media (max-width: 767px) {
    .instruction-msg {
        font-size: 16px;
        font-weight: bold;
        color: white;
        text-shadow: 0 0 5px black;
    }
    
    #cut-deck {
        margin: 10px auto;
    }
    
    #cut-confirmation-dialog {
        width: 90%;
        padding: 15px;
    }
    
    #cut-confirmation-dialog button {
        padding: 8px 20px;
        font-size: 14px;
    }
}
