body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Использование шрифта Google Fonts */
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Ваши дополнительные стили */

body {
    font-family: 'Roboto', sans-serif; /* Использование шрифта Google Fonts */
}

.header {
    background-color: rgba(31, 31, 31, 0.5);
    color: #ffffff;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}
.header-right a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
}

.header-right span {
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.header-right a:hover {
    text-decoration: underline;
}

/* Стили для десктопных устройств */
@media (min-width: 768px) {
    .header-right img {
        width: 33%; /* Уменьшаем размер логотипа ещё в два раза */
    }
}


.header-title {
    text-align: center;
    padding-top: 20px;
    margin-bottom: 10px;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.5s;
    transition-delay: 0.8s;
    z-index: 101;
    margin-top: 10px;
}

.navigation.active {
    width: 140px;
    height: 140px;
    transition-delay: 0s;
}

.navigation span {
    position: absolute;
    width: 7px;
    height: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    transform: translate(calc(12px * var(--x)), calc(12px * var(--y)));
    transition: transform 0.5s, width 0.5s, height 0.5s, background 0.5s;
    transition-delay: calc(0.1s * var(--i));
    cursor: pointer;
}

.navigation.active span {
    width: 40px;
    height: 40px;
    background: transparent;
    transform: translate(calc(50px * var(--x)), calc(50px * var(--y)));
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation span img {
    transition: 0.5s;
    width: 0;
    height: 0;
    opacity: 0;
}

.navigation.active span img {
    width: 24px;
    height: 24px;
    opacity: 1;
}

.navigation span:hover img {
    color: rgba(255, 255, 255, 0.84);
    opacity: 0.84;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.84)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.84)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.84));
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 999;
    font-size: 12px;
    pointer-events: none;
    opacity: 1; /* Изменено для видимости */
    transition: opacity 0.2s;
    visibility: visible; /* Добавлено для видимости */
}


.navigation.active .tooltip {
    opacity: 1;
}


.centered-menu span {
    margin: 0 10px;
}

.login-button {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #555555;
}

.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 70px;
    overflow: hidden;
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
    position: relative;
    z-index: 10; /* ensure main content is above the animated lines */
}

.chat-container {
    flex-grow: 1;
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
    background-color: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    box-sizing: border-box;
}

.messages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.input-container {
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    outline: none;
    position: relative;
    z-index: 10; /* ensure input container is above the animated lines */
}

#message-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #333333;
    border-radius: 10px;
    margin-right: 10px;
    width: 100%;
    background-color: #333333;
    color: #ffffff;
    box-sizing: border-box;
    outline: none;
    resize:none;
}
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.message-content {
    margin-left: 30px;
    box-sizing: border-box;
}
.welcome-message {
    margin-bottom: 15px;
}
.message img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    box-sizing: border-box;
}

.user-message, .bot-message {
    background-color: #333333;
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
}

.user-message {
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}
button {
    padding: 10px 20px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

button:hover {
    background-color: #555555;
}

.footer {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
    z-index: 100;
    margin-top: 10px;
    box-sizing: border-box;
}



@keyframes typing {
    0%, 20% { content: "."; }
    30%, 50% { content: ".."; }
    60%, 80% { content: "..."; }
    90%, 100% { content: "...."; }
}

.typing-indicator::after {
    content: "...";
    animation: typing 2s steps(1, end) infinite;
}

@media (max-width: 600px) {
    .header, .footer {
        padding: 10px;
    }

    .header-title {
        font-size: 18px;
    }

    .navigation {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .main {
        padding-top: 180px;
    }

    .chat-container, .input-container {
        width: 100%;
        padding: 0 10px;
    }

    #message-input, button {
        font-size: 14px;
    }
}

/* Новый стиль для логотипа */
.header-left .logo {
    height: 100px; /* Установите нужную высоту логотипа */
}
/* For tablets (between 768px and 1024px width) */
@media (max-width: 1024px) {
    .header-left .logo {
        height: 80px;
    }
}

/* For small tablets and large phones (between 600px and 768px width) */
@media (max-width: 768px) {
    .header-left .logo {
        height: 60px;
    }
}

/* For phones (less than 600px width) */
@media (max-width: 600px) {
    .header-left .logo {
        height: 40px;
    }
}
.logo-name {
    width: 20%; /* Adjust the size relative to the viewport */
    height: auto; /* Maintain aspect ratio */
    max-width: 100px; /* Set a maximum size for larger screens */
}



/* Extra responsiveness for very small devices (like phones) */
@media (max-width: 480px) {
    .logo-name {
        width: 80%; /* Increase size for mobile devices */
        max-width: 80px;
    }
}


/* Новый стиль для анимации слов */
.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Порядок отображения */
    overflow: hidden; /* Скрытие переполнения */
    width: 100%; /* Ширина */
    height: 100%; /* Высота */
    display: grid; /* Используем CSS Grid */
    grid-template-columns: repeat(18, 1fr); /* 18 равных колонок */
}

/* Стили для линий */
.line {
    position: relative; /* Для позиционирования псевдоэлементов */
    width: 100%; /* Полная ширина контейнера */
    height: 100%; /* Полная высота контейнера */
    display: flex;
    flex-direction: column; /* Размещаем слова по вертикали */
    justify-content: space-around; /* Разделяем слова по всей высоте */
    animation: move 40s linear infinite; /* Медленная анимация движения слов */
}

/* Стили для слов */
.word {
    color: #ffffff; /* Белый цвет текста */
    font-size: 14px; /* Размер текста */
    text-align: center; /* Центрирование текста */
    margin: 10px auto; /* Центрирование слова с увеличением дистанции */
    flex-shrink: 0; /* Убедитесь, что слова не сжимаются */
    opacity: 1; /* Начальная непрозрачность */
    transition: opacity 1s ease; /* Плавное изменение прозрачности */
}

/* Анимация движения слов сверху вниз */
@keyframes move {
    0% {
        transform: translateY(-100%); /* Начало за пределами верхней части */
    }
    100% {
        transform: translateY(100%); /* Конец за пределами нижней части */
    }
}

/* Задержка анимации и направление движения для четных и нечетных слов */
.line:nth-child(odd) {
    animation: move 40s linear infinite; /* Анимация для нечетных слов */
}
.line:nth-child(even) {
    animation: move 40s linear infinite; /* Анимация для четных слов */
    animation-direction: reverse;
}
/* модальное окно */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  /* padding-top: 100px;*/
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
 background-color: rgb(0,0,0);
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1f1f1f;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    color: white;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Maximum width */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
}
.submit-feedback-btn {
    background-color: #444; /* Dark background */
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 10px; /* Some padding */
    width: 50px; /* Width to make it round */
    height: 50px; /* Height to make it round */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Increase font size */
    border-radius: 50%; /* Make the button round */
    cursor: pointer; /* Pointer/hand icon */
    transition: background-color 0.3s;
}

.submit-feedback-btn:hover {
    background-color: #758694; /* Slightly lighter dark background on hover */
}
.feedback-input-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between textarea and button */
}
.text-area {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 15px;
    box-sizing: border-box;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #f9f9f9;
}
.submit-feedback-btn i {
    color: white; /* White color for FontAwesome icon */
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.feedback-buttons .fa {
    cursor: pointer;
    font-size: 15px;
    transition: color 0.3s;
}

        .registration-container {
             background-color: rgba(31, 31, 31, 0.5);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            width: 300px;
            text-align: center;
            color: white;
        }

        .registration-container h2 {
            margin-bottom: 20px;
        }

        .registration-container form {
            display: flex;
            flex-direction: column;
        }

        .registration-container form button {
            background-color: rgba(31, 31, 31, 0.5);
            color: #ffffff;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }

        .registration-container form button:hover {
            background-color: #0056b3;
        }

        .errorlist {
            color: red;
            margin: 0;
            padding: 0;
            list-style: none;
        }


        .login-container {
            background-color: rgba(31, 31, 31, 0.5);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            width: 300px;
            text-align: center;
            color: white;
        }

        .login-container h2 {
            margin-bottom: 20px;
        }

        .login-container form {
            display: flex;
            flex-direction: column;
        }

        .login-container form button {
            background-color: rgba(31, 31, 31, 0.5);
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }

        .login-container form button:hover {
            background-color: #0056b3;
        }

        .login-messages {
            color: red;
            list-style: none;
            padding: 0;
        }


        .outer-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            width: 100%;
        }

        .main1 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 70px;
    overflow: hidden;
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
    position: relative;

}