body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    font-family: 'neuehaas', Arial, sans-serif;
    padding: 0;
    font-weight: 100;
    font-size: 14px;
    background-color: rgb(255, 255, 255);
}

.vnimanie {
    color: #444746;
}

.disabled-button {
    opacity: 0.4;
    cursor: not-allowed;
}


header {
    background-color: white;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center; /* Выравнивание по вертикали */
    height: 100px; /* Высота блока */
    text-align: center; /* Выравнивание текста по центру */
    width: 100%;
    top: 0;
    z-index: 1;

}

#mainContent {
    display: flex;
    flex-direction: column;
    flex: 1; /* занимает всё свободное место */
    min-height: 100vh;
    height: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* чтобы контент в центре можно было */
}

#toast-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999; /* Очень высокий z-index */
    pointer-events: none; /* Чтобы клики проходили сквозь контейнер */
}

.toast {
    background-color: #000000;
    color: #fff;
    padding: 10px 20px;
    font-family: "Courier New", Courier, monospace;
    border-radius: 5px;
    width: max-content; /* Ширина зависит от содержимого */
    max-width: 100%; /* Ограничение максимальной ширины */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    position: relative;
    margin: 0 auto 10px; /* Центрирование и отступ между уведомлениями */
    white-space: nowrap; /* Запрет переноса текста */
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    z-index: 9999;
}

.prefooter {
    margin-top: 200px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
    font-weight: 900;
}

.prefooter ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Расстояние между ссылками */
    padding: 0;
    margin: 0;
}

.prefooter li {
    font-size: 13px;
    font-weight: 900;
}

.prefooter a {
    color: rgb(189, 189, 189);
    text-decoration: none;
    font-size: 13px;
}



footer {
    font-size: 11px;
    font-weight: 900;
    color: rgb(210,210,210);
    width: 100%;
    text-align: center;
    margin-top: auto;
    margin-bottom: 30px;
}

.container {
    max-width: 1400px; /* Ограничиваем максимальную ширину */
    width: 100%; /* Контейнер занимает всю ширину */
    margin: 0 auto; /* Центрируем контейнер */
    padding: 0 20px; /* Добавляем отступы по бокам */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

.content {
    margin-top: 150px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    color: rgb(204, 204, 204);
}
.content ul {
    margin-right: 35px;
    display: flex;
    justify-content: center;
}

.content li {
    text-decoration: none;
    margin: 0 45px;
    display: inline-block; 
}
.content p {
    line-height: 1.5; 
    margin: 0; 
}

.contentbutton {
    margin-top: 15px;
    font-size: 11px;
    font-weight: 900;
    padding: 18px 35px;
    background-color: rgb(51,51,51);
    color: #e0dfdf;
    border: none;
    cursor: pointer;
}

.content2 {
    margin-top: 200px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    color: rgb(201, 201, 201);

}
.content2 p {
    line-height: 1.5; /* Уменьшаем расстояние между строками */
    margin: 0; /* Убираем отступы у параграфов */
}


.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
    line-height: 1.2;
}

.timer-hours-min {
    font-weight: bold;
    font-size: 140px;
    margin-bottom: 5px;
}

.timer-sec {
    font-weight: bold;
    font-size: 140px;
    margin-top: 5px;
}

.timer-label {
    font-size: 12px;
    text-transform: uppercase;
}

.queue-block {
    margin-top: 200px; /* Отступ сверху, как у content */
    text-align: center;
    font-size: 16px;
    color: rgb(204, 204, 204);
}
.interval {
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    width: 300px;

}

.leaderboard {
    color: rgb(247, 243, 122) !important;
    text-shadow:
      -1px -1px 0 black,
       1px -1px 0 black,
      -1px  1px 0 black,
       1px  1px 0 black;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    margin-top: 100px;
}


.queue-block2 {
    justify-content: center;
    text-align: center;
    color: #444746;
    width: 650px;
}

.queue-block p {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    color: rgb(204, 204, 204);
}

.queue-block ul {
    margin-right: 35px;
    display: flex;
    justify-content: center;
}

.queue-block li {
    text-decoration: none;
    margin: 0 45px;
    display: inline-block; 
}

/* Стили для выбора региона */
.region-selection {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    margin-top: 70px;
}

.regionfooter {
    position: fixed;
    bottom: 10%;
    font-size: 10px;
    font-weight: 700;
}

.regionfooterun {
    position: fixed;
    bottom: 10%;
    font-size: 10px;
    font-weight: 700;
}

.region-selection p{
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.region-images {
    display: flex;
    gap: 80px;
    margin-top: 5%;
}

.regionimgunavailable {
    display: flex;
    gap: 20px;
    margin-bottom: 5%;
}

.region-imageun {
    max-width: 100px; /* Настройте под свои изображения */
    max-height: 70px;
    width: 100%;
    height: auto;
}

.region-image {
    max-width: 200px; /* Настройте под свои изображения */
    width: 100%;
    height: auto;
    cursor: pointer;
}

.region-unavailable {
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    margin-top: 67px;
}

.region-unavailable p {
    margin-bottom: 3%;
    font-size: 16px;
    font-weight: 700;
}

.back-button {
    background-color: transparent;
    color: rgb(182, 182, 182);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

/* Основное содержимое изначально скрыто */
#mainContent {
    display: none;
}

#video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1000;
    object-fit: cover;
    opacity: 0.5; /* Можно настроить прозрачность */
}

/* Делаем основной контент поверх видео */
#mainContent, 
.region-selection, 
.region-unavailable {
    position: relative;
    z-index: 1;
}

.timer-chat-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10%;
    justify-content: space-between;
    align-items: center;
}

.timer-chat-wrapper > div {
    flex: 1 1 0;
}



@media (max-width: 768px) {
    .region-images {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .content p {
        margin: 0px 50px
    }
    
    .regionimgunavailable {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .region-selection {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        text-align: center;
        margin-top: 10%;
    }

    .region-image {
        max-width: 140px; /* Настройте под свои изображения */
        width: 100%;
        height: auto;
        cursor: pointer;
    }

    .region-unavailable {
        width: 100%;
        height: 100%;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        text-align: center;
        margin-top: 10%;
    }

    .region-unavailable p {
        padding: 30px;
        padding-top: 0px;
        margin-bottom: 3%;
        font-size: 14px;
        font-weight: 700;
    }

    .region-unavailable h2 {
        font-size: 16px;
        padding: 30px;
        padding-bottom: 0px;
    }

    .regionimgunavailable {
        display: flex;
        gap: 20px;
        margin-bottom: 5%;
    }

    #video-background {
        display: none;
    }
    body {
        background: url('{{ url_for("static", filename="img/background-mobile.jpg") }}') no-repeat center center fixed;
        background-size: cover;
    }

    .timer-hours-min {
        font-size: 90px; /* Уменьшаем размер шрифта */
        display: flex;
        gap: 10px;
    }
    
    .timer-sec {
        font-size: 90px; /* Уменьшаем размер шрифта */
    }
    
    .timer-label {
        font-size: 10px;
    }
    
    .queue-block {
        margin-top: 100px; /* Уменьшаем отступ */
    }
    
    .interval {
        width: 220px; /* Уменьшаем ширину */
    }
    
    .queue-block2 {
        width: 100%; /* Занимает всю ширину */
        justify-content: center;
    }

    
    .queue-block p {
        font-size: 12px;
    }
    
    .queue-block ul {
        margin-right: 0;
        flex-wrap: wrap; /* Переносим элементы на несколько строк */
    }
    
    .queue-block li {
        margin: 0 15px 10px; /* Уменьшаем отступы и добавляем снизу */
    }

    footer {
        margin-bottom: 50px;
        font-size: 11px;
        font-weight: 900;
        color: rgb(210,210,210);
        width: 100%;
        text-align: center;
    }


}

    