body {
    font-family: 'Minecraft', monospace;
    color: #ffffff;
    display: flex;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden; /* Убираем горизонтальный скролл */
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/KcuoYKl.jpeg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.sidebar {
    width: 250px;
    padding: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-left: 20px;
}

.sidebar .logo {
    margin-bottom: 40px;
    width: 80%;
}

.sidebar .logo img {
    width: 100%;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 2px solid #999999;
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: inherit;
}

.sidebar button:hover {
    background-color: rgba(42, 217, 253, 0.2);
    border-color: #2ad9fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 217, 253, 0.5);
}

.sidebar a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 60px;
    margin-top: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.content-section.active {
    display: block;
}

.download-button {
    background-color: rgba(0, 0, 0, 0.5); /* Более прозрачный фон */
    color: #ffffff;
    border: 2px solid #999999; /* Обводка */
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px; /* Более закругленные края */
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Тень для объема */
    font-family: inherit;
}

.download-button:hover {
    background-color: rgba(42, 217, 253, 0.2);
    border-color: #2ad9fd;
    transform: translateY(-2px); /* Приподнимаем кнопку при наведении */
    box-shadow: 0 4px 8px rgba(42, 217, 253, 0.5);
}

.small-text {
    font-size: 12px;
    color: #999;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 2px solid #999999;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    z-index: 2;
}

.tab.active {
    background-color: rgba(42, 217, 253, 0.2);
    border-bottom: none;
}

.tab:hover {
    background-color: rgba(42, 217, 253, 0.2);
    border-color: #2ad9fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 217, 253, 0.5);
}

.tab-content {
    display: none;
    border: 2px solid #999999;
    padding: 20px;
    border-radius: 0 10px 10px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.tab-content.active {
    display: block;
}

/* Стили для галереи событий */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 10px;
}

.gallery::-webkit-scrollbar {
    width: 8px;
}

.gallery::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.gallery::-webkit-scrollbar-thumb {
    background-color: #2ad9fd;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.gallery-item {
    border: 2px solid #999999;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 5px;
}

.gallery-item p {
    font-size: 14px;
    margin: 0;
    text-align: center;
    color: #ccc;
    width: 100%;
    word-wrap: break-word;
}

/* Стили для списка сооружений */
.buildings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 10px;
}

.buildings-list::-webkit-scrollbar {
    width: 8px;
}

.buildings-list::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.buildings-list::-webkit-scrollbar-thumb {
    background-color: #2ad9fd;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.building-item {
    border: 2px solid #999999;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
}

.building-item-image {
    position: relative;
    flex-shrink: 0;
}

.building-item-image img {
    max-width: 250px;
    max-height: 200px;
    border-radius: 8px;
}

.building-coordinates {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.building-description {
    flex-grow: 1;
}

.building-description h3 {
    margin: 0 0 5px 0;
    color: #2ad9fd;
}

.building-description p {
    font-size: 14px;
    margin: 0;
    color: #ccc;
}

.building-author {
  margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Стили для списка игроков */
.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 10px;
    padding-bottom: 20px;
}

.players-list::-webkit-scrollbar {
    width: 8px;
}

.players-list::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.players-list::-webkit-scrollbar-thumb {
    background-color: #2ad9fd;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.player-item {
    border: 2px solid #999999;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
    flex: 0 0 calc(33.333% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-item:hover {
    transform: translateY(-5px);
}

.player-item img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.player-info {
    margin-top: 10px;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.player-item.active .player-info {
    max-height: 500px; /* Достаточно большое значение, чтобы вместить описание */
}

.player-info p {
    font-size: 14px;
    margin: 0;
    color: #ccc;
}

.player-item.active {
    background-color: rgba(42, 217, 253, 0.2);
}

/* Стили для строки поиска */
.search-bar {
    margin-bottom: 20px;
    /* Настраиваемая ширина */
    width: 65%; 
    min-width: 250px; /* Минимальная ширина */
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 2px solid #999999;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
}

/* ... предыдущие стили ... */

/* Стили для гайдов */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 10px;
  }

.guides-list::-webkit-scrollbar {
    width: 8px;
}

.guides-list::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.guides-list::-webkit-scrollbar-thumb {
    background-color: #2ad9fd;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.guide-item {
    border: 2px solid #999999;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.guide-item:not(.active) {
  cursor: pointer;
}

.guide-item.active {
    background-color: rgba(42, 217, 253, 0.2);
    cursor: default;
}

.guide-item-image {
    position: relative;
    width: 50%;
    align-self: center;
}

.guide-item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.guide-description {
    flex-grow: 1;
}

.guide-description h3 {
    margin: 0 0 5px 0;
    color: #2ad9fd;
    text-align: center;
}

.guide-description p {
    font-size: 14px;
    margin: 0;
    color: #ccc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.guide-item.active .guide-description p {
    max-height: 500px; /* Достаточно для отображения текста */
}

.guide-content {
    max-height: 0;
    overflow: hidden; /* Скрываем контент по умолчанию */
    transition: max-height 0.5s ease-in-out;
  }
  
  .guide-item.active .guide-content {
    max-height: none; /* Убираем ограничение по высоте */
    overflow-y: auto; /* Разрешаем скролл при необходимости */
  }

.guide-content-element {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guide-content-element img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.guide-content-element p {
    font-size: 12px; /* Уменьшаем размер шрифта */
    color: #7c7c7c; /* Делаем цвет немного темнее */
    margin: 5px 0 0 0;
    text-align: center;
}

.guide-content-element p:first-child{
    font-size: 14px;
    color: #ccc;
}

/* Медиа-запрос для адаптации на узких экранах */
@media (max-width: 768px) {
    .guide-item-image {
        width: 100%;
        margin-bottom: 10px;
    }
    .guide-description h3{
        text-align: center;
    }
}

/* Стили для секций "Инструменты" */
.tools-list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-item {
    flex: 0 0 calc(33.333% - 20px);
    border: 2px solid #999999;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tool-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tool-item p {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
    color: #ccc;
}

.tool-item .download-button {
    margin-top: 10px;
    width: calc(100% - 20px);
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    border-bottom: 2px solid #2ad9fd;
    padding-bottom: 10px;
    color: #2ad9fd;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
