html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}


       /* ------- */

        .play-pause-container {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }

        #playPauseBtn {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border: 7px solid #ece5e4;
            background-color: rgba(255, 255, 255, 0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            outline: none;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            position: relative;
        }

        #playPauseBtn:hover {
            transform: scale(1.05);
            background-color: rgba(255, 255, 255, 0.4);
        }

        /* Отрисовка символа Play (треугольник) */
        .icon-play {
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 40px 0 40px 70px;
            border-color: transparent transparent transparent #ece5e4;
            margin-left: 15px; /* Смещение для центровки визуально */
        }

        /* Отрисовка символа Pause (две полоски) */
        .icon-pause {
            display: none;
            width: 60px;
            height: 80px;
            justify-content: space-between;
        }

        .icon-pause::before, .icon-pause::after {
            content: '';
            width: 20px;
            height: 80px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 5px;
        }

        /* Класс, который будет добавляться при проигрывании */
        #playPauseBtn.playing .icon-play {
            display: none;
        }

        #playPauseBtn.playing .icon-pause {
            display: flex;
        }

        #playPauseBtn.playing {
            background-color: rgba(46, 72, 157, 0.1);
        }


.play-pause-container {
    position: relative;
    z-index: 1;
}

.music-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 100px;
    background: conic-gradient(from 0deg, #ff0055, #0099ff, #00ff88, #ffcc00, #ff0055);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;

}
.music-glow.active {
    opacity: 0.8;
}





.vizualiz {
position: fixed; /* Фиксируем элемент относительно окна браузера */
z-index: -1; /* Устанавливаем высокий z-index, чтобы элемент был поверх других */	
}		
	
/* Стили для модального окна */
.modal {
display: none; /* Скрываем модальное окно по умолчанию */
position: fixed; /* Фиксированное позиционирование */
z-index: 10; /* Поверх всего остального контента */
left: 0;
top: 0;
width: 100%; /* На всю ширину */
height: 100%; /* На всю высоту */
overflow: auto; /* Включаем прокрутку, если контент не помещается */
background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон */
}

/* Контент модального окна */
.modal-content {
background-color: #53643e;
margin: 15% auto; /* Центрируем по вертикали и горизонтали */
padding: 20px;
border: 1px solid #888;
border-radius: 15px;
width: 80%; /* Ширина контента */
max-width: 600px; /* Максимальная ширина */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
animation-name: animatetop;
animation-duration: 0.4s
}

/* Анимация появления */
@keyframes animatetop {
from {top: -300px; opacity: 0}
to {top: 15%; opacity: 1}
}

/* Кнопка закрытия */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}

/* Стили для кнопки открытия модального окна */
.open-modal-button {
cursor: pointer; 
width: 40px; 
height: auto;
}	
	
		
body {
margin: 0;
font-family: sans-serif;
min-height: 100vh; /* Занимает всю высоту экрана */
display: flex;
flex-direction: column;
align-items: center; /* Центрирование по горизонтали */
}
		
body {
background-color: #000;
background-image: url("img/fon17.jpg");
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-attachment: fixed;
}

img, video, button {
  max-width: 100%;
  height: auto; /* Важно для сохранения пропорций */
}

a {
text-decoration: none;
color: #fff;
}

.knop a {
text-decoration: none;
color: #5b5a5a;
}

h1 {
font-size: 35px;
text-align: center;
padding: 20px 0 0 0;
font-weight: 600;
color: #fff;
text-shadow: 1px 1px 1px #000;
}	

h2 {
font-size: 26px;
text-align: center;
font-weight: 500;
color: #ccc;
text-shadow: 1px 1px 1px #000;
}	

h3 {
font-size: 24px;
text-align: center;
font-weight: 500;
color: #fff;
text-shadow: 1px 1px 1px #000;
}

h4 {
font-size: 22px;
text-align: center;
font-weight: 500;
margin: 25px 0 10px 0;
color: #fff;
text-shadow: 1px 1px 1px #000;
}

p {
font-size: 20px;
color: #ccc;
text-shadow: 1px 1px 1px #000;
}

/* Сам слайдер регулятора громкости (input[type="range"]) */
input[type="range"] {
  -webkit-appearance: none; /* Убираем стандартное оформление в Chrome/Safari */
  width: 60%; /* Занимает всю ширину контейнера */
  height: 4px; /* Толщина дорожки слайдера */
  background: #ddd; /* Серый цвет дорожки */
  border-radius: 5px;
  border-color: #2c2c2c;
  outline: none; /* Убираем обводку при фокусировке */
  margin: 0; /* Убираем стандартные отступы */
  padding: 0; /* Убираем стандартные отступы */
  margin-left: 20%; /* Отступ слева */
  margin-right: 20%; /* Отступ справа */
}

/* Для Firefox */
input[type="range"]::-moz-range-track {
  width: 60%;
  height: 4px;
  background: #ddd;
  border: 1px solid;
  border-radius: 5px;
  border-color: #2c2c2c;
  border: none; /* Убираем возможную рамку */
}

/* Для Chrome/Safari */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Убираем стандартное оформление */
  width: 20px; /* Ширина картинки бегунка */
  height: 20px; /* Высота картинки бегунка */
  background: url('img/beg.png') no-repeat center center; /* Заменяем URL на путь к вашей картинке */
  background-size: cover; /* Масштабируем картинку, чтобы она занимала всю площадь бегунка */
  border: none; /* Убираем возможную рамку */
  cursor: pointer; /* Меняем курсор на указатель */
  margin-top: -7px; /* Выравниваем картинку по центру дорожки (половина разницы между высотой картинки и высотой дорожки) */
}

/* Для Firefox */
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: url('img/beg.png') no-repeat center center;
  background-size: cover;
  border: none;
  cursor: pointer;
}

/* Цвет заполненной части дорожки (слева от бегунка) - опционально */
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #6d6d6d, #ddd); /* Пример градиента, замените на нужный цвет */
  height: 4px;
  border-radius: 5px;
}

/* Цвет заполненной части дорожки в Firefox */
input[type="range"]::-moz-range-progress {
  background: #b1b1b1; /* Пример цвета, замените на нужный */
  height: 4px;
  border-radius: 5px;
}

.gr {
  margin:
10px 0 -24px 0;
  padding:
0 70% 0 0;
}

.container {
width: 90%; /* Занимает 90% ширины экрана */
max-width: 600px; /* Максимальная ширина для больших экранов */
margin: 20px 0; /* Отступы сверху и снизу */
}

.row {
display: flex;
flex-wrap: wrap; /* Перенос элементов на новую строку при необходимости */
}

/*Верхняя первая и вторая секция */
.col-1 {
position: relative;
width: 100%;
text-align: center;
padding: 0 5%;
color: white; /* Цвет текста (для лучшей видимости на градиенте) */ 		
}

/*Секция кнопок */
.knopki {
position: relative;
width: 100%;
text-align: center;
padding: 25% 0 5% 0;		
}

/*Картинка только для apple и mi-браузера */
.zastavka {
  position: absolute;
  left: 15%;
  top: -5%;
  width: 70%;
}

/*Секция текста внизу */
.txt {
text-align: justify;
width:60%;
margin: 0 20% 0 20%;
}

.tx {
width:80%;
margin: 0 10% 0 10%;
}


/*Две нижние секции, колонки с динамиками */		
.col-2 {
position: relative;
width: 50%;
height: 200%;
text-align: center;
padding: 10px;
color: white; /* Цвет текста (для лучшей видимости на градиенте) */	
}

/* Адаптивность: для экранов шире 600px */
@media (min-width: 601px) {
width: 600px; /* Фиксированная ширина для больших экранов */
}
}

.radio-container {
background: linear-gradient(to bottom, #212121, #121212);
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
width: 90%;
max-width: 500px;
text-align: center;
}

/*Металлические кнопки */
.belosag {
  width: 90%;
  margin: 40px auto;
  text-align: center;
  }
  button {
  margin: 5px;
  }
  .dsa-megan {
  width: 180px;
  height: 43px;
  color: #5b5a5a;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  text-shadow: 1px 1px 1px #f2f2f2;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-block;
  outline: none;
  border: 1px solid #ba6;
  }
  .dsa-megan:active{
  -webkit-transform: translateY(2px);
  transform: translateY(2px);
  }

  .kulopa-6{
  border-color: #7c7c7c;
  background: linear-gradient(top, rgba(38, 38, 38, 0.8), #e6e6e6 25%, #ffffff 38%, #c5c5c5 63%, #f7f7f7 87%, rgba(38, 38, 38, 0.8));
  background: -webkit-linear-gradient(top, rgba(38, 38, 38, 0.5), #e6e6e6 25%, #ffffff 38%, rgba(0, 0, 0, 0.25) 63%, #e6e6e6 87%, rgba(38, 38, 38, 0.4));
  }

.my-button {
  padding: 10px 20px;
  border: 1px solid #6c148c;
  cursor: pointer;
}

.my-button.active {
  color: #f8f9f8;
    text-shadow:
    0 0 5px #88F488,
    0 0 10px #156F15,
    0 0 15px #1E401E;
	border: 1px solid #148c38;
	box-shadow: 0 0 10px #28a745; /* Горизонтальное смещение, вертикальное смещение, размытие, цвет */
    transition: box-shadow 0.3s ease; /* Плавный переход для эффекта при наведении */
}

/*Металлическая кнопка Стоп */
  .stop-button {
  width: 70px;
  height: 43px;
  color: #5b5a5a;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  text-shadow: 1px 1px 1px #f2f2f2;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-block;
  outline: none;
  border: 1px solid #ba6;
  }
  .stop-button:active{
  -webkit-transform: translateY(2px);
  transform: translateY(2px);
  }

  .stop-button{
  border-color: #7c7c7c;
  background: linear-gradient(top, rgba(38, 38, 38, 0.8), #e6e6e6 25%, #ffffff 38%, #c5c5c5 63%, #f7f7f7 87%, rgba(38, 38, 38, 0.8));
  background: -webkit-linear-gradient(top, rgba(38, 38, 38, 0.5), #e6e6e6 25%, #ffffff 38%, rgba(0, 0, 0, 0.25) 63%, #e6e6e6 87%, rgba(38, 38, 38, 0.4));
  }

.stop-button {
  padding: 10px 10px;
  border: 1px solid #6c148c;
  cursor: pointer;
}

.stop-button.active {
  color: #f0e0e0;
    text-shadow:
    0 0 5px #AC2A37,
    0 0 10px #C83636,
    0 0 15px #E895A1;
	border: 1px solid #8c141a;
	box-shadow: 0 0 10px #8c141a; /* Горизонтальное смещение, вертикальное смещение, размытие, цвет */
    transition: box-shadow 0.3s ease; /* Плавный переход для эффекта при наведении */	
}

/*Металлическая кнопка Стоп */		
.stop-button {
position: absolute;
top: 80%;
left: 83%;
}

/*Металлическая кнопка вопрос */		
.open-modal-button {
position: absolute;
top: 9%;
left: 88%;
}

  .start-button {
  width: 70px;
  height: 43px;
  color: #5b5a5a;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  text-shadow: 1px 1px 1px #f2f2f2;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: inline-block;
  outline: none;
  border: 1px solid #ba6;
  }
  .start-button:active{
  -webkit-transform: translateY(2px);
  transform: translateY(2px);
  }

  .start-button{
  border-color: #7c7c7c;
  background: linear-gradient(top, rgba(38, 38, 38, 0.8), #e6e6e6 25%, #ffffff 38%, #c5c5c5 63%, #f7f7f7 87%, rgba(38, 38, 38, 0.8));
  background: -webkit-linear-gradient(top, rgba(38, 38, 38, 0.5), #e6e6e6 25%, #ffffff 38%, rgba(0, 0, 0, 0.25) 63%, #e6e6e6 87%, rgba(38, 38, 38, 0.4));
  }

.start-button {
  padding: 10px 10px;
  border: 1px solid #4f4e4e;
  cursor: pointer;
}

/*Скрытие объекта*/	
.none {
    display: none;
}
			
/*Динамики */
.speakers {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}

.speaker_m img {
width: 150px;
height: 150px;
transition: transform 0.001s ease-in-out;
}
		
.speaker_b img {
width: 260px;
height: 260px;
transition: transform 0.001s ease-in-out;
}	

/*Панель звука, регулятора громкости */
.pz {
position: absolute;
top: 81%;
left: 20%;
width: 60%;
}	

/*Панель индикаторов стрелки*/
.pi-left {
  position: absolute;
  top: 5%;
  left: 16.5%;
  width: 29%;
}

.pi-right {
  position: absolute;
  top: 5%;
  left: 53.5%;
  width: 29%;
}

.indikator1 {
  position: absolute;
  left: 14%;
  top: 1%;
  width: 35%;
}

.indikator2 {
  position: absolute;
  left: 51%;
  top: 1%;
  width: 35%;
}

/*аудио визуализация*/
.vizual {
position: absolute;
font-size: 12px;
text-align: center;
color: #4e4f4e;
left: 4%;
top: 5%;
width: 10%;
z-index: 10; 
}

.vizua {
cursor: pointer;
padding: 2px;
}

/*Декоративные панели управления и индикации*/
.panel1 {
position: absolute;
top: 0;
left: 0;
width: 100%; /* Или нужная ширина */
height: 100%; /* Или нужная высота */
z-index: 7;
}

/*Декоративная панель колонок, динамиков*/
.panel {
position: absolute;
top: 0;
left: 0;
width: 100%; /* Или нужная ширина */
height: 100%; /* Или нужная высота */
z-index: 3;
}

.screen {
width: 100%;
height: 50px;
border-radius: 5px;
margin: 0 0 20px 0;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2em;
color: #fff;
text-shadow: 0 0 5px #0f0;
}

/*Бегущая строка*/
.moving-text {
  width: 100%; /* Ширина контейнера */
  overflow: hidden; /* Скрывает текст, выходящий за границы */
  white-space: nowrap; /* Запрещает перенос текста на новую строку */
}

.moving-text span {
  display: inline-block; /* Позволяет анимировать текст */
  padding-left: 100%; /* Начальная позиция - справа */
  animation: moveText 12s linear infinite; /* Анимация */
}

@keyframes moveText {
  0% {
    transform: translateX(25%); /* Начальное положение */
  }
  100% {
    transform: translateX(-100%); /* Конечное положение (слева) */
  }
}

.comments {
padding: 20px;
    margin-left: 30%;
    margin-right: 30%;
    width: 40%;
}

footer {
text-align: center;
}

/*Кнопка смены темы */		
.yin_yang {
position: absolute;
top: 30%;
left: 88%;
z-index: 2;
}

/* Контейнер для поворота при наведении на изображение */
.image-container {
width: 50px; /* Задаем ширину контейнера */
margin: 5px auto; /* Центрируем контейнер */			
}

/* Базовые стили для изображения */
.image-container img {
width: 40px;
transition: transform 0.5s ease; /* Плавный переход для трансформации */
z-index: 2;
}

/* Эффект при наведении курсора */
.image-container img:hover {
transform: rotate(180deg); /* Поворачиваем изображение на 180 градусов */
}

@media screen and (max-width: 1000px) {
.comments {
padding: 20px;
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
}

}
@media screen and (max-width: 760px) {
.zastavka {
  top: -1%;
}	
	
.panel {
display: none;
}

.knop {
padding: 0 25%;
}

/*аудио визуализация*/
.vizual {
left: 0;
  top: 1%;
  width: 18%;
}

/*Металлическая кнопка Стоп */		
.stop-button {
top: 84%;
left: 80%;
}

/*Металлическая кнопка вопрос */		
.open-modal-button {
top: 5%;
left: 86%;
}

/*Кнопка смены темы */		
.image-container img {
top: 22%;
left: 86%;
}

/*Панель индикаторов стрелки*/
.pi-left {
  top: 4%;
}

/*Панель звука, регулятора громкости */
.pz {
top: 85%;
}

.pi-right {
  position: absolute;
  top: 4%;
  left: 53.5%;
  width: 29%;
}

/*Секция текста внизу */
.txt {
width:96%;
margin: 0 2% 0 2%;
}

.tx {
width:96%;
margin: 0 2% 0 2%;
}

.comments {
padding: 20px;
    margin-left: 2%;
    margin-right: 2%;
    width: 96%;
}

.stop-button {
  left: 75%;
}
      		
.speaker_m img {
width: 90px;
height: 90px;
}

.speaker_b img {
width: 150px;
height: 150px;
}

}

@media screen and (max-width: 500px) {
.knop {
padding: 0;
}
}