.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex; /* Используем flexbox для центрирования */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Начальная прозрачность для плавного появления */
    transition: opacity 0.4s; /* Переход для плавного изменения прозрачности */
}

.custom-alert-box {
    background: #111111;
    color: #ffffff;
    background-size: cover;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    min-width: 300px;
    min-height: 200px;
    max-width: 400px;
    width: 20vw;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: solid 3px #B0FF66;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    word-break: break-word;
}

.custom-error-box {
    background: #111111;
    color: #ffffff;
    background-size: cover;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    min-width: 300px;
    min-height: 200px;
    max-width: 400px;
    width: 20vw;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: solid 3px #9b0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    word-break: break-word;
}


.custom-alert-ok {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #A05EE7;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 70px;
}

.custom-error-ok {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #A05EE7;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 70px;
}

.custom-alert-ok:hover {
    background-color: #2980b9;
}