/* styles.css */
body {
    margin: 0;
    font-family: Verdana, sans-serif;
}

.site-header {
    background-color: Crimson;
    color: #fff;
    padding: 15px 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Распределяем элементы равномерно */
    gap: 10px;
    padding: 10px;
    flex-wrap: nowrap; /* Запрещаем перенос строк */
}

.nav-list {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.left-nav {
    margin-right: 30px; /* Отступ от логотипа к левому меню */
}

.right-nav {
    margin-left: 30px; /* Отступ от логотипа к правому меню */
}

.nav-item {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 8px 12px; /* Уменьшаем отступы */
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    background-color: LightCoral;
}

.logo img {
    height: 40px; /* Уменьшаем размер логотипа */
    flex-shrink: 0; /* Запрещаем сжатие логотипа */
}

/* Main section */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
    background-color: white; /* Белый фон для всего блока */
}

.main-left {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px; /* Минимальная ширина блока */
}

.game-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    pointer-events: none;
}

.main-right {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: flex-start; /* Выравнивание текста вверх */
    min-width: 300px; /* Минимальная ширина блока */
}

/* Контейнер для текста */
.main-text-container {
    text-align: left;
    margin-left: 20px; /* Небольшой отступ от картинки */
    background-color: white; /* Белый фон для текста */
    padding: 20px; /* Отступы вокруг текста */
    border-radius: 10px; /* Скругленные углы */
}

.main-header {
    font-size: 32px;
    margin-bottom: 15px; /* Отступ между заголовком и текстом */
}

.main-text {
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}

/* Контакты */
.contacts {
    background-color: white; /* Белый фон для блока контактов */
    padding: 50px;
    text-align: center;
}

.contacts-header {
    font-size: 28px;
    margin-bottom: 15px;
}

.contacts-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 18px;
}

.contacts-info span {
    display: block;
    color: #333;
    background-color: white; /* Белый фон для текста */
    padding: 10px; /* Отступы вокруг текста */
    border-radius: 5px; /* Скругленные углы */
}

.contacts-info a {
    color: Crimson;
    text-decoration: none;
}

.contacts-info a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.registration-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    font-size: 24px;
    color: Crimson;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: Crimson;
}

.submit-btn {
    margin-top: 20px;
}

.submit-btn input {
    width: 100%;
    padding: 12px;
    background-color: Crimson;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn input:hover {
    background-color: LightCoral;
}

.captcha {
    margin-bottom: 20px;
}

p {
    font-size: 14px;
    color: #555;
}

p a {
    color: Crimson;
    text-decoration: none;
    font-weight: 500;
}

p a:hover {
    text-decoration: underline;
}
.teams-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
    justify-content: space-between;
}
.team {
    padding: 10px;
    margin: 10px;
    width: 22%;
    text-align: center;
}
.team h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.team h3 img {
    height: 20px;
    margin-right: 10px;
    border: 2px solid black; /* Черная обводка вокруг флага */
    border-radius: 2px; /* Скругляем углы обводки */
}
.players {
    list-style-type: none;
    padding-left: 0;
}
.players li {
    margin: 5px 0;
}
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}
th {
    background-color: #f2f2f2;
}
.flag {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}
.scale {
    transition: 1s; 
}
.scale:hover {
    transform: scale(1.2);
}

 /* Стили для звездочки */
 .star {
    font-size: 1.2em; /* Размер звездочки */
    color: gold; /* Золотой цвет */
    margin-right: 5px; /* Отступ от названия команды */
}

/* Стили для подсветки первых четырех команд */
.highlight {
    background-color: #f8d7da; /* Светло-красный фон */
    color: #721c24; /* Темный текст */
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: crimson;
    color: white;
}

.team {
    cursor: pointer;
    color: #1a73e8;
    text-decoration: none;
    position: relative;
}

.team:hover {
    text-decoration: underline;
}

.team-info {
    display: none;
    position: absolute;
    top: -100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    white-space: nowrap;
}

.team:hover .team-info {
    display: block;
}

.team-info ul {
    padding-left: 20px;
    margin: 0;
}

.team-info li {
    margin-bottom: 5px;
}

.flag {
    margin-left: 5px;
}
/* Responsive styles */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-header {
        font-size: 20px;
    }

    .main-text {
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }
    .game-image {
        display: none; /* Скрыть картинку */
    }

    .contacts {
        padding: 20px; /* Уменьшить отступы */
    }

    .contacts-info {
        flex-direction: column; /* Разместить контакты в колонку */
        gap: 10px; /* Уменьшить расстояние между контактами */
    }

    .contacts-info span {
        text-align: center; /* Выравнивание текста по центру */
    }
    .navbar {
        gap: 5px; /* Уменьшаем промежутки между секциями */
    }

    .nav-item {
        font-size: 14px; /* Уменьшаем размер текста */
        padding: 6px 8px; /* Уменьшаем внутренние отступы */
    }

    .logo img {
        height: 35px; /* Ещё уменьшаем логотип */
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 14px;
        padding: 8px 10px;
    }

    .main-header {
        font-size: 18px;
    }

    .main-text {
        font-size: 12px;
    }

    table {
        font-size: 10px;
    }

    th, td {
        padding: 6px;
    }
    .contacts-info span {
        font-size: 14px; /* Уменьшить размер шрифта для мобильных устройств */
    }

    .contacts-header {
        font-size: 20px; /* Уменьшить размер заголовка */
    }
    .game-image {
        display: none; /* Скрыть картинку */
    }
    .navbar {
        gap: 3px;
        padding: 5px;
    }

    .nav-item {
        font-size: 12px;
        padding: 4px 6px;
    }

    .logo img {
        height: 30px;
    }
}