﻿.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.alert-box {
    background: #fff;
    width: 90%;
    max-width: 350px;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    animation: alertIn .25s ease;
}

    .alert-box h3 {
        margin-top: 0;
        font-family:Calibri;
    }
    .alert-box p{
        font-family:Arial;
    }

.alert-btn {
    margin-top: 20px;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    /*  display:block;*/
    background: #2f80ed;
    color: white;
    font-size: 14px;
    /* margin-left:40%;
    margin-right:auto;*/
    cursor: pointer;
    z-index: 10000; /* 🔥 higher than overlay */
}

    .alert-btn:hover {
        opacity: .9;
    }

/* TYPES */
.alert-success h3 {
    color: #27ae60;
}

.alert-error h3 {
    color: #e74c3c;
}

.alert-info h3 {
    color: #2f80ed;
}

@keyframes alertIn {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
