body {		
    padding-bottom: 100px; 
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(270deg, #2a3d5a, #1b263b, #0f1a2a, #000000);
    background-size: 500% 500%;
    animation: bgMove 20s infinite alternate ease-in-out;
    color: #fff;
    overflow-x: hidden; 
    height: 100%;
    width: 100%;
}

/* Более выраженное движение градиента */
@keyframes bgMove {
    0% { background-position: 0% 50%; } 
    50% { background-position: 75% 50%; } /* Размах движения увеличен */
    100% { background-position: 100% 50%; }
}


		/*Убрать полосу прокрутки для всей страницы*/
::-webkit-scrollbar {
  width: 0;
}

header {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    background-color: #1c273b; 
    z-index: 1000; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    height: 80px; 
}

header .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 10px 20px; 
}

header img {
    height: 60px; 
    width: auto; 
}


body {
    margin-top: 80px; 
}

        .content {
            padding: 20px;
        }
        .tabs {
            display: flex;
            gap: 20px;
            border-bottom: 2px solid #333;
        }
        .tabs button {
            background: none;
            border: none;
            color: #fff;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 16px;
        }
        .tabs button.active {
            border-bottom: 2px solid #ff5722;
            color: #ff5722;
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Увеличенные карточки */
            gap: 20px;
            margin-top: 20px;
        }
    .card {
    position: relative;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white; /* Оставляем текст четким */
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 38, 59, 0.7); /* Уменьшили непрозрачность */
    border-radius: 8px;
    z-index: -1;
}


        .card:hover {
            background-color: #415a77; 
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
			opacity: 0.7;
        }
        .card a {
            text-decoration: none;
            color: inherit;
        }
        .card p {
            font-size: 18px;
            font-weight: bold;
            margin: 10px 0;
            text-transform: uppercase; 
            line-height: 1.5;
        }
		
		.card i {
    font-size: 60px;
    margin-bottom: 10px;
    color: #e3dfd9; 
}

  .footer {
    position: fixed;
    height: 110px;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(27, 38, 59, 0.9); /* Уменьшили прозрачность */
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', Arial, sans-serif;
}


.controls {
    display: flex;
    align-items: flex-start; /* Прижимаем кнопки к верху */
    gap: 20px;
    color: #fff;
    margin-top: 20px; /* Отступ сверху */
}

.controls button {
    background-color: #0e1b2b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0; /* Убираем лишние отступы */
}

.controls button:hover {
    background-color: #0e1b2b;
}

.station-info {
    display: flex;
    align-items: flex-start; /* Прижимаем текст и иконки к верху */
    gap: 10px;
    margin-top: 5px; /* Отступ сверху */
}

.station-info i {
    font-size: 24px;
    color: #e3e0d9;
}

.station-info span {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase; 
    color: #fff;
    margin: 0; /* Убираем лишние отступы */
}




		
.top-panel {
    background: #39464e;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    padding: 0;
    box-shadow: 2px 0 5px 0 rgba(0, 0, 0, 0.16), 2px 0 10px 0 rgba(0, 0, 0, 0.12);
    transition: left 400ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    z-index: 999;
    overflow-y: auto;
}


.top-panel a {
    color: #dae8f7;
    text-decoration: none;
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    padding: 15px 20px;
    margin: 5px 0;
    border-bottom: 1px solid #4a5b67;
    transition: background 300ms, color 300ms;
}

.top-panel a:hover {
    background: #4a5b67;
    color: #fff;
}


header {
    z-index: 999; 
}



label.btn {
    display: block;
    position: fixed;
    left: 0;
    top: 4%;
    transform: translateY(-50%) rotate(-90deg);
    cursor: pointer;
    background: rgba(250, 43, 2, 0.5);
    width: 50px;
    border-radius: 0 0 15px 15px;
    padding: 8px 5px;
    color: #FFF;
    line-height: 30px;
    font-size: 18px;
    text-align: center;
    transition: all 400ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    box-shadow: 2px 0 5px 0 rgba(0, 0, 0, 0.16), 2px 0 10px 0 rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

label.btn:after {
    content: '☰';
    font: bold 25px/1 FontAwesome;
}


.open:checked~.top-panel {
    left: 0;
}


.open:checked~.container {
    margin-left: 250px;
}


.open:checked+label.btn {
    left: 250px;
}


label.btn:hover {
    background: rgba(250, 43, 2, 1);
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}


.container {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    transition: margin 400ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
    padding: 5em 3em;
}


.button+.button {
    margin-top: 1px;
}


#volume-control {
    width: 50%;
    height: 8px;
	 margin-top: 35px; /* Отступ сверху */
    -webkit-appearance: none; 
    background: #ddd;
    border-radius: 5px; 
    outline: none; 
    margin-right: 70px; 
    transition: transform 0.3s ease, background 0.3s ease; 
}


#volume-control:hover {
    transform: scale(1.1); 
    background: #ccc; 
}

/* При нажатии */
#volume-control:active {
    background: #aaa;
}


/* Стиль для ползунка (бегунка) */
#volume-control::-webkit-slider-thumb {
    -webkit-appearance: none; /* Убираем стандартный стиль в WebKit */
    appearance: none;
    width: 20px; /* Ширина бегунка */
    height: 20px; /* Высота бегунка */
    background: #0e1b2b; /* Цвет бегунка */
    border-radius: 50%; /* Делаем его круглым */
    cursor: pointer; /* Курсор в виде руки */
    transition: background 0.3s ease, transform 0.2s ease; /* Плавный переход цвета и масштаб */
}

/* Бегунок при наведении */
#volume-control::-webkit-slider-thumb:hover {
    background: #0056b3; /* Цвет при наведении */
    transform: scale(1.2); /* Увеличение размера при наведении */
}

/* Бегунок при активации (клик или фокус) */
#volume-control::-webkit-slider-thumb:active {
    background: #003b7a; /* Ещё более тёмный цвет при нажатии */
    transform: scale(1.3); /* Ещё большее увеличение */
}

/* Для Firefox */
#volume-control::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0e1b2b;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#volume-control::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.2);
}

#volume-control::-moz-range-thumb:active {
    background: #003b7a;
    transform: scale(1.3);
}

/* Для IE */
#volume-control::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #0e1b2b;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#volume-control::-ms-thumb:hover {
    background: #0056b3;
    
}

#volume-control::-ms-thumb:active {
    background: #003b7a;
    
}

.controls button {
    width: 100px; /* Фиксированная ширина кнопки */
    height: 40px; /* Фиксированная высота кнопки */
    text-align: center;
    background-color: #0e1b2b;
    color: #fff;
    border: none;
    padding: 0; /* Убираем внутренние отступы */
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controls button:hover {
    transform: scale(1.1); /* Увеличение размера кнопки */
    background-color: #415a77; /* Более светлый цвет */
}

.controls button:active {
    background-color: #1b263b; /* Ещё более тёмный цвет при нажатии */
    transform: scale(1.1); /* Сохраняем размер, чтобы не было скачков */
}



@media (max-width: 768px) { /* На экранах с шириной 768px и меньше */
    .footer {
       
        align-items: flex-start; /* Прижимаем элементы к левому краю */
        padding: 5px; /* Сокращённые отступы */
    }

    .controls {
        display: flex; /* Обеспечиваем флекс-контейнер */
        justify-content: flex-start; /* Прижимаем кнопки к левому краю */
        align-items: center; /* Выравниваем по центру вертикали */
        flex-wrap: nowrap; /* Запрещаем перенос кнопок */
        gap: 10px; /* Оставляем равномерный зазор между кнопками */
        width: 100%; /* Кнопки занимают всю ширину родителя */
    }

    .controls button {
        padding: 10px 20px; /* Уменьшаем внутренние отступы */
        font-size: 14px; /* Уменьшаем размер текста на кнопках */
        flex: 0; /* Запрещаем кнопкам растягиваться */
    }

    .station-info {
        justify-content: center; /* Центрируем информацию о станции */
        margin-bottom: 5px; /* Уменьшаем отступ */
    }

    .station-info span {
        font-size: clamp(14px, 2vw, 24px); /* Минимум 14px, максимум 24px */
        line-height: 1.2; /* Межстрочное расстояние */
    }

    #volume-control {
        width: 100%; /* Растягиваем ползунок */
        margin-top: 35px; /* Добавляем отступ сверху */
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}


/* Кнопка выпадающего списка */
.dropbtn {
    background-color: #0e1b2b; /* Начальный цвет для fallback */
    color: white;
    padding: 8px 10px;
    font-size: 1.6vh;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 6px; /* Закруглённые углы */
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    width: 250px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Эффект металла */
    background: linear-gradient(135deg, 
        #0e1b2b 25%, 
        #1c3b4d 50%, 
        #2d5674 75%, 
        #0e1b2b);
    background-size: 200% 200%;
    animation: metallic-shine 3s infinite;

    /* Объёмный эффект */
    box-shadow: 
        0px 4px 6px rgba(0, 0, 0, 0.3),  /* Тень снаружи */
        inset 0px -3px 5px rgba(255, 255, 255, 0.1), /* Свет сверху */
        inset 0px 3px 5px rgba(0, 0, 0, 0.3); /* Тень внутри */
    transition: all 0.2s ease-in-out; /* Плавный переход при наведении */
}

/* Анимация металлического перелива */
@keyframes metallic-shine {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Эффект при наведении */
.dropbtn:hover {
    box-shadow: 
        0px 6px 8px rgba(0, 0, 0, 0.5),  /* Увеличиваем внешнюю тень */
        inset 0px -4px 6px rgba(255, 255, 255, 0.2), /* Усиливаем свет сверху */
        inset 0px 4px 6px rgba(0, 0, 0, 0.4); /* Усиливаем внутреннюю тень */
    transform: translateY(-2px); /* Кнопка как бы поднимается */
}

/* Скрытие анимации при нажатии */
.dropbtn.clicked {
    animation: none; /* Убираем эффект перелива */
    box-shadow: 
        0px 2px 4px rgba(0, 0, 0, 0.2), /* Уменьшаем внешний объём */
        inset 0px -2px 3px rgba(255, 255, 255, 0.1), 
        inset 0px 2px 3px rgba(0, 0, 0, 0.2);
}

/* Стили для выпадающего списка */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #485973;
    width: 250px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    box-sizing: border-box;
}

.dropdown-content a {
    color: #e7e3e1;
    padding: 8px 10px;
    text-decoration: none;
    display: block;
    font-size: 1.6vh;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    background-color: #485973;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content a:hover {
    background-color: #E0E0E0;
    color: black;
}

.dropdown-content.show {
    display: block;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .dropbtn {
        width: 180px; /* Уменьшаем ширину кнопки на узких экранах */
        font-size: 1.4vh; /* Уменьшаем размер шрифта для лучшего отображения */
        padding: 6px 8px; /* Корректируем отступы */
    }

    .dropdown-content {
        width: 180px; /* Уменьшаем ширину выпадающего меню */
    }
}

