@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@100;300;400;700;900&display=swap&subset=cyrillic');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background:#c0c6cd;
    color: #333;
    text-align: center;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
}

#app {
    min-height: 100%; /* Гарантируем, что содержимое занимает всю высоту */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

/* Стили для горизонтального меню */
.main-menu {
    display: flex;
    justify-content: center;
    background-color: rgba(106, 17, 203, 0.8); /* Полупрозрачный фон */
    padding: 10px 0;
    position: fixed; /* Фиксированное меню */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
        font-family: 'Montserrat', Arial, sans-serif;

}

.main-menu a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #ffcc00; /* Цвет текста при наведении */
}

/* Заголовок */
.title-container {
    margin-top: 0px; /* Отступ под меню */
    text-align: center;
}

.main-title {
    font-family: 'Montserrat', sans-serif; /* Шрифт Bebas Neue */
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #8a2be2;
    text-transform: lowercase; /* Делаем весь текст прописным */
    margin-left: -420px; /* Сдвиг на 2 см влево */
}

/* Первая буква заглавная */
.main-title::first-letter {
    text-transform: uppercase; /* Превращаем первую букву в заглавную */
    font-size: 1.2rem; /* (Опционально) Увеличиваем размер первой буквы */
    color: #8a2be2;
}

@media (max-width:480px){
  .menu-dropdown{width:340px}

}
h1 {
    font-size: 35px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: 100!important;
}
h3 {
    font-size: 2.8rem;
    margin-top: 40px;
    margin-bottom: 5px;
    font-weight: 600;
    color: darkblue;
}
h5 {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 300;
    color: darkblue;
}
h6 {
    font-size: 28px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: 300;
    color: #000000;
     text-align: left;
}
/* Общий стиль кнопок */
button {
    text-decoration: none;
    font-size: 1.5rem;
    padding: 13px 45px;
    color: #ffffff;
    text-transform: uppercase;
    border: none;
    background: linear-gradient(90deg, #9c2236 0%, #9c2236 100%);
    border-radius: 0; /* Убираем скругление, чтобы кнопки стали квадратными */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-top: 20px;
}

button:hover {
    box-shadow: 0px 4px 15px rgba(101, 78, 163, 0.4);
    transform: translateY(-2px);
}

button:hover:before {
    left: 100%;
}


.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.input-container {
    margin-top: 20px;
}

input {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    padding: 10px;
    width: 500px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
    margin: 0 auto;
    margin-top: -30px;
}

/* Нижняя полоска */
.footer {
    background-color: rgba(34, 34, 34, 0.9);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: auto;
    width: 100%;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #ffcc00; /* Цвет при наведении */
    transform: scale(1.2); /* Увеличение при наведении */
}


/* Палитра */
.palette {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    gap: 0;
}

.row {
    display: flex;
    justify-content: start;
    gap: 0px;
    margin-bottom: 20px;
}

.color-box {
    width: 120px; /* Увеличенная ширина */
    height: 240px; /* Увеличенная высота */
    border-radius: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
}



/* Контейнер для сферы */
#sphere-container {
    width: 300px;
    height: 300px;
    margin: 0 auto 20px; /* Центрирование и отступ снизу */
    position: relative;
}
/* Секция */
section {
    padding: 50px 20px;
    margin: 30px 0;
    background-color: #f9f9f9; /* Легкий серый фон */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#home {
    padding-top: -20px; /* Отступ, чтобы меню не перекрывало */
    margin-bottom: 30px;
    text-align: center;
}


section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #8a2be2;
    margin-bottom: 20px;
    text-align: center;
}
section h7 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #8a2be2;
    margin-bottom: 20px;
    text-align: center;
}

section p, section ul {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin: 10px 0;
}
.share-buttons {
    margin-top: 20px;
    text-align: center;
}

#shareButton {
    font-size: 1.2rem;
    padding: 10px 30px;
    color: #ffffff;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Montserrat', Arial, sans-serif;
}

#shareButton:hover {
    box-shadow: 0px 4px 15px rgba(101, 78, 163, 0.4);
    transform: translateY(-2px);
}

.share-options {
    margin-top: 10px;
}

.share-options a {
    display: inline-block;
    margin: 5px 10px;
    text-decoration: none;
    font-size: 1rem;
    color: #ffffff;
    background: #2575fc;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.share-options a:hover {
    background: #6a11cb;
}
#xylophone-container {
    position: relative; /* Устанавливаем контекст для псевдоэлемента */
    width: 500px!important;
    height: 500px!important;
    background-size: cover;
    background-position: center;
    margin: 0 auto; /* Центрирование */
    border-radius: 10px; /* (Опционально) Сглаженные углы */
    overflow: hidden; /* Убедимся, что засветление не выходит за границы */
}

/* Наложение засветления */
#xylophone-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* Полупрозрачный белый цвет */
    pointer-events: none; /* Отключаем клики по наложению */
    transition: opacity 0.3s ease-in-out; /* Плавное изменение прозрачности */
}

/* Эффект засветления при наведении */
#xylophone-container:hover::after {
    background: rgba(255, 255, 255, 0.6); /* Более сильное засветление при наведении */
}
.overlay-text {
    position: absolute; /* Абсолютное позиционирование относительно контейнера */
    top: 50%; /* Центрируем текст по вертикали */
    left: 5%; /* Смещаем текст на 10% от левого края контейнера */
    right: 5%;
    transform: translateY(-50%); /* Выравниваем текст по вертикали */
    z-index: 10; /* Помещаем текст на передний план */
    color: #000000; /* Черный текст */
    font-size: 2rem; /* Размер текста */
    font-family: 'Bebas Neue', sans-serif; /* Шрифт */
    text-align: left; /* Выравниваем текст относительно левого края */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Тень для читаемости */
    pointer-events: none; /* Отключаем взаимодействие с текстом (опционально) */
}
.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Расстояние между значками */
    margin-top: -20px;
    margin-left:-100px;
}

.icon-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px; /* Размер контейнера значка */
    height: 20px;
    border-radius: 50%; /* Круглый фон */
    border: 2px solid rgba(0, 0, 0, 0); /* Черный контур */
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top:-10px;
    margin-bottom:10px;
}

.icon-container svg {
    width: 15px; /* Размер самого значка */
    height: 15px;
}

.icon-container a:hover {
    background-color: rgba(240, 240, 240, 0); /* Легкий фон при наведении */
    transform: scale(1.1); /* Легкое увеличение */
}

.footer-image {
    text-align: center; /* Центрируем картинку */
    margin-top: 20px;
}

.footer-image img {
    max-width: 100%; /* Картинка занимает всю доступную ширину */
    height: auto; /* Пропорциональное масштабирование */
    border-radius: 10px; /* Сглаженные углы (опционально) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Тень для красоты */
}
.text-button {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 10px; /* Добавляем немного пространства */
    border: 2px solid transparent; /* Для эффекта наведения */
    border-radius: 5px; /* Скругление углов */
    margin-bottom:20px;
    margin-top:300px;
}
.text-container2 {
    max-width: 800px; /* Максимальная ширина контейнера */
    margin: 0 auto; /* Центрирование контейнера */
    padding: 20px; /* Внутренние отступы */
    background-color: #f9f9f9; /* Фон */
    border-radius: 10px; /* Сглаженные углы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тень */
    text-align: justify; /* Выравнивание текста по ширине */
    font-size: 16px; /* Размер шрифта */
    line-height: 1.6; /* Межстрочный интервал */
    color: #333; /* Цвет текста */
    font-weight: normal; /* Стандартный вес текста */
}


@media (max-width: 768px) {
    /* Стили для меню */
    .main-menu {
        flex-wrap: wrap;
    }

    .main-menu a {
        margin: 5px;
        font-size: 0.9rem;
    }
        h3 {
        font-size: 26px!important;
        margin-top: 40px!important;

    }
            h1 {
        font-size: 20px!important;
    }
        h6 {
        font-size: 20px!important;
        text-align:left;
    }
    h2 {
        font-size: 1.2rem;
        text-align: left; /* Выравниваем заголовок влево */
        margin-left: 20px!important; /* Смещаем вправо с отступом */
    }
        h7 {
        font-size: 1.2rem;
        text-align: left; /* Выравниваем заголовок влево */
        margin-left: 30px!important; /* Смещаем вправо с отступом */
    }

    .title-container {
        margin-left: 0px; /* Сбрасываем отрицательный отступ */
        margin-right: 0px; /* Центрируем */
        width: 100%; /* Увеличиваем ширину контейнера */
    }

    /* Кнопки */
    button {
        font-size: 0.9rem;
        padding: 10px 26px;
    }

    /* Ввод текста */
    input {
        font-size: 12px;
        padding: 8px;
        width: 250px;
        max-width: 350px; /* Уменьшаем максимальную ширину */
        margin: 10px auto;
        border-radius: 5px;
        margin-top:-10px;
    }
    /* Цветовые блоки */
    .palette, .row {
        gap: 0px;
        justify-content: center;
    }
    .color-box {
        width: 70px;
        height: 100px;
        margin-bottom:-20px;
    }
            #name-page .color-box {
                width: 50px;
                height: 80px;
                margin-bottom:5px;
            }
    /* Контейнеры */
    #sphere-container, #xylophone-container {
        width: 90%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }

    /* Изображения в подвале */
    .footer-image img {
        max-width: 50%;
        border-radius: 10px;
    }
    
    .main-title {
        margin-left: 20px!important; /* Меньший отступ на мобильных */
    }
    .text-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.text-button {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 10px; /* Добавляем немного пространства */
    border: 2px solid transparent; /* Для эффекта наведения */
    border-radius: 5px; /* Скругление углов */
    margin-bottom:20px;
    margin-top:-1000px;
}
.blue-gradient-bg {
    background: linear-gradient(135deg, #1e90ff, #00bfff, #87cefa);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3)
}
.dropdown {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1000;
  font-family: sans-serif;
}

.menu-container {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: sans-serif;
  font-size: 16px;
  z-index: 1000;
    font-family: 'Montserrat', Arial, sans-serif;

}

.menu-toggle {
  cursor: pointer;
  color: #333;
  user-select: none;
      font-family: 'Montserrat', Arial, sans-serif;

}

.menu-dropdown {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #dee3e8; /* Подложка того же цвета, что и фон */
  padding: 0 10px;
  border-radius: 4px;
      font-family: 'Montserrat', Arial, sans-serif;

}

.menu-dropdown a {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
  font-size: 15px;
      font-family: 'Montserrat', Arial, sans-serif;

}

.menu-dropdown a:hover {
  text-decoration: underline;
}

}
@media (max-width:480px){
  .menu-dropdown{width:340px}
}
/* iOS не будет приближать, если шрифт полей ≥16px */
input, select, textarea, button {
  font-size: 16px; /* можно 17–18px, если хочется крупнее */
  font-family: 'Montserrat', Arial, sans-serif;
}

/* на всякий случай — отключаем авто-апскейл текста в Safari */
html { -webkit-text-size-adjust: 100%; }

