/* Сброс стилей и базовые настройки */
#loading-fix {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #dcddd4;
  z-index: 99999;
  opacity: 1;
  transition: opacity 2.0s linear; /* Плавное исчезновение */
user-select: none;
  pointer-events: none;
}
.close-button {width:0;height: 0;}
#loading-fix.hidden {
  opacity: 0; /* Исчезновение через анимацию */
}

#loading-fix.hidden-finished {
  display: none; /* Полное скрытие после завершения анимации */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Cormorant Garamond', serif;
    background: url('/templates/images/Alpha_build_World.jpg') no-repeat center center;
    background-size: cover;
    color: rgb(37, 34, 28);
    overflow: hidden; /* Предотвращает двойную прокрутку */
}

/* Flexbox на body для вертикальной раскладки */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header-info ol {
    padding-left: 20px;
    margin-top: 10px;
}

.header-info li {
    margin-bottom: 8px;
    font-size: 1em;
font-family: Arial, sans-serif;
}

/* Фиксированная верхняя навигация */
.topmenu {
    display: flex; /* Размещаем элементы в одну линию */
    justify-content: space-between; /* Равномерное распределение */
    width: 80%;
    padding: 0;
position:absolute;
height:19px;
top: 0; /* Закрепляем сверху */
    left: 0;
    right: 0; /* Гарантируем центрирование */
    margin: 0 auto; /* Центрируем блок по горизонтали */
gap: 20%;
z-index:10;
}
.topmenu a {transition: all 0.5s ease;border-radius:2px;font-size: .85em; padding-bottom:1px;line-height: 1rem;
    flex: 1; /* Каждый блок занимает равное пространство */
    text-align: center; /* Текст по центру */
    text-decoration: none; /* Убираем подчеркивание */
    box-sizing: border-box; color:#fcfcfc; font-weight:bold;border:1px solid transparent;

}
.topmenu a:hover {border:1px solid #8e7747;}
#menu-item-left {background-color:rgba(137, 143, 90, 0.98);}
.topmenu .menu-item-right {background-color:rgba(209, 149, 68, 0.98);}
.topmenu .menu-item-right:hover {background-color:rgba(209, 149, 68, 0.65);transition: all 0.5s ease;}
#menu-item-left:hover {transition: all 0.5s ease;
    background-color: rgba(137, 143, 90, 0.65);
}


#menu-item-left:hover {
    transition: all 0.5s ease;
    background-color: rgba(137, 143, 90, 0.65);
}

/* Основной контент */
main {
    flex: 1; /* Позволяет main занимать доступное пространство */
    width: 90%;
    max-width: 1200px;
    margin: 60px auto 70px; /* Верхний отступ увеличен для фиксированной навигации, нижний для футера */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Прокрутка основного контента */
font-family: Arial, sans-serif;
}

/* Заголовок страницы */
.page-header {
    width: 80%;
    margin-bottom: 20px;
margin: 0 auto;
position:relative;
top:5%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-info {
font-family: Arial, sans-serif;
}

/* Сообщение от разработчика */
.developer-message {
    margin-bottom: 30px;
font-family: Arial, sans-serif;
float: right;
  text-align: right;
}

.developer-message h2 {
    margin-bottom: 10px;
}

.developer-message p {
    font-size: 1em;
    line-height: 1.5;
}

/* Таблица данных */
.data-table {
    overflow-x: auto;
}

.data-table h2 {
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #ccc;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

#loading-indicator {
    text-align: center;
    padding: 15px 0;
}

/* Фиксированный футер */
.footer {
    background: linear-gradient(to right, #25221c 65%, #dcddd4 40%);
    font-family: 'Russo One', sans-serif;
    color: #dcddd4;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer a {
    font-weight: 600;
    text-decoration: none;
    color: #dcddd4;
}

.footer a:hover {
    text-decoration: underline;
}

.logolink {
    background: url('/templates/images/umlogo.png') no-repeat center center;
    width: 50px;
    height: 32px;
    background-size: contain;
    position: absolute;
    left: 70%;
    top: 2px;
    display: block;
    cursor: pointer;
}
/* Скрыть вторую колонку в заголовке */
table th:nth-child(2),table th:nth-child(1) {
    display: none;
}

/* Скрыть вторую колонку в теле таблицы */
table td:nth-child(2),table td:nth-child(1) {
    display: none;
}
