/* Стили для Telegram MiniApp */
:root {
  --tg-theme-bg-color: #ffffff;
  --tg-theme-text-color: #000000;
  --tg-theme-button-color: #4390f6;
  --tg-theme-button-text-color: #ffffff;
  --tg-viewport-height: 100vh;
  --tg-viewport-width: 100vw;
  --tg-viewport-stable-height: 100vh;
}

body {
  height: var(--tg-viewport-height);
  max-height: var(--tg-viewport-height);
  overflow: hidden;
}

/* Стили для кнопки полноэкранного режима */
.fullscreen-btn {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.fullscreen-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-btn img {
  width: 24px;
  height: 24px;
}

/* Стили для полноэкранного режима */

/* Скрываем кнопку Back в полноэкранном режиме */
.fullscreen-mode #back-btn {
  display: none;
}

/* В полноэкранном режиме используем динамический отступ */
.fullscreen-mode .header .header__container:first-child {
  padding-top: var(--tg-safe-area-inset-top, 40px);
  justify-content: center;
}

/* Фиксируем центрирование заголовка */
.fullscreen-mode .header__title {
  text-align: center;
  margin: 0 auto;
}

/* Правая кнопка в режиме fullscreen должна оставаться справа */
.fullscreen-mode .header__container:first-child .hide-btn {
  position: absolute;
  right: 16px;
} 