body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
    color: #495057;
    overflow-x: hidden; /* Скрываем горизонтальную полосу прокрутки */
}

#settings-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 5px;
    z-index: 20;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#settings-button:hover {
    background-color: #e2e6ea;
    border-color: #adb5bd;
    color: #212529;
}

.settings-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 21; /* Поверх кнопки "Настройки" */
    transform: translateX(-120%); /* Скрываем слева */
    transition: transform 0.3s ease-in-out;
}

.settings-panel.open {
    transform: translateX(20px); /* Показываем с отступом слева */
}

.settings-panel h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #343a40;
}

.settings-panel ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.settings-panel ul li {
    margin-bottom: 10px;
}

.settings-panel ul li a,
.settings-panel ul li button {
    display: inline-block; /* Изменяем на inline-block, чтобы ширина подстраивалась под контент */
    padding: 8px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: auto; /* Автоматическая ширина по содержимому */
    text-align: left;
    margin-right: 5px; /* Небольшой отступ справа, если нужно */
    margin-bottom: 5px; /* Небольшой отступ снизу для нескольких кнопок */
}

.settings-panel ul li a:hover,
.settings-panel ul li button:hover {
    background-color: #007bff;
    color: #fff;
}

#language-settings {
    position: relative; /* Для позиционирования выпадающего списка */
    margin-bottom: 10px;
}

#language-button {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    text-align: left;
}

#language-button:hover {
    background-color: #007bff;
    color: #fff;
}

#language-options {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1; /* Чтобы выпадающий список был поверх остального */
}

#language-options.hidden {
    display: none; /* Скрываем список по умолчанию */
}

#language-options li button {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: left;
}

#language-options li button:hover {
    background-color: #eee;
}

#close-settings-button {
    padding: 8px 15px;
    font-size: 1em;
    cursor: pointer;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#close-settings-button:hover {
    background-color: #c82333;
}

#warning-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3em;
    color: #495057; /* Серый цвет текста */
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    padding: 15px;
    border: 1px solid #ced4da; /* Светлая серая граница */
    background-color: #f8f9fa; /* Светлый серый фон */
    border-radius: 5px;
    z-index: 10; /* Чтобы текст был поверх фигур */
}

#tools-page {
    text-align: center;
    margin-top: 40px;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.tools-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    background-color: white;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
    min-width: 140px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.tool-button:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.tool-button img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.tool-button.documents img {
    content: url('images/blue_document_icon.png');
}

.tool-button.presentations img {
    content: url('images/yellow_presentation_icon.png');
}

.tool-button.tables img {
    content: url('images/green_table_icon.png');
}

.tool-button.translator img {
    content: url('images/translate_logo.png');
}

.tool-button span {
    display: block;
    font-size: 1.2em;
    margin-top: 8px;
    color: inherit;
    font-weight: medium;
    text-align: center;
}

h1 {
    color: inherit;
    font-family: inherit;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.bottom-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.bottom-links button {
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    background-color: #6c757d; /* Серый цвет кнопок */
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.bottom-links button:hover {
    background-color: #545b62;
}

.floating-figure {
    position: fixed; /* Фиксированное положение относительно окна браузера */
    background-color: rgba(0, 123, 255, 0.3); /* Пример цвета с небольшой прозрачностью */
    border-radius: 50%; /* Круглая форма */
    opacity: 0; /* Изначально невидимы */
    animation-direction: alternate; /* Анимация в прямом и обратном направлении */
    animation-iteration-count: infinite; /* Бесконечная анимация */
    pointer-events: none; /* Не реагируют на клики */
    z-index: 1; /* Чтобы фигуры были под контентом */
}

.figure-1 {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 10%;
    animation-name: float1;
    animation-duration: 8s;
    animation-delay: 0s;
}

.figure-2 {
    width: 80px;
    height: 80px;
    top: 45%;
    right: 15%;
    background-color: rgba(255, 193, 7, 0.4); /* Другой цвет */
    animation-name: float2;
    animation-duration: 12s;
    animation-delay: 2s;
}

.figure-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 30%;
    background-color: rgba(40, 167, 69, 0.35); /* Еще один цвет */
    animation-name: float3;
    animation-duration: 10s;
    animation-delay: 4s;
}

@keyframes float1 {
    0% { transform: translate(0, 0); opacity: 0.5; }
    100% { transform: translate(50px, 30px); opacity: 0; }
}

@keyframes float2 {
    0% { transform: translate(0, 0); opacity: 0; }
    100% { transform: translate(-40px, -60px); opacity: 0.6; }
}

@keyframes float3 {
    0% { transform: translate(0, 0); opacity: 0.7; }
    100% { transform: translate(70px, -20px); opacity: 0.1; }
}

/* Стили для страницы graphics.html */
.graphics-editors-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f8f9fa;
    color: #495057;
    padding: 20px;
    overflow-x: hidden; /* Добавлено для скрытия горизонтальной прокрутки */
}

.graphics-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.graphic-tool-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    background-color: white;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease-in-out;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.graphic-tool-button:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.graphic-tool-button img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.graphic-tool-button.canva img {
    content: url('images/canva_logo.png');
}

.graphic-tool-button.figma img {
    content: url('images/figma_logo.png');
}

.graphic-tool-button.vistacreate img {
    content: url('images/vistacreate_logo.png');
}

.graphic-tool-button.photopea img {
    content: url('images/photopea_logo.png');
}

.graphic-tool-button span {
    display: block;
    font-size: 1em;
    margin-top: 5px;
    color: inherit;
    font-weight: medium;
    text-align: center;
}

.back-button {
    padding: 10px 20px;
    font-size: 1em;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10; /* Чтобы контент был поверх фигур */
}

.back-button:hover {
    background-color: #007bff;
    color: white;
}
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
.contact-block {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 15; /* Чтобы блок был поверх плавающих фигур */
}

.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa; /* Светлый фон */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.contact-icon:hover {
    background-color: #e2e6ea; /* Более светлый фон при наведении */
    transform: translateY(-3px);
}

.contact-icon img {
    width: 24px;
    height: 24px;
}

.contact-icon.email {
    background-color: #D44638; /* Красный цвет Gmail */
}

.contact-icon.email:hover {
    background-color: #C53727;
}

.contact-icon.twitch {
    background-color: #9146FF; /* Фиолетовый цвет Twitch */
}

.contact-icon.twitch:hover {
    background-color: #772EEB;
}

.contact-icon.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); /* Градиент Instagram */
}

.contact-icon.instagram:hover {
    opacity: 0.9;
    transform: translateY(-3px) scale(1.05);
}

.contact-icon.tiktok {
    background-color: #000; /* Черный цвет TikTok */
}

.contact-icon.tiktok:hover {
    background-color: #222;
}

.contact-icon.tiktok img {
    filter: brightness(1.5); /* Немного высветлим иконку TikTok */
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #343a40; /* Темный фон */
    color: #f8f9fa; /* Светлый текст */
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
    z-index: 20; /* Чтобы футер был поверх всего */
}

.footer span {
    font-weight: bold;
}

.top-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa; /* Светлый фон */
    color: #495057; /* Темный текст */
    padding: 10px 20px; /* Уменьшим вертикальный отступ */
    z-index: 20; /* Чтобы навигация была поверх всего */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center; /* Размещаем разделы справа */
    align-items: flex-start; /* Выравниваем элементы по верхнему краю */
}

.top-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-navigation ul li {
    margin-left: 20px;
}

.top-navigation ul li a {
    text-decoration: none;
    color: #495057; /* Спокойный основной цвет */
    font-weight: bold;
    padding: 8px 15px; /* Небольшие отступы */
    border-radius: 5px; /* Слегка закругленные края */
}

.top-navigation ul li a:hover {
    background-color: #e2e6ea; /* Светло-серый фон при наведении */
    color: #212529; /* Темный текст при наведении */
}
