body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #000000;
    color: #ffffff;
    text-align: center; 
}

/* --- Стили для самого хедера --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #33333352;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: top 0.3s ease-in-out;
    /* Очищенные Flexbox стили */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
}

#main-header.header-hidden {
    top: -60px;
}

/* Этот блок стилей больше не используется в вашем HTML, но я его оставил */
#main-header nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    font-family: sans-serif;
}

/* --- Стили для кнопки YouTube --- */
.youtube-button {
    background-color: #FF0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    position: relative;
    z-index: 10;
}
.youtube-button:hover {
    background-color: #c40e0e;
}

/* --- Стили для всплывающего окна (модала) --- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Добавил display:flex, чтобы justify-content/align-items работали */
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #000;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.close-button {
    color: #fff;
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Стили для кнопки "Наверх" --- */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    border: none;
    outline: none;
    background-color: #555;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    transition: background-color 0.3s, opacity 0.4s;
}

#scrollTopBtn:hover {
    background-color: #333;
}

/* --- Стили для переключателя языка --- */
.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    display: inline-block;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background-color: white;
    color: #333;
    font-weight: bold;
    cursor: default;
}