body {
    font-family: Arial, sans-serif;
	font-size: 14px; /* размер шрифта */
	
    width: 80%; /* или фиксированная ширина, например, 960px */
    max-width: 1600px; /* максимальная ширина */
    margin: 0 auto; /* центрирование по горизонтали */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header span {
    margin-right: 10px;
    font-weight: bold;
}

.header {
    position: fixed;
    top: 0;
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff; /* Или любой другой цвет */
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header a {
    margin: 0 10px;
    text-decoration: none;
    color: #333; /* Цвет ссылок */
    font-weight: bold;
}

body {
    padding-top: 70px; /* Учитываем высоту фиксированного меню */
}

.logout {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

.logout:hover {
    text-decoration: underline;
}

form {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: center; /* Выравнивание текста по центру */
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background-color: #f4f4f4;
    cursor: pointer;
}

td:first-child {
    text-align: center;
}

td:nth-child(2) {
    text-align: left;
}

a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}

.header a {
    margin-right: 10px;
    text-decoration: none;
    color: #007BFF;
}

.header a:hover {
    text-decoration: underline;
}

.logout {
    color: red;
}

.comrade {
    display: flex;
    align-items: center;
}

.comrade-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.comrade-name {
    font-size: 16px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
    object-position: top; /* Смещаем видимую область к верху */

}

table tr:hover {
    background-color: #f0f0f0; /* Светло-серый фон при наведении */
    transition: background-color 0.3s ease; /* Плавный переход */
}

h1 {
    display: inline-block;
    margin-right: 20px;
}

#season-select {
    font-size: 16px;
    padding: 5px;
}

.logo {
    height: 40px; /* Измени размер логотипа при необходимости */
    vertical-align: middle;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode table {
    border-color: #444;
}

.dark-mode th, .dark-mode td {
    background-color: #222;
    border-color: #444;
}

.theme-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.theme-switch input {
    display: none;
}

.slider {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.slider::before {
    content: "";
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 2px;
    transition: transform 0.3s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider::before {
    transform: translateX(20px);
}

.generate-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

.generate-button:hover {
    background-color: #218838;
}

.container {
    display: flex;    
    gap: 20px;
}

textarea {
    width: 50%;
    height: 700px;
    font-size: 12px;
    padding: 10px;
}

.output {
    width: 50%;
    height: 700px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 12px;
    overflow-y: auto;
    background: #f9f9f9;
    white-space: pre-wrap;
}

.button-container {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}


/* Общий стиль темной темы */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Стили для верхней панели */
body.dark-mode .header {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* Стили для ссылок в темной теме */
body.dark-mode .header a {
    color: #ffffff;
}

body.dark-mode .header a:hover {
    color: #bbbbbb;
}

/* Темные стили для select */
body.dark-mode select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

body.dark-mode select option {
    background-color: #333;
    color: #fff;
}

/* Темная тема для полей ввода и вывода */
body.dark-mode textarea,
body.dark-mode .output {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
}

body.dark-mode textarea::placeholder {
    color: #bbb;
}

body.dark-mode .button-container button {
    background-color: #333;
    color: white;
    border: 1px solid #555;
}

body.dark-mode .button-container button:hover {
    background-color: #444;
}

/* Темная тема для полей ввода */
body.dark-mode input[type="text"],
body.dark-mode input[type="password"] {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
}

body.dark-mode input[type="text"]::placeholder,
body.dark-mode input[type="password"]::placeholder {
    color: #bbb;
}

/* Темная тема для кнопки входа */
body.dark-mode button {
    background-color: #444;
    color: white;
    border: 1px solid #666;
    padding: 8px 12px;
    border-radius: 4px;
}

body.dark-mode button:hover {
    background-color: #555;
}

/* Темная тема для чекбоксов */
body.dark-mode input[type="checkbox"] {
    appearance: none; /* Убираем стандартный стиль */
    width: 18px;
    height: 18px;
    background-color: #222; /* Темный фон */
    border: 2px solid #555; /* Цвет рамки */
    border-radius: 4px; /* Закругленные углы */
    position: relative;
    cursor: pointer;
}

body.dark-mode input[type="checkbox"]:checked {
    background-color: #4CAF50; /* Цвет при выборе */
    border-color: #4CAF50;
}

body.dark-mode input[type="checkbox"]::before {
    content: "✔";
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

body.dark-mode input[type="checkbox"]:checked::before {
    display: block;
}

/* Сглаженные углы для таблиц */
table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden; /* Чтобы углы не выходили за границы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая тень */
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Разделение строк */
}

table thead th {
    background-color: #f4f4f4;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

table tbody tr:last-child td {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Сглаженные углы для полей ввода */
input[type="text"], 
input[type="password"], 
textarea, 
select {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ccc;
    transition: 0.3s ease-in-out;
}

input:focus, textarea:focus, select:focus {
    border-color: #4CAF50; /* Зеленая обводка при фокусе */
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Темная тема */
body.dark-mode table {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

body.dark-mode table th {
    background-color: #444;
}

body.dark-mode table td {
    border-bottom: 1px solid #555;
}

body.dark-mode input, 
body.dark-mode textarea, 
body.dark-mode select {
    background-color: #222;
    color: white;
    border: 1px solid #555;
}

body.dark-mode input:focus, 
body.dark-mode textarea:focus, 
body.dark-mode select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}


/* Эффект при наведении на строку таблицы в темной теме */
body.dark-mode table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Светлый оттенок при наведении */
    transition: background-color 0.3s ease-in-out;
}



.player_avatar {
    width: 200px; /* Размер круга */
    height: 200px; 
    border-radius: 50%; /* Делаем круг */
    object-fit: cover; /* Заполняем круг */
    object-position: top; /* Смещаем видимую область к верху */
    border: 3px solid white; /* Опционально */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Опционально */
}


#toggleButton {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #646d79; /* Цвет фона кнопки */
    color: white; /* Цвет текста кнопки */
    border-radius: 5px; /* Закругленные углы */
    width: 100%; /* Ширина кнопки */
    max-width: 100%; /* Максимальная ширина */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

#toggleButton:hover {
    background-color: #080809; /* Цвет фона при наведении */
}

#toggleButton1 {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #646d79; /* Цвет фона кнопки */
    color: white; /* Цвет текста кнопки */
    border-radius: 5px; /* Закругленные углы */
    width: 100%; /* Ширина кнопки */
    max-width: 100%; /* Максимальная ширина */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

#toggleButton1:hover {
    background-color: #080809; /* Цвет фона при наведении */
}


.player_avatar {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.player_avatar::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        top: -100%;
        left: -100%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}


@keyframes shine {
    0% {
        top: -100%;
        left: -100%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}

#photo-collage {
    position: relative;
    width: 100%;
    height: 800px;
    margin: 20px auto;
    overflow: hidden;
    background-color: #000; /* Черный фон */
}

.collage-photo {
    position: absolute;
    width: 15%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 3px 3px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease, opacity 0.6s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.collage-photo:hover {
    z-index: 10;
    transform: scale(2.5) !important; /* Фото увеличивается еще сильнее */
    box-shadow: 10px 10px 30px rgba(255, 255, 255, 0.7);
}