﻿.persona-card {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    background-color: #f9f9f9;
}

h2 {
    text-align: center;
    color: #333;
}

.error-message {
    color: red;
    text-align: center;
    font-weight: bold;
}
/* Efecto de Sorteo */
.drawing-effect {
    text-align: center;
    font-size: 1.5em;
    color: #333;
}

    .drawing-effect h1 {
        font-size: 2em;
        color: #ff6b6b;
        animation: blink 1s infinite;
    }

.loader {
    display: none; /* oculto por defecto */
    margin: 20px auto;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff6b6b;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}


/* Efecto de Celebración */
.persona-card.celebration {
    text-align: center;
    font-size: 1.5em;
    padding: 20px;
    border: 2px solid #28a745;
    border-radius: 10px;
    background-color: #f8f9fa;
    color: #28a745;
    animation: popIn 1s ease-out, confetti 1s forwards;
}

    .persona-card.celebration h1 {
        font-size: 2.5em;
        color: #28a745;
    }

@keyframes blink {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti Effect */
@keyframes confetti {
    0% {
        background-position: center top;
    }

    100% {
        background-position: center bottom;
    }
}
