/* (C) Alexeyk.com 2025. Distributed under GNU GPL v2 license. */

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Изменяем выравнивание по вертикали */
    min-height: 100vh;       /* Устанавливаем минимальную высоту */
    padding-top: 20px;       /* Добавляем отступ сверху */
    box-sizing: border-box;  /* Учитываем внутренние отступы */
}

#app {
    width: 80%;
    max-width: 800px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.screen-mission p {
    margin-bottom: 10px;
}

/* Общие стили для элементов списка кандидатов */
.screen-candidates label {
    margin-bottom: 20px; /* Добавляет отступ снизу */
}
.screen-candidates li {
    margin-bottom: 20px; /* Отступ между кандидатами */
    padding-bottom: 10px; /* Внутренний отступ снизу */
    border-bottom: 1px solid #ddd; /* Разделительная линия */
    display: flex; /* Используем Flexbox для лучшей компоновки */
    align-items: flex-start; /* Выровнять элементы по верхнему краю */
}

/* Контейнеры для информации о кандидате и кнопок */
.candidate-item {
    display: flex;
    justify-content: space-between; /* Разместить элементы слева и справа */
    align-items: flex-start; /* Выровнять элементы по верхнему краю */
    width: 100%;
}

/* Блок с информацией о кандидате */
.candidate-info {
    flex-grow: 1; /* Расширяется, чтобы занять оставшееся пространство */
    margin-right: 10px; /* Отступ справа от изображения */
}

/* Изображение кандидата */
.small-image {
    width: 120px; /* Установим фиксированную ширину */
    height: 120px; /* Установим фиксированную высоту */
    object-fit: cover; /* Масштабировать изображение */
    margin-right: 10px; /* Отступ справа от изображения */
    float: left;
    border: 1px solid #ccc; /* Тонкая рамка #cccccc #007bff #ffa900 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкий эффект тени */
}

/* Контейнер для кнопок */
.buttons {
    display: flex; /* Использовать Flexbox для кнопок */
    flex-direction: column; /* Расположить кнопки одна под другой */
    gap: 10px; /* Промежуток между кнопками */
}

/* Кнопки */
.buttons button {
    width: 140px; /* Ширина кнопок */
    padding: 8px; /* Небольшой отступ внутри кнопок */
}

.chat {
    border: 1px solid #ccc;
    padding: 10px;
    height: 200px;
    overflow-y: scroll;
}

.chat div {
    margin-bottom: 10px;
}

.ai-message {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
}

input[type="text"] {
    width: 70%;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
}

.screen-result p {
    text-align: center;
    margin-bottom: 20px;
    max-height: 90vh; /* Ограничиваем общую высоту экрана результата */
    overflow-y: auto; /* Включаем вертикальную прокрутку при необходимости */
} 

.small-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin-right: 10px;
}

.large-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    margin-bottom: 10px;
}

.mission-comparison {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.expected-results, .actual-results {
    flex-basis: 45%; /* Задаём ширину блоков */
    border: 1px solid #ddd;
    padding: 10px;
}

.expected-results h2, .actual-results h2 {
    margin-bottom: 10px;
}

.screen-candidates li {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd; /* Добавляем линию-разделитель */
    padding-bottom: 10px;
}

/* Родительское модальное окно */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 80%;
    /*max-width: 600px;*/
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Содержимое модального окна */
.modal-content {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: black;
    font-size: 40px;
    cursor: pointer;
}

.medium-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
}
