* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(180deg, #af41ff, #40ff29);
  color: #fff;
  text-align: center;
}

        .top-strip {
            width: 100%;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ddd;
            top: 0;
            left: 0;
			margin-bottom: 15px;
        }
        .logo {
		  font-size: 26px;
		  font-weight: bold;
		  color: #fdc101;
        }
        .nav-container {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .nav-links {
            display: flex;
            gap: 20px;
			align-items: center;
        }
        .nav-links a {
            text-decoration: none;
            color: #333;
            font-size: 14px;
        }
        

    .button {
      top: 10px;
      right: 10px;
      align-items: center;
      background-color: #1e1e1e;
      color: white;
      padding: 8px 16px;
      border-radius: 12px;
      font-size: 16px;
      cursor: pointer;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .button .icon {
      margin-right: 8px;
      font-size: 18px;
    }

    .button:hover {
      background-color: #333;
    }

        .donation-container {
            width: 60%;
            margin: 50px auto;
            padding: 20px;
            background-color: #1e1e1e;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }
        .donation-bar {
            display: flex;
            width: 100%;
            height: 40px;
            border-radius: 20px;
            overflow: hidden;
            background-color: #333;
			margin-top: 20px;
            margin-bottom: 20px;
            position: relative;
        }
        .section {
            flex: 1;
            text-align: center;
            font-weight: bold;
            color: #2d2d2d;
            line-height: 40px;
            font-size: 14px;
        }
        .s1 { background-color: #4caf50; } /* Green */
        .s2 { background-color: #ff9800; } /* Orange */
        .s3 { background-color: #f44336; } /* Red */
        .s4 { background-color: #9c27b0; } /* Purple */
        .donation-text {
            margin-bottom: 20px;
            font-size: 16px;
            line-height: 1.5;
            color: #cccccc;
        }		
        .donate-button {
            background-color: #ff5722;
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: 0.3s;
        }
        .donate-button:hover {
            background-color: #e64a19;
        }

        .table-container {
            width: 60%;
            margin: 50px auto;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        }
        table {
			background-color: #1e1e1e;
			border-collapse: collapse;
            width: 30%;
            margin: 20px auto;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);		
        }
        th, td {
            padding: 15px;
            border: 1px solid #333;
        }
        th {
            background-color: #333;
        }
        .yes {
            color: #4caf50;
            font-weight: bold;
        }
        .no {
            color: #f44336;
            font-weight: bold;
        }

#instructions {
	display: none;
	margin-top: 10px;
	padding: 10px;
	border: 1px solid #ccc;
	background-color: #f9f9f9;
	color: black;
	max-width: 600px;
	font-size: 1rem;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-btn {
	cursor: pointer;
	color: black;
	text-decoration: none;
	font-size: 1.2rem;
	margin-top: 5px;
}

.page-description {
    display: block;
    font-size: 1.1rem;
    color: #414141;
    margin-top: 0.25em; /* Небольшой отступ */
    max-width: 100ch; /* Ограничение ширины для удобочитаемости */
}


/* Контейнер прогресс-бара */
.progress-bar-container {
  width: 100%; /* Ширина контейнера */
  height: 20px; /* Высота прогресс-бара */
  background-color: #f0f0f0; /* Цвет фона */
  border-radius: 10px; /* Закруглённые края */
  overflow: hidden; /* Скрываем излишки */
  margin-top: 20px; /* Отступ сверху */
  position: relative;
}

/* Прогресс-блок внутри */
.progress-bar {
  width: 0%; /* Начальное значение */
  height: 100%; /* Полная высота контейнера */
  border-radius: 10px 0 0 10px; /* Закругление только слева */
  transition: width 0.5s ease; /* Плавная анимация изменения ширины */
  
  background: linear-gradient(90deg, #4caf50, #81c784);
  background-size: 200% 100%; /* Размер градиента больше, чтобы создать движение */
  animation: gradientShift 2s linear infinite; /* Движение градиента */  
}

/* Скрытый прогресс-бар */
.progress-bar-container.hidden {
  display: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* Контейнер для пузырьков */
.bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Фон под контентом */
  overflow: hidden;
}

/* Анимация и стили для пузырьков */
.bubble {
  position: absolute;
  bottom: 100%; /* Начало анимации сверху */
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.2); /* Полупрозрачный цвет */
  border-radius: 50%; /* Делаем форму круга */
  box-shadow: 0 0 15px 10px rgba(255, 255, 255, 0.2); /* Размытие краёв */
  animation: fall 10s linear infinite; /* Плавное падение */
}

/* Анимация падения */
@keyframes fall {
  0% {
    transform: translateY(0) scale(0.8);
	opacity: 1;
  }
  50% {
    transform: translateY(50vh) scale(1);
	opacity: 1;
  }
  90% {
	opacity: 1;
  }  
  100% {
    transform: translateY(100vh) scale(0.8);
	opacity: 0;
  }
}

/* Добавление множества пузырьков */
@keyframes sideMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(-20px);
  }
}

/* Создание пузырьков через CSS */
.bubble:nth-child(1) {
  left: 10%;
  animation-duration: 7s;
  animation-delay: 0s;
}
.bubble:nth-child(2) {
  left: 20%;
  animation-duration: 9s;
  animation-delay: 2s;
}
.bubble:nth-child(3) {
  left: 35%;
  animation-duration: 6s;
  animation-delay: 1s;
}
.bubble:nth-child(4) {
  left: 50%;
  animation-duration: 8s;
  animation-delay: 3s;
}
.bubble:nth-child(5) {
  left: 65%;
  animation-duration: 7.5s;
  animation-delay: 0.5s;
}
.bubble:nth-child(6) {
  left: 80%;
  animation-duration: 9s;
  animation-delay: 2s;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Автоматическое заполнение с минимальной шириной 200px для каждой картинки */
  gap: 15px; /* Отступы между картинками */
  margin-top: 5px; /* Отступ сверху, чтобы галерея не прилипала к форме */
  padding: 15px;
  opacity: 0; /* Начальная невидимость */
  animation: fadeIn 1s ease-out forwards; /* Плавное появление галереи */
  width: 75%;
}

/* Медиазапрос для экранов шириной менее 400px */
@media screen and (max-width: 600px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); /* Элементы растягиваются на всю ширину */
    width: 100%; /* Галерея занимает всю ширину экрана */
  }
  .nav-links {
    display: none;
  }
.text-area {
	font-size: 15px;
}
.bubble {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.2); /* Размытие краёв */  
}
}

@media screen and (max-width: 500px) {
	.image-gallery img:hover {
	  transform: none !important;
	}	
}

@media screen and (max-width: 800px) {
  .page-description {
    display: none;
  }	
}

/* Анимация для плавного появления */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Стили для каждого изображения */
.image-item {
  opacity: 0; /* Начальная невидимость */
  transform: translateY(20px); /* Сдвиг изображения вниз */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Плавное изменение opacity и transform */
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Когда изображение появляется, делаем его видимым и поднимаем */
.image-item.show {
  opacity: 1;
  transform: translateY(0); /* Возвращаем в исходное положение */
}

/* Стили для изображений */
.image-gallery img {
  width: 100%; /* Картинки будут растягиваться на всю доступную ширину ячейки */
  height: auto; /* Сохраняем пропорции изображений */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-item:hover {
  z-index: 10;
}

/* Класс для эффекта загрузки */
.image-item.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loadingAnimation 1.5s infinite linear;
  min-height: 150px; /* Важно: задает минимальную высоту */
  width: 100%; /* Гарантированно занимает всю ширину */
}

/* Анимация загрузки (эффект мерцающего скелетона) */
@keyframes loadingAnimation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.image-gallery img:hover {
  transform: scale(1.3); /* Легкое увеличение картинки при наведении */
}

.page-title {
  font-size: 26px;
  font-weight: bold;
  color: #b0ff4c;
  margin-top: 20px;
}

.header-text {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
  top: 20%;
  left: 50%;
  font-weight: 400;
}

.upload-container {
  background: #f7f7f7;
  color: #333;
  padding: 15px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 97%;
  max-width: 610px;
}

.text-input {
  display: block;
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 2px solid #4a90e2;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

.text-input:focus {
  border-color: #50c9c3;
}

.text-area {
  display: block;
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #4a90e2;
  border-radius: 5px;
  font-size: 17px;
  color: #333;
  resize: vertical; /* Позволяет пользователю изменять высоту */
  outline: none;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.text-area:focus {
  border-color: #50c9c3;
}

.input-area {
  padding: 5px 10px;
  border: 1px solid #4a90e2;
  border-radius: 5px;
  font-size: 15px;
  color: #333;
  resize: vertical; /* Позволяет пользователю изменять высоту */
  outline: none;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

        .input-container {
            align-items: center;
            gap: 10px;
            font-family: Arial, sans-serif;
        }

.custom-file-label {
  display: inline-block;
  background: #f3f4f6;
  border: 2px dashed #4a90e2;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 15px;
  font-size: 14px;
  color: #4a90e2;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-file-label:hover {
  background: #4a90e2;
  color: #fff;
}

.custom-file-label span {
  display: inline-block;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.upload-button {
  display: inline-block;
  background: #4a90e2;
  border: none;
  padding: 10px 20px;
  color: #fff;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-button:hover {
  background: #357ABD;
}

.upload-button:disabled {
  background-color: #ccc; /* Серый фон для заблокированной кнопки */
  color: #777; /* Бледный текст */
  cursor: not-allowed; /* Указывает, что кнопка недоступна */
  opacity: 0.7; /* Немного прозрачный вид */
  border-color: #aaa; /* Серый цвет границы */
}

input[type="file"] {
  display: none;
}

        .slider-container {
            display: inline-block;
            align-items: center;
            gap: 10px;
            font-family: Arial, sans-serif;
			margin-bottom: 15px;
        }
        .slider {
            -webkit-appearance: none;
            width: 180px;
            height: 10px;
            border-radius: 5px;
            background: linear-gradient(to right, #337aff, #baff33);
            outline: none;
            opacity: 0.8;
            transition: opacity 0.2s;
			margin-top: 15px;
        }
        .slider:hover {
            opacity: 1;
        }
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: #fff;
            border: 2px solid #000;
            border-radius: 50%;
            cursor: pointer;
        }
		
        .btn-open {
            padding: 10px 20px;
            background-color: #ff9900;
            border: none;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            margin-top: 20px;
        }

        /* Popup styles */
        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            justify-content: center;
            align-items: center;
        }

        .popup {
            background: #1c1c1e;
            padding: 20px;
            width: 50%;
            max-width: 800px;
            border-radius: 10px;
            box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
            color: #fff;
        }

        .plans {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-top: 10px;
        }

        .plan {
            background: #222;
            padding: 15px;
            border-radius: 10px;
            width: 30%;
            text-align: left; /* Выравнивание текста по левому краю */
        }

        .plan h3 {
            margin: 10px 0;
            text-align: center;
        }
		
        .price {
            font-size: 18px;
            font-weight: bold;
            color: #ffcc00;
            text-align: center;
            display: block;
            margin-bottom: 10px;
        }		

        .plan p {
            font-size: 14px;
            color: #bbb;
            margin: 5px 0;
        }

        .subscribe-btn {
            padding: 10px;
            background: #ff9900;
            border: none;
            color: #fff;
            cursor: pointer;
            margin: 10px 0;
            display: block;
            width: 100%;
        }