/**************БАЗОВЫЕ НАСТРОЙКИ****************/
body {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background-color: #11111c;
    color: #dcb38c;
    background-image: linear-gradient(90deg, #08080c, #11111c, #08080c);
}
h1, h2{
    text-align: center;
}
header {
    /*background-color: #0c0c14;*/
    background-image: linear-gradient(90deg, #11111c, #08080c, #11111c);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: bold;
    margin-left: 1em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #dcb38c;
    text-decoration: none;
    font-weight: bold;
}

a:link{
    font-weight: bold;
    color: #dcb38c;
    text-decoration: none;
    font-style: italic
}
a:visited{
    font-weight: bold;
    color: #dcb38c;
    text-decoration: none;
}

/*************БАННЕР, МЕНЮ***************/

.menu-toggle {
    display: none; /* Скрываем на десктопе */
    font-size: 1.5em;
    background: none;
    border: none;
    color: #dcb38c;
    cursor: pointer;
    position: absolute;
    left: 2vw;
    top: 2vh;
    z-index: 1001;
}

/*************ОСНОВА*******************/

.maincontent{
    width: 40vw;
    border-top: 1px solid #dcb38c;
    border-bottom: 1px solid #dcb38c;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3em;
    margin: 1em auto;
}
section {
    text-align: center;
}

textarea {
    width: 100%;
    font-family: "EB Garamond", serif;
    font-size: 16px;
    color: #dcb38c; /* Цвет текста */
    background: #11111c; /* Фон */
    border: 1px solid #dcb38c;
    border-radius: 4px; /* Небольшие скругления */
    padding: 8px 12px; /* Внутренние отступы */
    outline: none; /* Убираем контур при фокусе */
    resize: vertical; /* Позволяем менять размер только по вертикали */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Стили при фокусе */
textarea:focus {
    border-color: #dcb38c;
    box-shadow: 0 0 5px rgba(220, 179, 140, 0.4);
}

/* Дизайн для отключенного textarea */
textarea:disabled {
    background: #11111c;
    color: #dcb38c;
    cursor: not-allowed;
}

/* Ошибка (например, при валидации) */
textarea.error {
    border-color: #d9534f;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.5);
}

/* Убираем автозаполнение в Chrome */
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    background: #11111c !important;
    color: #dcb38c !important;
    -webkit-text-fill-color: #dcb38c !important; /* Цвет текста при автозаполнении */
    -webkit-box-shadow: 0 0 0 1000px #11111c inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/*input{
    background-color: #1a1a2a;
    border: 1px solid #dcb38c;
    margin-left: 0.5em;
}*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background: #11111c !important;
    color: #dcb38c !important;
    -webkit-text-fill-color: #dcb38c !important; /* Устанавливаем цвет текста */
    -webkit-box-shadow: 0 0 0 1000px #11111c inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
input {
    font-family: "EB Garamond", serif;
    font-size: 16px;
    color: #dcb38c; /* Темный текст */
    background: #11111c; /* Белый фон */
    border: 1px solid #dcb38c;
    border-radius: 4px; /* Небольшие скругления */
    padding: 4px 12px; /* Внутренние отступы */
    outline: none; /* Убираем контур при фокусе */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Стили при фокусе */
input:focus {
    border-color: #dcb38c; /* Синий оттенок при фокусе */
    box-shadow: 0 0 5px rgba(220, 179, 140, 0.4);
}

/* Дизайн для отключенного input */
input:disabled {
    background: #11111c;
    color: #dcb38c;
    cursor: not-allowed;
}

/* Ошибка (например, при валидации) */
input.error {
    border-color: #d9534f;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.5);
}
label{
    font-size: 1.1em;
}
.maincontent button {
    padding: 0.5em 1em;
    background-color: #dcb38c;
    color: #11111c;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1000px){
    header {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .maincontent{
        width: 60%;
    }
}
@media (max-width: 735px){
    .menu-toggle {
        display: block; /* Показываем кнопку на мобильных */
    }
    nav {
        position: fixed;
        top: 0;
        left: -100%; /* Прячем за экраном */
        width: 70%;
        height: 100%;
        background: #11111c;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease-in-out; /* Анимация появления */
        z-index: 1000;
        padding-top: 50px;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    nav ul li {
        margin: 15px 0;
    }
    nav.active {
        left: 0;
    }
    .logo {
        text-align: center;
        flex-grow: 1; /* Позволяет логотипу занять центр */
        font-size: 1.4em; /* Можно уменьшить для мобильной версии */
    }
}
