/* ======= 1. Фон для дня и ночи ======= */
body {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
  transition: background 30s ease-in-out, filter 30s ease-in-out, color 30s ease-in-out, opacity 30s ease-in-out;


}
body.transitioning {
    transition: background 10s ease-in-out, filter 10s ease-in-out, color 10s ease-in-out;
}

body.morning {
    background: linear-gradient(to bottom, #ffddc1, #fffcf2); /* Нежный персиковый рассвет */
    filter: brightness(1);
}
body.day {
    background: linear-gradient(to bottom, #a3d5ff, #ffffff); /* Чистое дневное небо */
    filter: brightness(1);
}


body.night {
    background: linear-gradient(to bottom, #051026, #0b1a29, #112a46); /* Глубокая ночь */
    filter: brightness(0.89);
	 transition: background 30s ease-in-out, filter 30s ease-in-out;
	   color: white; /* Ночью текст становится белым */
}
body.night .container {
    background: #f5eacc; /* возвращаем исходный фон контейнера */
    box-shadow: 0 0 30px rgba(0, 255, 127, 0.5);
    color: #f5eacc;
}

body.night .timing h2,
body.night .dresscode h2,
body.night .countdown h2,
body.night .message,
body.night .description,
body.night .address {
    color: white;
}
body.night .confirm-btn {
    background-color: #3FAE6E;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.8);
}
.nashe-photo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

.nashe-photo img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}


}
.night-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(173, 216, 230, 0.1) 5%, transparent 70%);
    animation: glowPulse 15s infinite alternate ease-in-out;
}

/* ======= 3. Анимация мягкого мерцания свечения ======= */
@keyframes glowPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}
body.evening h2, body.evening h3, body.evening .message,
body.evening .description, body.evening .date, body.evening .address {

    transition: color 15s ease-in-out;
}

body.night h2, body.night h3, body.night .message,
body.night .description, body.night .date, body.night .address {
    color: white;
    transition: color 30s ease-in-out;
}
.timing img.vremya {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* ======= 4. Отражение луны (перемещено в угол и стало ярче) ======= */
.moon-reflection {
    position: fixed;
    top: 5%;
    right: 5%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 200, 1), rgba(255, 255, 150, 0.6), rgba(255, 255, 200, 0.2), transparent);
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
    z-index: 2;
    animation: moonPulse 6s infinite alternate ease-in-out;
}

/* ======= 5. Анимация мягкого свечения луны ======= */
@keyframes moonPulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* ======= 6. Фильтр для плавного затемнения ночи ======= */
.night-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 10s linear;
    pointer-events: none;
    z-index: 2;
}

body.night ul li {
    color: white;
}
body.night .date {
    color: white;
}


/* В ночном режиме затемняем экран */
body.night .night-filter {
    background: rgba(0, 0, 0, 0.2);
}

/* ======= 7. Светящиеся частицы ночью ======= */
body.night .particle {
    background: rgba(173, 255, 47, 0.9);
    box-shadow: 0 0 40px rgba(173, 255, 47, 1);
    filter: blur(3px);
}
	

/* Шрифт для заголовка "Алексей & Екатерина" (как пером) */
.invite h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5em;
    font-weight: 400;
    text-align: center;
    color: #4a2c2a; /* Можно изменить на нужный цвет */
}
.dresscode h2{
	    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    color: #4a2c2a; /* Можно изменить на нужный цвет */
}


.invite h2{
	font-family: Georgia, serif;
    font-size: 1.5em;
    font-weight: 400;
    text-align: center;
}
container.invite{
	height 100%;

}


.container {
    width: 100%;
    max-width: 600px;
	 color: #4a4a4a !important; /* Читаемый цвет текста */
    margin: auto;
    background: #f5eacc !important; /* Всегда фиксированный цвет */


   
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden; /* Обрезает все, что выходит за границы контейнера */
}

h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
}
.main-photo {
    width: 100%	;




}
dress-photo{
	weight: 100%;
}

.date {
    font-size: 1.5em;
    font-weight: bold;
    color: #6a6a6a;
}

.message {
    font-size: 1.2em;
    font-weight: bold;
}

.description {
    font-size: 1em;
    color: #6a6a6a;
    margin-top: 10px; /* замените отрицательный отступ на положительный или 0 */
}

.timing, .dresscode {
    margin-top: 20px;
    text-align: left;
    position: relative;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    font-size: 1em;
    padding: 5px 0;
    color: #4a4a4a;
}

.address {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4a4a4a;
}

/* Стили для кнопки "Мы придем!" */
.confirm-btn {
    background-color: #97b088;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
	    position: relative;
    z-index: 6;
}
.confirmation {
    position: relative;
    z-index: 5; /* кнопка теперь выше остальных элементов */
}
.geo-link-button{
	background-color: #97b088;
	margin-top: -110px;
	font-size: 1.3em;
	border: none;
	color: #f5eacc;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	border-radius: 15px;
}
/* Анимация при наведении */
.confirm-btn:hover {
    background-color: #3FAE6E; /* Чуть темнее */
    transform: scale(1.05); /* Легкое увеличение */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Анимация при клике */
.confirm-btn:active {
    transform: scale(0.98); /* Легкое уменьшение */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}


/* Стили для фото dress code */
.dress-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

	

.dress-photos img:nth-child(1) {
    transform: rotate(5deg);
    left: -120px;
}

.dress-photos img:nth-child(2) {
    transform: rotate(-14deg);
    left: 120px;
}

.dress-photos img:nth-child(3) {
    transform: rotate(15deg);
    left: -130px;
}

/* Ветки для украшения */
.branches {
    position: absolute;
    width: 100px;
    height: auto;
    z-index: 1; /* Под фото dress code */
    overflow: visible; /* Обрезает выходящие части веток */
}

.branch-1, .branch-2, .branch-3, .branch-4, .branch-5, .branch-6, .branch-7, .branch-8, .branch-9 {
    position: absolute;
    width: 150px;
    clip-path: inset(0px); /* Скрывает выходящие за контейнер части */
}

.branch-1 {
    top: -20px;
    left:  460px;
    transform: rotate(300deg);
}

.branch-2 {
    top: 300px;
    right: -20px;
    transform: rotate(-330deg);
}

.branch-3 {
    top: 550px;
    left: 470px;
    transform: rotate(310deg);
}

.branch-4 {
    top: 1230px;
    right: -30px;
    transform: rotate(20deg);
}

.branch-5 {
    top: 1310px;
    left: 460px;
    transform: rotate(-50deg);
}
.branch-6 {
    top: 2110px;
    left: -60px;
    transform: rotate(15deg);
}
.branch-7 {
    top: 2410px;
    left: 450px;
    transform: rotate(-55deg);
}
.branch-8 {
    top: 2610px;
    left: -40px;
    transform: rotate(35deg);
}
 transform: rotate(-15deg);
}
/* Таймер отсчета */
.countdown {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

#timer {
	   font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1em;
    font-weight: bold;
    color: black;
}
body.night #timer {
    color: white;
}


/* Плавная прокрутка страницы */
html {
    scroll-behavior: smooth;
}

/* Анимация появления блоков */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Когда элемент становится видимым */
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


/* Контейнер для частиц */
.particles	 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы не мешали кликам */
    overflow: hidden;
    z-index: 1; /* Под контентом */
}

/* Стили для частиц */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(173, 255, 47, 0.7); /* Лаймово-зелёный */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(173, 255, 47, 0.9); /* Светящийся эффект */
    opacity: 0;
    animation: floatAnimation linear infinite;
}

/* Анимация хаотичного движения */
@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50px + 100px * var(--dirX)), calc(-80vh + 160px * var(--dirY))) rotate(360deg) scale(1);
        opacity: 0;
    }
}
/* Вечерний режим – мягкий закатный свет */
body.evening {
    background: linear-gradient(to bottom, #2c3e50, #ff7e5f, #feb47b); /* Синее небо, переходящее в закат */
    filter: brightness(0.9);
    transition: background 5s ease-in-out, filter 5s ease-in-out;
}

/* Контейнер с легким теплым свечением */
body.evening .container {
    background: #f5eacc; /* Темный теплый тон */
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.5); /* Закатное свечение */
    color: #f5eacc;
}


/* Заголовки и основной текст получают теплые оттенки */
body.evening h2,
body.evening h3,
body.evening .message,
body.evening .description,
body.evening .date,
body.evening .address {
   
}

/* Кнопки становятся слегка оранжевыми */
body.evening .confirm-btn {
    background-color: #ff8c42; /* Закатный оранжевый */
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.8);
}

body.evening .food-btn {
    background-color: #ffb347;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.8);
}

/* Дополнительное свечение в вечернем режиме */
.evening-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(255, 102, 51, 0.2) 10%, transparent 80%);
    animation: glowPulse 20s infinite alternate ease-in-out;
}
body.morning-day {
    background: linear-gradient(to bottom, #ffd8b0, #f9f9f9);
    transition: background 10s ease-in-out, filter 10s ease-in-out;
}

body.day-evening {
    background: linear-gradient(to bottom, #a3cce0, #ffae80);
    transition: background 10s ease-in-out, filter 10s ease-in-out;
}

body.evening-night {
    background: linear-gradient(to bottom, #3a3a60, #0a1e32);
    transition: background 10s ease-in-out, filter 10s ease-in-out;
}

body.night-morning {
    background: linear-gradient(to bottom, #1c2933, #ffe6d3);
    transition: background 10s ease-in-out, filter 10s ease-in-out;
}
body.night .main-photo {
    filter: brightness(1.1) saturate(1.2);
    transition: filter 10s ease-in-out;
}
body.night .container .message,
body.night .container .description,
body.night .container .date,
body.night .container .address,
body.night .container h2,
body.night .container h3,
body.night .container p,
body.night .container li {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
.childhood-section {
    margin-top: 40px;
    text-align: center;
}

.childhood-section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2em;
    color: #4a4a4a;
    margin-bottom: 10px;
}



.childhood-photos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.childhood-photos img {
    width: 580px;
    height: auto;
  
	margin-top: -230px;
	
    object-fit: cover;
    transition: transform 0.3s ease;
}

.childhood-photos img:hover {
    transform: scale(1.05);
}
.our-story {
    padding: 30px 0;
    margin-left: -20px; /* уберёт левый промежуток */
    margin-right: -20px; /* симметрично, если нужно справа больше ширины */
    overflow: visible !important;
}

.story-sprite {
    width: calc(100% + 40px); /* на 40px шире контейнера */
    max-width: none;
    display: block;
    object-fit: cover;
    margin-left: -20px; /* убрать промежуток слева */
}


.our-story h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.story-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}



.hill-in-container {	
    width: 850px;
    height: auto;
    display: block;
	margin: -100px auto 0 -120px;

	 transform: translateY(20px);
    border-radius: 0 0 10px 10px;
}




/* Необязательная лёгкая анимация */
@keyframes footerRise {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}
.geo-link {
    margin-top: 10px;
    text-align: center;
}

.geo-link a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
	font-size: 30px;

    transition: color 0.3s ease;
}

.geo-link a:hover {
    color: #50C878;
}

.map-icon {
    width: 20px;
    height: 20px;
}
/* ======= Адаптация под мобильные устройства ======= */
@media (max-width: 768px) {
.dorogie,
.location {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
	  transform: scale(1.3); /* увеличение почти в 2 раза *
    display: block;
    border-radius: 12px;
    transform: scale(1.05); /* или больше, если хочешь */
}

  .nashe-photo img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform: scale(1.1); /* увеличим чуть-чуть визуально */
  }
}
	
    .story-gallery img {
        width: 50%;
        max-width: 160px;
    }

    .childhood-photos img {
        width: 100%; 
        max-width: 600px;
        margin-top: -150px;
    }
    .hill-in-container {
        width: 130%;         /* немного шире контейнера для красивого эффекта */
        margin-left: -15%;   /* слегка сдвигаем влево, чтобы равномерно выходило за края */
    }

  .container {
    width: 90%;

  }

  .header {
    font-size: 1.8em;
    padding: 8px 16px;
    top: 10px;
  }

.story-sprite {
    width: 140%;
    max-width: none;
    display: block;
    margin-left: -30%;  /* регулируйте, если нужно ещё левее */
    margin-right: -10%; /* чтобы выходила за оба края */
    object-fit: cover;
	margin-left: -15%; /* если -30% недостаточно */

}
.our-story {
    overflow: visible; /* явно разрешаем выход за пределы блока */
}




  .countdown {
    font-size: 1.2em;
  }

  #timer {
    flex-wrap: wrap;
    font-size: 1.1em;
  }

  ul li {
    font-size: 0.95em;
  }
sn,
  .food-btn {
    width: 90%;
    font-size: 1em;
    padding: 10px;
  }

  .geo-link a {
    font-size: 0.95em;
  }

  .childhood-text,
  .story-text {
    font-size: 1em;
    padding: 0 10px;
  }

  .our-story h2,
  .childhood-section h2 {
    font-size: 1.8em;
  }

  h2, h3 {
    font-size: 1.4em;
  }
}

.vremya {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.timing {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.dorogie {
  display: block;
  max-width: 90%;
  margin: -160px auto 20px auto; /* поднимаем и центрируем */

  

}
.location{
	  display: block;
  max-width: 90%;
  margin: -30px auto 20px auto; /* поднимаем и центрируем */
}

.dresscode h2 {
    margin-bottom: 15px; /* уменьшить нижний отступ, чтобы приблизить к картинке */
    padding-bottom: 0;
}


.dress-pthoto {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-top: 0px; /* убедитесь, что нет верхних отступов у картинки */
}
.confirm-btn.confirmed {
    background-color: #ccc;
    cursor: not-allowed;
    transition: 0.3s ease;
}
.invitation-section {
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 15px;
}

.invitation-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #4a2c2a;
    margin-bottom: 20px;
}

.invitation-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
}

.location-section {
    padding: 15px;
    margin-bottom: 20px;
}

.location-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #4a2c2a;
    margin-bottom: 15px;
}

.location-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #444;
    line-height: 1.5;
}
.food-selection {
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 90%;
}

.food-selection h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
}

.food-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.food-btn {
    padding: 10px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f3f3f3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.food-btn:hover {
    transform: scale(1.1);
    background-color: #50C878;
    color: white;
}

#food-message {
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
    font-weight: 500;
}
 .branch-1,
  .branch-2,
  .branch-3,
  .branch-4,
  .branch-5{
    width: 100px;
    transform: scale(0.8);
  }

  .branch-1 { top: 0; left: 250px; right: 10px; transform: rotate(300deg) scale(0.8); }
  .branch-2 { top: 150px; right: 10px; transform: rotate(-330deg) scale(0.8); }
  .branch-3 { top: 300px; left: 260px; transform: rotate(310deg) scale(0.8); }
  .branch-4 { top: 800px; right: 20px; transform: rotate(20deg) scale(0.8); }
  .branch-5 { top: 900px; left: 260px; transform: rotate(-50deg) scale(0.8); }
  
  html, body {
  overflow-x: hidden;
}
.rsvp-note {
    margin-top: 10px;
    font-size: 1.1em;
    color: #444;
    font-style: italic;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    line-height: 1.4;
}
body.night .rsvp-note {
    color: white;
}

