/* TournamentTable.css */
.page-content {
    display: none;
    margin-bottom: 30px;
    background: #333;
    padding: 20px;
    border-radius: 10px;
}

.page-content.active {
    display: block;
}

.group-button,
.stage-button {
	align-items: center;
    display: block;
    width: 20%;
    margin: 5px 0;
    text-align: center;
}

.group-filters,
.stage-filters {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .group-filters,
    .stage-filters {
        gap: 8px;
        justify-content: center; /* Добавлено центрирование */
    }
    
    .group-button, 
    .stage-button {
        flex: 0 1 auto; /* Изменено с 1 1 45% */
        min-width: 120px; /* Минимальная ширина для удобства */
    }
}
/* Активация при выборе группы Б */
.stage-filters.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.stage-filters button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: margin: 5px 0 30px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

	.stage-filters button.active {
    background-color: #ff6600; /* Активная кнопка */
	}

	.stage-filters button:hover {
    background-color: #ff6600; /* Цвет при наведении */
	}

/* Общий стиль для всех кнопок */
.group-button, 
.stage-button {
    background: #666;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.group-button.active, 
.stage-button.active {
    background: #ff6600;
}

.group-button:hover, 
.stage-button:hover {
    background: #ff5500;
}



@media (max-width: 768px) {
    .page-content {
        margin-bottom: 20px;
        padding: 10px;
    }
}

.standings-title {
    font-size: 2em;
    color: #fff;
    margin-bottom: 20px;
	text-align: center;
}

.table-wrapper {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #444;
    color: #fff;
}

    .standings-table th, .standings-table td {
        padding: 12px; /* Увеличиваем отступы */
        border: 1px solid #555;
        font-size: 1.1em; /* Увеличиваем размер шрифта */
    }

    .standings-table th {
        background-color: #555;
        font-weight: bold;
        font-size: 1.2em; /* Увеличиваем размер шрифта для заголовков */
    }

        .standings-table th span {
            cursor: pointer;
            transition: color 0.3s ease;
        }

            .standings-table th span:hover {
                color: #ff6600; /* Цвет при наведении */
            }

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo-small {
    width: 40px; /* Увеличиваем размер логотипа */
    height: 40px; /* Увеличиваем размер логотипа */
}

.team-name {
    font-weight: bold;
    font-size: 1.1em; /* Увеличиваем размер шрифта для названий команд */
}

.glossary-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.glossary-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    text-align: left;
}

    .glossary-content h2 {
        font-size: 1.5em;
        color: #fff;
        margin-bottom: 20px;
    }

    .glossary-content ul {
        list-style: none;
        padding: 0;
    }

        .glossary-content ul li {
            font-size: 1.1em;
            color: #fff;
            margin-bottom: 10px;
        }

.close-button {
    background-color: rgba(88, 214, 217, 0.8);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .close-button:hover {
        background-color: #e65c00; /* Цвет при наведении */
    }
/* Добавьте стили для второй таблицы, если нужно */
/* Стили для второй таблицы группы Б */
.group-b-stage2 {
    margin-top: 40px; /* Отступ сверху для разделения таблиц */
    display: none; /* По умолчанию скрыта */
}

.group-b-stage2.active {
    display: block; /* Показывать, если активна */
}
/* Стили для подгрупп */
.subgroup-header {
    background-color: #2c2c2c !important;
    border-top: 2px solid #ff6600;
    display: table-row !important; /* Важное добавление */
}

.subgroup-title {
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 12px !important;
    letter-spacing: 1px;
}

tr[data-group="B"] {
    transition: background 0.2s;
}

tr[data-group="B"]:hover {
    background-color: #3a3a3a;
}