.bg-attachment-fixed {
  background-attachment: fixed;
}


.welcome-text {
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}


.welcome-text:hover {
  transform: scale(1.1);
  text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

#first-layer {
  opacity: 0;
  visibility: hidden;
}

#first-layer.show {
  opacity: 1;
  visibility: visible;
  z-index: 7;
  
}

 /* Стили для плавного появления */
 #appearing-image {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 40%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 8s ease, visibility 8s ease;
  z-index: 6;
}

#appearing-image.show {
  opacity: 1;
  visibility: visible;
}

 /* Добавляем стили для плавного зума */
 #bg-img {
  transform-origin: center center;
  overflow: hidden;
  z-index: 1; /* Чтобы был поверх других элементов */
}

#birds {
  display: none;
}

#birds.show {
  opacity: 0.5;
  display: inline-block;
  position: fixed;
  top: -5%; /* Настройте высоту по вашему вкусу */
  left: -100%; /* Начальная позиция за пределами экрана */
  width: 100px; /* Соответствует data-width */
  height: auto;
  z-index: 4;
  pointer-events: none; /* Позволяет кликать сквозь элемент */
  animation: flyAcross 4s linear;
}

/* Ключевые кадры анимации */
@keyframes flyAcross {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 120%)); /* Перемещаем за правый край */
  }
}

.white-flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  pointer-events: none; /* Чтобы можно было кликать сквозь вспышку */
  transition: opacity 0.5s ease-out;
  z-index: 10; /* Поверх всех элементов */
}

#first-invitation-text {
  position: absolute;
  width: 100%;
  bottom: 55%; /* Позиционирование от нижнего края */
  left: 0;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  
}

#first-invitation-text.show {
  opacity: 1;
  transform: translateY(0);
  font-size: 20px;
  z-index: 8;
  font-family: 'Pacifico', cursive;
  pointer-events: none;
  color:#D0C19C;
}

#next-button {
  position: absolute;
  width: 100%;
  bottom: 7%; /* Позиционирование от нижнего края */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  font-family: 'Pacifico', cursive;
}

#next-button.show {
  opacity: 1;
  transform: translateY(0);
  font-size: 23px;
  color: rgba(0,0,0,0.4);
  z-index: 8;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}

#calendar-month {
  top: 28%;
  left: 40%;
  width:20%;
  text-align: center;
  position: absolute;
  font-size: 1.6rem;
  font-family: 'Pacifico', cursive;
  opacity: 0;
  pointer-events: none; /* Чтобы можно было кликать сквозь вспышку */
}

#calendar-month.show {
  opacity: 1;
  color: rgba(0,0,0,0.6);
}

#calendar {
  left: 10%;
  position: absolute;
  width: 80%;
  font-size: 1.4rem;
  font-family: 'Pacifico', cursive;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0; /* Отступ между ячейками */
  margin-top: 5px;
  opacity: 0;
  pointer-events: none; /* Чтобы можно было кликать сквозь вспышку */
  z-index: 10;
}

#calendar.show {
  opacity: 1;
  color: rgba(0,0,0,0.6);
}

#calendar div {
  position: relative; /* Добавляем для корректного позиционирования псевдоэлементов */
  text-align: center;
  padding: 2px; /* Отступ внутри ячеек */
}

#date {
  color: #EC9654;
  position: relative;
  display: inline-block;
}

.gif-overlay {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: -1;
}

/* Анимация исчезновения */
@keyframes vaporize {
  0% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(20px) brightness(3);
    transform: scale(1.5);
  }
}

.vaporize-effect {
  animation: vaporize 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#details {
  left: 10%;
  top: 15%;
  width:80%;
  text-align: center;
  position: absolute;
  font-size: 1.4rem;
  font-family: 'Pacifico', cursive;
  opacity: 0;
  pointer-events: none; /* Чтобы можно было кликать сквозь вспышку */
  filter: blur(10px);
  transform: scale(0.95);
}

#details.show {
  opacity: 1;
  color: #D0C19C;
  filter: blur(0);
  transform: scale(1);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


#next-button-detail {
  position: absolute;
  width: 100%;
  bottom: 24%; /* Позиционирование от нижнего края */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  font-family: 'Pacifico', cursive;
}

#next-button-detail.show {
  opacity: 1;
  transform: translateY(0);
  font-size: 23px;
  color: rgba(0,0,0,0.4);
  z-index: 8;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.highlight-text {
  font-size: 1.8rem;
  display: inline-block;
}

.music-toggle-btn {
  position: fixed; /* Фиксированное положение */
  bottom: 5%; /* Отступ снизу */
  right: 5%; /* Отступ справа */
  background: none; /* Прозрачный фон */
  border: none; /* Без рамки */
  cursor: pointer; /* Курсор в виде указателя */
  padding: 10px; /* Внутренний отступ */
  z-index: 1000; /* Чтобы кнопка была поверх других элементов */
}

.music-toggle-btn img {
  width: 40px; /* Размер иконки */
  height: 40px;
  transition: transform 0.3s ease; /* Плавное изменение размера */
}

.music-toggle-btn:hover img {
  transform: scale(1.1); /* Увеличение иконки при наведении */
}

@keyframes fancyDisappear {
  0% {
    opacity: 1;
    transform: perspective(500px) translateY(0) rotateX(0);
  }
  50% {
    opacity: 0.7;
    transform: perspective(500px) translateY(-30px) rotateX(30deg);
  }
  100% {
    opacity: 0;
    transform: perspective(500px) translateY(-100px) rotateX(60deg);
    visibility: hidden;
  }
}

/* Стиль для десктопного сообщения (по умолчанию скрыт) */
.desktop-message {
  display: none;
  text-align: center;
  padding: 50px;
  font-size: 24px;
}

/* Показываем основной контент только на мобильных */
.mobile-content {
  display: block;
}

/* На десктопах (ширина больше 768px) */
@media (min-width: 769px) {
  .mobile-content {
    display: none !important;
  }
  .desktop-message {
    display: block;
  }
}