body {
  font-family: "Exo 2", sans-serif;
  background: url('https://i.imgur.com/zIebM7T.png') repeat;
  background-size: 450px 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  background-color: #020a36;
  text-align: center;
  padding-top: 50px;
  color: #ffffff;
}

/* ХЕДЕР */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  background-color: #6172d6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 0;
}

#main-header h1 {
  font-size: 20px;
  margin: 0;
}

#menu-toggle {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

#menu-toggle img {
  width: 30px;
  /* Размер изображения иконки */
  height: 30px;
  /* Высота изображения иконки */
  object-fit: contain;
  /* Изображение сохраняет пропорции */
}

#dropdown-menu {
  position: absolute;
  top: 50px;
  right: 15px;
  background-color: #6172d6;
  color: #ffffff;
  border: 1px solid #5a0505;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1001;
}

#dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#dropdown-menu li {
  padding: 0;
  /* убираем паддинг */
  margin: 0;
}

#dropdown-menu li a {
  display: block;
  /* вся строка кликабельна */
  padding: 10px 20px;
  color: white !important;
  text-decoration: none;
}

#dropdown-menu li a:hover {
  background-color: #5a0505;
  /* подсветка при наведении */
}



#dropdown-menu.show {
  display: block;
}

#auth-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 20px;
}
/*конц хедер*/

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  min-height: 500px;
  /* ← добавлено */
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #000;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 480px) {
  .modal {
    width: 90%;
    max-width: 320px;
    padding: 20px;
    min-height: 450px;
    /* мобильный минимум */
  }
}

/*конец модального окна*/

#auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

#user-info {
  display: none;
  /* Будет активироваться через JS */
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

#user-photo {
  width: 80px !important;
  height: 80px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
}

#user-name {
  margin-top: 10px;
  font-size: 20px;
  font-weight: bold;
}

#userStats {
  margin-top: 0px;
  font-size: 18px;
  font-weight: bold;
  white-space: pre-line;
}

#game-content {
  display: none;
}

.round-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.next-round-button {
  padding: 12px 24px;
  font-size: 18px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 0px;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.next-round-button:hover {
  background-color: #45a049;
}

.game-content {
  padding-top: 0 !important;
  /* убирает внутренний отступ сверху */
  margin-top: 0 !important;
  /* на случай, если это внешний отступ */
}

.container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1400px;
  padding: 0px;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.video-preview {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo {
  width: 250px;
  height: 250px;
  object-fit: cover;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

#loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: transparent;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6172d6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#auth-buttons img {
  cursor: pointer;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  margin: 5px;
  border-radius: 50%;
}


.choice-block {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  width: 600px;
}

.media-left,
.media-right {
  height: 350px;
  min-width: 100%;
  /* Фиксированная высота для контейнеров медиа */
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-block img,
.choice-block video {
  max-height: 450px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.choice-block button {
  margin-top: 15px;
  padding: 7px 25px;
  background: #6172d6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 80%;
}

.result {
  width: 100%;
  height: 32px;
  /* фиксированная высота */
  margin: 0;
  /* убираем внешние отступы */
  padding: 0;
  /* убираем внутренние отступы */
  font-size: 22px;
  /* читаемый шрифт */
  font-weight: bold;
  line-height: 32px;
  /* вертикальное выравнивание */
  text-align: center;
}

.round-complete img {
  max-width: 512px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
  /* Скругление углов */
}

@media (max-width: 768px) {
  .round-complete img {
    max-width: 90vw;
    /* 90% ширины экрана на мобильных */
    max-height: 350px;
    /* Ограничение высоты для мобильных */
    border-radius: 10px;
    /* Сохраняем скругление на мобильных */
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 3;
    /* Добавляем меньший отступ между блоками */
  }

  .choice-block {
    width: 90%;
    padding: 5px;
    min-width: 360px;
    box-sizing: border-box;
    /* Уменьшаем внутренние отступы */
  }

  .video-preview {
    max-width: 100%;
    border-radius: 12px;
  }

  /* Добавляем эти строки для ограничения высоты */
  .media-left,
  .media-right {
    height: 200px;
    /* Уменьшенная высота для блоков на мобильных */
  }

  .choice-block img,
  .choice-block video {
    max-height: 200px;
    /* Уменьшенная максимальная высота изображений */
  }

  .choice-block button {
    width: 100%;
    /* Кнопка на всю ширину блока */
    margin-top: 8px;
    /* Меньший отступ сверху */
  }

  #user-photo {
    width: 40px !important;
    /* Уменьшаем размер фото */
    height: 40px !important;
  }

  #user-name {
    font-size: 14px;
    /* Уменьшаем размер текста */
  }
}
