body {
    font-family: 'Ninja Naruto Font', sans-serif; /* Предполагаемый ниндзя-шрифт или обычный sans-serif */
    margin: 0;
    padding: 0;
   
    color: #f0f0f0; /* Светлый текст для контраста */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('https://gameguru.ru/media/f/screens/3/24/39/75/7777.jpg'); /* Замените на URL фона в стиле Наруто */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay; /* Наложение для затемнения фона и улучшения читаемости текста */
}

@font-face {
    font-family: 'Ninja Naruto Font';
    src: url('url_to_your_naruto_font_file.woff2') format('woff2'), /* Укажите путь к шрифту Наруто */
         url('url_to_your_naruto_font_file.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.chat-container {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0); /* Темный фон для контейнера чата с небольшой прозрачностью */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 136, 0, 0.6); /* Более яркая тень в стиле Наруто */
    border: 2px solid #ffaa00; /* Рамка под стиль Наруто */
}

.chat-header {
    background-color: #333; /* Темно-серый заголовок */
    color: #ffcc00; /* Золотистый цвет текста заголовка, как акцент */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff8800; /* Более толстая и яркая нижняя граница заголовка */
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
    text-shadow: 1px 1px 2px #000;
}

.header-content {
    display: flex;
    align-items: center;
}

.game-title {
    margin: 0;
    font-size: 2em; /* Увеличенный размер заголовка */
    font-weight: bold;
    text-transform: uppercase; /* Можно добавить, если подходит стилю Наруто */
}

#restart-button.icon-button {
    padding: 0;
    width: 35px; /* Немного больше размер кнопки */
    height: 35px;
    border-radius: 50%;
    background-color: #ffaa00; /* Оранжевый фон кнопки */
    color: #1a1a1a; /* Темный цвет иконки */
    border: none; /* Убрать границу, если не нужна */
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}

#restart-button.icon-button:hover {
    background-color: #ffcc00; /* Более светлый оранжевый при наведении */
    color: #333;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
    scrollbar-width: thin;
    scrollbar-color: #666666 #282828;
    margin-top: 70px; /* Увеличенный отступ для заголовка */
    margin-bottom: 80px; /* Увеличенный отступ для ввода */
    background-color: transparent; /* Прозрачный фон для сообщений, чтобы фон контейнера был виден */
}

.chat-messages::-webkit-scrollbar {
    width: 8px; /* Тоньше полоса прокрутки */
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3); /* Более прозрачный фон для трека */
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #ff8800; /* Оранжевый ползунок */
    border-radius: 4px; /* Меньше радиус */
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: #ffaa00;
}

.message {
    padding: 12px 18px;
    border-radius: 20px; /* Менее округлые сообщения, можно сделать более угловатыми */
    margin-bottom: 12px;
    max-width: 75%;
    word-wrap: break-word;
    color: #1a1a1a; /* Темный текст в сообщениях */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Усиленная тень */
    border: 1px solid #ccc; /* Легкая граница для разделения сообщений */
}

.user-message {
    background-color: #ffa000; /* Ярко-оранжевый цвет для сообщений пользователя */
    align-self: flex-end;
    color: #1a1a1a;
    border: 1px solid #ffcc80; /* Светлая граница для пользовательских сообщений */
}

.ai-message {
    background-color: #f5cca5; /* Светло-серый цвет для сообщений ИИ */
    align-self: flex-start;
    color: #1a1a1a;
    border: 1px solid #fc7a00; /* Еще более светлая граница */
}

.input-container {
    padding: 15px 20px;
    border-top: 2px solid #ff8800; /* Яркая верхняя граница ввода */
    display: flex;
    background-color: #333; /* Темный фон для контейнера ввода */
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#user-input {
    flex-grow: 1;
    padding: 12px 15px; /* Меньше горизонтальные отступы */
    border: 2px solid #ffaa00; /* Оранжевая граница для ввода */
    border-radius: 20px; /* Менее округлый ввод */
    margin-right: 10px;
    background-color: #444; /* Немного светлее фон ввода */
    color: #f0f0f0;
    font-size: 1em;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

#user-input::placeholder {
    color: #aaa;
}

#send-button {
    padding: 12px 25px;
    border: none;
    background-color: #ffaa00; /* Оранжевая кнопка отправки */
    color: #1a1a1a; /* Темный текст на кнопке */
    border-radius: 20px; /* Менее округлая кнопка */
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    transition: background-color 0.2s;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}

#send-button:hover {
    background-color: #ffcc00; /* Более светлый оранжевый при наведении */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .chat-header {
        padding: 8px 15px;
    }

    .game-title {
        font-size: 1.4em;
    }

    #restart-button.icon-button {
        width: 30px;
        height: 30px;
        font-size: 1.3em;
    }

    .chat-messages {
        padding: 15px;
        /*  Убрано margin-top и margin-bottom, добавляем padding-bottom */
        margin-top: 60px;
      	margin-bottom: 0px;
        padding-bottom: 70px; /* Отступ снизу, чтобы контент не перекрывался полем ввода */

    }

    .message {
        padding: 10px 15px;
        max-width: 85%;
        border-radius: 15px; /* Менее округлые сообщения на мобильных */
    }

    .input-container {
        padding: 10px 15px;
    }

    #user-input {
        padding: 10px;
        font-size: 0.9em;
        border-radius: 15px; /* Менее округлый ввод на мобильных */
    }

    #send-button {
        padding: 10px 20px;
        font-size: 0.9em;
        border-radius: 15px; /* Менее округлая кнопка на мобильных */
    }
}