/* Стили для контейнера с видео */
.video-container {
  position: absolute;
  top: 490px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

/* Скрытый элемент */
.hidden {
  display: none;
}

/* Стили для кнопки */
#startWatchingBtn {
  position: absolute;
  top: 570px; /* Позиционирование по вертикали */
  left: 50%; /* Позиционирование по горизонтали */
  transform: translateX(-50%); /* Смещение кнопки на половину её ширины влево */
  padding: 14px 24px;
  font-size: 16px;
  background-color: #e32636; /* Цвет Twitch */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#startWatchingBtn:hover {
  background-color: #333; /* Более светлый оттенок Twitch */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0); /* Анимация только по вертикали, сохраняя центрирование по горизонтали */
  }
  40% {
    transform: translate(-50%, -10px); /* Смещение вверх */
  }
  60% {
    transform: translate(-50%, -5px); /* Смещение вверх */
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}


@keyframes glowing {
0% { background-color: #7e26e3; box-shadow: 0 0 5px #2ba805; }
50% { background-color: #49e819; box-shadow: 0 0 20px #49e819; }
100% { background-color: #d326e3; box-shadow: 0 0 5px #2ba805; }
}

.button2 {
animation: glowing 2000ms infinite;
}

.bounce {
  animation: bounce 2s infinite, blink 2s infinite;
}


.control {
  position: absolute;
  top: 900px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px auto;
  flex-wrap: wrap;
}

.message-box {
  display: flex;
  gap: 12px;
}

.message-box input {
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 630px;
}

.message-box button, .control-btn {
  padding: 14px 24px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #6441a5;
  color: white;
  transition: background-color 0.3s;
}

.message-box button:hover, .control-btn:hover {
  background-color: #333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  cursor: pointer;
}

.camera-image img {
  width: 560px;
  height: auto;
  border-radius: 10px;
}

.task {
  color: black;
}

.task-list {
  list-style: none;
  padding: 0;
}

.task-list li {
  margin: 10px 0;
}

.task-list button {
  padding: 14px 24px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  transition: background-color 0.3s;
}

.task-list button:hover {
  background-color: #333;
}

#payButton {
  margin-top: 10px;
  padding: 14px 24px;
  font-size: 16px;
  background-color: #6441a5;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#payButton:hover {
  background-color: #333;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 14px 24px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.notification.show {
  opacity: 1;
  visibility: visible;
}

/* Медиазапросы для адаптации под разные устройства */
@media (max-width: 1491px) {
  #startWatchingBtn {
    top: 640px;
  }
}

@media (max-width: 1320px) {
  .video-container {
    width: 90%;
  }

  .control {
    width: 90%;
  }

  .message-box input {
    width: 300px;
    font-size: 14px;
  }

  .message-box button, .control-btn {
    font-size: 14px;
  }

  .camera-image img {
    width: 100%;
  }
}

@media (max-width: 1029px) {
    .control {
    top: 900px;
  }
}

@media (max-width: 768px) {
.video-container {
  top: 466px;
}

  #startWatchingBtn {
    font-size: 14px;
  }

.message-box {
  gap: 8px;
} 

.control {
  top: 910px;
  gap: 6px;
  margin: 8px auto;
}

@media (max-width: 590px) {
.video-container {
  top: 458px;
}
  .control {
    top: 940px;
    flex-direction: column;
    gap: 4px;
  }

  .message-box {
    flex-direction: column;
    gap: 4px;
  }

  .message-box input {
    width: 100%;
  }

  .modal-content {
    width: 90%;
  }

  .camera-image img {
    width: 100%;
  }
}

.notification {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    display: block;
    opacity: 1;
}