.hidden {
    display: none;
}

.relative {
    position: relative;
}

.block {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#opacity {
    background: #000000;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
    z-index: 99998;
}

#myAlert {
    display: none;
    z-index: 99999;
    position: absolute;
    left: 0;
}

.myAlertBox {
    border-radius: 5px;
    background: #ffffff;
    width: 420px;
    min-height: 120px;
    margin: 0 auto;
    position: relative;
    top: 150px;
    padding-top: 5px;
    box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    opacity: 0;
    animation: myAlert-appearance-animation 0.5s 0s 1 alternate forwards;
}

.myAlertBox .controls {
    text-align: center;
    padding-top: 15px;
}

.myAlertBox .title {
    font-size: 0;
    font-weight: 400;
    border: 0;
    width: 50px;
    height: 50px;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 32px;
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: left;
}

.myAlertBox .error {
    background-color: #bb2929;
    background-image: url('data:image/svg+xml,<svg style="color: white" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation" viewBox="0 0 16 16"><path d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.553.553 0 0 1-1.1 0L7.1 4.995z" fill="white"></path></svg>');
    background-size: 42px;
}

.myAlertBox .success {
    background-color: #42bb29;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220" fill="currentColor" class="bi bi-check-lg" viewBox="0 0 16 16" id="IconChangeColor"><path d="M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z" id="mainIconPathAttribute" fill="%23ffffff"></path></svg>');
}

.myAlertBox .loading {
    background-color: #888;
    background-image: url('data:image/svg+xml,<svg style="color: white" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-loader"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>');
    animation: myAlert-loading-animation 1s 0.5s infinite forwards;
}

.myAlertBox .message {
    font-size: 1.15rem;
    line-height: 1.4;
    color: #333;
    padding: 20px;
    text-align: center;
}

.myAlertBox a {
    display: inline-block;
    font-size: 0.9rem;
    text-align: center;
    color: #222;
    background: #e6e6e6;
    text-decoration: none;
    line-height: 1rem;
    border-radius: 6px;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
}

.myAlertBox a:hover {
    background: #dbdbdb;
}

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

@keyframes myAlert-loading-animation {
    from {
        rotate: 0;
    }
    to {
        rotate: 360deg;
    }
}
