.modal-wrapper {
    display: none;
    opacity: 100%;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #00000075;
    backdrop-filter: blur(5px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-window {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-width: 50em;
    min-width: 40em;
}

.modal-header {
    text-align: center;
    margin: 0;
    font-size: 1.4em;
    padding: 0.5em 0 0.5em 0;
    background-color: #4b6da7;
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.modal-message {
    display: flex;
    margin: 0;
    padding: 1em;
    background-color: white;
    flex-direction: column;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.modal-button {
    margin-top: 50px;
    padding: 0.5em;
    font-size: 1em;
    background-color: #4b6da7;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: padding 0.5s;
}

.button-to-centre {
    display: flex;
    justify-content: center;
}

.modal-button:hover {
    padding: 1em;
}

#email-error {
    display: block;
    text-align: center;
    color: red;
}

.icon-enter {
    margin-right: 1em;
    color: #ffffffb5;
}

.span-in-modal {
    text-indent: 2em;
    font-size: 1.2em;
    color: rgb(39, 39, 39);
}

/* баранова 06.05.2025 */

/* крестик справа */

.close_modal-container {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: -1.5em;
    z-index: 101;
    text-align: center;
}

.close_modal-icon {
    width: 1em;
    background: white;
    border: 5px solid white;
    border-radius: 15px;
}

/* модальные окна на мобильном */

@media screen and (max-width: 720px) {
    .modal-window {
        min-width: 0;
        width: 80%;
        overflow-wrap: break-word;
        max-height: 90%;
    }

    .modal-message {
        hyphens: auto;
    }
}

@media screen and (max-width: 350px) and (max-height: 800px) {
    .modal-message {
        overflow-y: scroll;
    }
}