@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toast {
    animation: slideDown 0.3s ease;
}

.result-box.visible {
    animation: fadeIn 0.3s ease;
}

.option {
    animation: scaleIn 0.3s ease;
    animation-fill-mode: backwards;
}

.option:nth-child(1) {
    animation-delay: 0.1s;
}

.option:nth-child(2) {
    animation-delay: 0.2s;
}

.option:nth-child(3) {
    animation-delay: 0.3s;
}

.option:nth-child(4) {
    animation-delay: 0.4s;
}

.irrelevant-box {
    animation: scaleIn 0.4s ease;
}

.irrelevant-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.visible {
    animation: modalFadeIn 0.2s ease;
}

.modal.visible .modal-content {
    animation: modalSlideUp 0.3s ease;
}