body {
  font-family: "Open Sans", sans-serif;
  color: #cccccc;
  background-color: #333333;

  line-height: 1.6; /* Улучшает читаемость */
  font-weight: 300; /* Более легкий вариант шрифта */
}
h1,
h2 {
  text-align: center;
  font-size: 17px;
  margin: 18px;
}

/*------------------------------------------------------------*/
/* Главный заголовок */

#mainTitle {
  transition: all 0.5s ease-out;
  opacity: 1;
  max-height: 100px; /* Подходит под размер заголовка */
  overflow: hidden;
  margin: 20px 0;
}

#mainTitle.hide {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

/*------------------------------------------------------------*/
/* Блок иконок активностей */

#activityBox {
  margin: 0 auto;
  width: 630px;
}

#activitySelect {
  display: flex;
  justify-content: center;

  padding: 15px 0;
  border: 1px solid #eee;
  border-radius: 10px;

  background-color: #9cbdf3;
}

#activitySelect img {
  width: 100px;
  height: 100px;
  margin: 0 10px;
  border-radius: 50%;
  border: 2px solid gray;
  cursor: pointer;
  background-color: #fff;

  transform: scale(1); /* Исходный размер */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Плавная анимация */
}

#activitySelect img:hover {
  transform: scale(1.1); /* Увеличение размера при наведении */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Усиленная тень */
}

#activitySelect img.active {
  box-shadow: 0 0 6px 5px rgba(0, 255, 0, 0.5);
}

#activitySelect img.active:hover {
  box-shadow: 0 0 15px 5px rgba(0, 255, 0, 0.5);
}

#activitySelect img.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 0, 0.5) 0%,
    rgba(0, 255, 0, 0) 70%
  );
  z-index: 1;
}

#activityTitle .lng_block {
  display: none;
}
#activityTitle .lng_block.active {
  display: inline;
}

/*------------------------------------------------------------*/
/* Управление слайдерами */

.controls {
  margin: 20px auto;
  width: 80%;

  display: none;
}

/* Общие стили для #controlTitle */
#controlTitle {
  margin: 20px auto;
  padding: 20px 0 0;
  width: 80%;
}

/* Применяем Flexbox только к #controlTitle с .calc_5layer_link */
#controlTitle.flex-container {
  display: flex; /* Делаем контейнер флексбоксом */
  align-items: center; /* Выравниваем элементы по вертикали */
}

.slider-container {
  margin: 0 auto 55px;
  width: 80%;
}

/* Стили для .calc_5layer_link */
.calc_5layer_link {
  display: inline-block; /* Занимает ровно столько, сколько нужно под текст */
  width: max-content; /* Более современный вариант */

  margin-left: auto; /* Перемещаем элемент вправо */
  font-size: 63%; /* Размер шрифта */
  color: #aaa; /* Цвет текста */
  cursor: pointer; /* Добавляем указатель курсора */
  text-decoration: underline; /* Подчеркивание для ссылки */
  transition: all 0.2s ease; /* Плавная анимация для всех изменений */

  position: relative; /* Относительное позиционирование */
  top: 5px; /* Смещение вниз на 5px */
}

.calc_5layer_link:hover {
  font-size: 64%; /* Увеличиваем размер шрифта */
  color: #eee; /* Изменяем цвет текста */
  text-decoration: none; /* Убираем подчеркивание */
}

/*------------------------------------------------------------*/
/* Блок индикации очистки слоёв */

#cleaned {
  display: block;
  justify-content: space-between; /* Равномерное распределение элементов */
  gap: 15px; /* Отступы между блоками */
  border: 2px #999;
  border-top-style: outset;
  padding: 15px;
  width: 64%;
  margin: 100px auto;
  min-height: 100px; /* Минимальная высота для контейнера */
}

#cleaned .title {
  font-size: 100%;
  /* border: 1px solid #FFF; */
}

#cleaned .result {
  flex: 1;
  display: flex;
  justify-content: center;
  /* border: 1px solid #FFF; */
  align-self: center; /* Остается по центру */
  margin-left: 50px;
}

#cleaned .layers {
  font-size: 500%;
}

#cleaned .channels {
  padding: 0 15px;
  font-size: 100%;
}

#cleaned .comments {
  padding: 0 10px;
  margin-left: -21px;
}

/* --------------------------------------------------------------------- */
/* Настройки слайдеров */

/* Стилизация текста меток */
.noUi-value {
  font-size: 11px; /* Размер шрифта */
  color: #999; /* Цвет текста */
  line-height: 1; /* Высота строки */
  padding-top: 5px;
}

/* Основной стиль бегунка */
.noUi-handle {
  background-color: #6d95d6; /* Цвет бегунка */
  border: 2px solid #ffffff; /* Белая рамка вокруг бегунка */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Тень для объемного эффекта */
  width: 20px; /* Ширина бегунка */
  height: 20px; /* Высота бегунка */
  border-radius: 50%; /* Скругление углов (делает бегунок круглым) */

  transform: scale(1); /* Исходный размер */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Плавная анимация */
}

/* Стиль бегунка при нажатии */
.noUi-handle:active {
  background-color: #9cbdf3; /* Темный оттенок при нажатии */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Усиленная тень */
}

.noUi-handle:hover {
  transform: scale(1.1); /* Увеличение размера при наведении */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Усиленная тень */
}

/* Стиль подсказки над бегунком */
.noUi-tooltip {
  background-color: #333; /* Цвет фона */
  color: #fff; /* Цвет текста */
  font-size: 10px; /* Размер текста */
  padding: 3px 6px; /* Отступы */
  border-radius: 5px; /* Закругление углов */
}

/* Скрываем подсказки по умолчанию */
.noUi-tooltip {
  display: none;
}

/* Показываем при наведении на бегунок */
.noUi-handle:hover .noUi-tooltip {
  display: block;
}

/*------------------------------------------------------------*/
/* Блок иконок статических аскез */

/* Костыль */
#staticControls {
  margin-bottom: -50px;
}

#staticPoseSelect {
  display: flex;
  justify-content: center;
}

#staticPoseSelect figure {
  padding: 0;
  margin: 0 1%;
}

#staticPoseSelect img {
  width: 81px;
  height: 81px;
  margin: 0 10px;
  border-radius: 50%;
  border: 2px solid gray;
  cursor: pointer;
  background-color: #fff;

  transform: scale(1); /* Исходный размер */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Плавная анимация */
}

#staticPoseSelect img:hover {
  transform: scale(1.1); /* Увеличение размера при наведении */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Усиленная тень */
}

#staticPoseSelect img.active {
  box-shadow: 0 0 6px 5px rgba(156, 189, 243, 0.5);
}

#staticPoseSelect img.active:hover {
  box-shadow: 0 0 15px 5px rgba(156, 189, 243, 0.5);
}

#staticPoseSelect img.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 0, 0.5) 0%,
    rgba(0, 255, 0, 0) 70%
  );
  z-index: 1;
}

#staticPoseSelect figcaption {
  text-align: center;
}

/*------------------------------------------------------------*/
/* Корекци дизайна шкал */

.noUi-marker.noUi-marker-horizontal.noUi-marker-normal {
  width: 1px !important;
  height: 3px !important;
}
.noUi-value.noUi-value-horizontal.noUi-value-large {
  height: 10px !important;
}
.noUi-marker-horizontal.noUi-marker-large {
  height: 7px;
}
.noUi-horizontal .noUi-handle {
  width: 30px !important;
  height: 30px !important;
  top: -8px !important;
}
.noUi-handle::after,
.noUi-handle::before {
  display: none;
}
.noUi-horizontal {
  height: 15px !important;
}

/*------------------------------------------------------------*/
/*  Speech Bubble  */

.speech-bubble {
  position: relative;
  border: 2px dotted #999;
  color: white;
  border-radius: 10px;
  padding: 15px;
  margin: 0 0 15px;
  width: 100%;
  text-align: center;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
  font-size: 81%;

  /* Анимация */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.speech-bubble.show {
  opacity: 1;
  max-height: 300px; /* Подбери под высоту твоего текста */
}

/*------------------------------------------------------------*/
/*  Кнопки выбора языка */

#languageSelector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto;
}

#languageSelector button {
  background-color: #444;
  color: #ddd;
  border: 1px solid #666;
  padding: 6px 12px;
  font-size: 90%;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Open Sans", sans-serif;
}

#languageSelector button:hover {
  background-color: #666;
  color: #fff;
  border-color: #aaa;
}

#languageSelector button:focus {
  outline: none;
  box-shadow: 0 0 4px #9cbdf3;
}
