/* modals.css — Estructura base de modales y animaciones */

/* Modal base */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--wrpprbck);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .modal-content {
        color: var(--maintxt);
    }
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.modal-actions button {
    flex: 1;
    max-width: 150px;
}

/* Tornado entrance animation */
@keyframes tornado-in {
    0% {
        transform: scale(0) rotate(-720deg) translateY(40px);
        opacity: 0;
    }
    40% {
        opacity: 0.7;
        transform: scale(0.85) rotate(-180deg) translateY(10px);
    }
    70% {
        transform: scale(1.05) rotate(-30deg) translateY(-5px);
    }
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
    }
}

.modal-content.tornado-animate {
    animation: tornado-in 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
