/* Основные стили */
body {
    font-family: "Play", sans-serif;
    font-style: normal;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

#emailBody {
    max-width: 478px;
}

/* Темная тема */
body.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

body.dark-theme .container {
    background: #1e1e1e;
    color: #ffffff;
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme button {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

/* Формы и кнопки */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input,
textarea,
button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 19px;
    transition: all 0.3s ease-in-out;
}

input:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    background-color: #116d0e;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    transform: scale(1.05);
    background-color: #218838;
    text-shadow: #ffcc00 2px 0 10px;
    letter-spacing: 1px;
}

button:active {
    transform: scale(0.95);
}

/* Кнопка "Отправить" */
#submitButton {
    background-color: #116d0e;
}

#submitButton:hover {
    background-color: #218838;
    text-shadow: #ffcc00 2px 0 10px;
    letter-spacing: 1px;
}

#submitButton:active {
    background-color: #1e7e34;
    transform: scale(0.95);
}

#settingsButton {
    display: flex;
    margin-top: 2vh;
    justify-self: right;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.modal .modal-content .theme-switch {
    display: flex;
    gap: 1%;
}

.modal .modal-content .theme-switch #darkTheme {
    height: 15px;
    width: 15px;
}

body.dark-theme .modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
}

.modal .modal-content button:hover {
    background-color: #218838;
    text-shadow: #ffcc00 2px 0 10px;
    letter-spacing: 1px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

body.dark-theme .close:hover {
    color: #fff;
    text-shadow: #ffcc00 1px 0 10px;
}

/* Уведомление */
.notification {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}