.modal {

    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6); /* Более насыщенный фон */
    backdrop-filter: blur(5px); /* Размытие для эффекта */
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9); /* Градиентный фон */
    margin: 10% auto; /* Уменьшил отступ сверху */
    padding: 30px;
    border-radius: 12px; /* Закругленные углы */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Тень */
    width: 80%;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s ease-out; /* Анимация появления */
}

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

.close {
    width:30px;
    color: #333;
    float: right;
    font-size: 25px;
    font-weight: bold;
    margin-top: -10px;
    margin-right: -10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.close:hover,
.close:focus {
    background: #ff5252;
    color: white;
    text-decoration: none;
}

/* Кнопка внутри модального окна */
.modal-button {
    background: #6200ea; /* Стильная фиолетовая кнопка */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-button:hover {
    background: #3700b3; /* Более темный оттенок при наведении */
}
/* Контейнер для выравнивания элементов */
.modal-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px; /* Задает максимальную ширину для ввода и кнопки */
    margin: 0 auto; /* Центрирует элементы */
    margin-bottom: 20px;
}

/* Поле ввода */
input[type="text"] {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    margin-bottom: 15px; /* Отступ снизу */
}
.input-confirm{
    font-size: 25px;
    font-family: arial,sans-serif;
}
@media screen and (max-width: 400px) {
    input[type="text"] {
        width: 85%;
    }
}


@media screen and (min-width: 400px) {
    input[type="text"] {
        width: 92%;
    }
}


input[type="text"]:focus {
    border-color: #6200ea;
    background: #fff;
    box-shadow: 0 4px 10px rgba(98, 0, 234, 0.2);
}

/* Кнопка */
button {
    width: 100%; /* Совпадает с шириной поля ввода */
    padding: 14px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #6200ea, #8e24aa); /* Градиент */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(135deg, #3700b3, #5e35b1); /* Более темный градиент */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
