header {
    position: relative;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #4a2c2c;
  margin: 0;
  scroll-behavior: smooth;
}

.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #d48c9f;
}

.hamburger {
  grid-column: 1;
  justify-self: start;
  font-size: 1.8rem;
  cursor: pointer;
  color: #d48c9f;
  display: block;
  top: 0px;
  right: 5px;
  position: absolute;
}

/* 🌿 MENU POD HEADEREM */
.menu-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 10%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  text-align: center;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-menu nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-menu nav a {
  text-decoration: none;
  color: #d48c9f;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu nav a:hover {
  color: #b96f82;
}

/* 📱 WIDOK MOBILNY */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    padding: 0;         /* usuwa pustą przestrzeń */
  }

  .nav-menu nav {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 15px;
    border-top: 1px solid #f0d5dc;
  }

  .nav-menu.show nav {
    display: flex; /* pojawia się dopiero po kliknięciu hamburgera */
  }
}

div img {        
  display:block;
  margin-left:auto;
  margin-right:auto;
}

/* --- HERO --- */
.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  color: #ffeef2;
}

.hero-text p {
  font-size: 1.2rem;
  color: #ffeef2;
}

/* --- SECTIONS --- */
section {
  padding: 50px 20px;
  text-align: center;
}

section h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #d48c9f;
}


/* --- MIDDLE --- */
.middle {
  position: relative;
  text-align: center;
  width: 100%;
  padding: 0px;
  color: white;
}

.middle img {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  filter: brightness(50%);
}

.middle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.middle-text h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #ffeef2;
}

.middle-text p {
  font-size: 1.2rem;
  color: #ffeef2;
}

.middle button {
  padding: 12px;
  border: 1px solid white;
  background-color: transparent;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  height: 10vh;
  width: 25vw;
}

.middle button:hover {
  background-color: #cea7b3;
}

/* --- SEKCJA O NAS --- */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 10%;
}

.flower-column {
  flex: 1;
  text-align: center;
}

.flower-image {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.text-column {
  flex: 2;
  color: #5c3a42;
}

.text-column h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #d48c9f;
  margin-bottom: 15px;
}

.text-column p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    padding: 60px 5%;
  }

  .flower-column {
    display: none; /* 🌸 zdjęcie znika na wersji mobilnej */
  }

  .text-column {
    flex: 1;
    text-align: center;
  }
}

.content_padding {
  padding: 0 30px
}

h2.line {
  position: relative;
  padding-bottom: 1rem;
  padding-top: 1rem
}

h2.line span {
  font-size: 1.5rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
  padding: 0 20px;
  background-color: white;
}

h2.line::before {
  content: "";
  position: absolute;
  height: 1px;
  top: calc(50%);
  left: 0;
  right: 0;
  background-color: #d48c9f;
}

.gallery {
  padding: 20px 20px;
  text-align: center;
}

.rsvp {
  padding: 20px 20px;
  text-align: center;
}

/* --- RSVP FORM --- */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
}

input,
select {
  padding: 12px;
  border: 1px solid #f2cbd5;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
}

button {
  padding: 12px;
  background-color: #d48c9f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #b56b82;
}

/* --- LOCATION --- */
.location {
  padding: 20px 10%;
  background-color: white;
  text-align: center;
  margin-bottom: 40px;
}

.location iframe {
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.location h2 {
  font-family: 'Great Vibes', cursive;
  color: #d48c9f;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.locations-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: nowrap;
}

.location-box {
  flex: 1;
  background-color: #fff9fb;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #f3dfe4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.location-box h3 {
  color: #d48c9f;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.location-box p {
  color: #5c3a42;
  margin-bottom: 15px;
  font-size: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 12px;
}

/* --- ANIMOWANA LINIA --- */
.divider {
  width: 2px;
  background-color: #f0cfd8;
  position: relative;
  overflow: hidden;
}

.divider::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d48c9f;
  animation: draw-line 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes draw-line {
  0% {
    top: 100%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 1;
  }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
  .locations-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .divider {
    display: none; /* linia znika na telefonie */
  }

  .location-box {
    width: 90%;
  }

  .map-container iframe {
    height: 200px;
  }
}

/* --- FOOTER --- */
footer {
  background-color: #ffeef2;
  color: #4a2c2c;
  text-align: center;
  padding: 30px 15px;
}

footer .names {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

/* --- ADMIN --- */
.table-container {
  overflow-x: auto;
  margin: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  border: 1px solid #f2cbd5;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #ffe6ec;
}

.export-btn {
  display: inline-block;
  margin: 15px;
  padding: 10px 15px;
  background: #d48c9f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

/* --- GIFT --- */
.gift {
  border-radius: 8px;
  margin: 10px;
  background-color: #fcfafa;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.gift th.giftright{
  text-align: center;
  padding: 5px;
}

.gift th {
  background-color: #fcfafa;
  border: none;
  padding: 5px;
  text-align: right;
}

/* --- THANK YOU PAGE --- */
.thankyou {
  text-align: center;
  padding: 60px 20px;
}

.thankyou h1 {
  font-family: 'Great Vibes', cursive;
  color: #d48c9f;
  font-size: 3rem;
}

.thankyou p {
  color: #4a2c2c;
  font-size: 1.2rem;
  margin-top: 20px;
}

/* --- ANIMACJE --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 600px) {
  .hero img {
    height: 35vh;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  form {
    width: 90%;
  }
}

/* --- ANIMOWANE SERDUSZKA --- */
.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.heart {
  position: absolute;
  bottom: 0;
  width: 15px;
  height: 15px;
  background: rgba(255, 182, 193, 0.7);
  transform: rotate(45deg);
  animation: rise linear forwards;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background: inherit;
  border-radius: 50%;
}

.heart::before {
  top: -7.5px;
  left: 0;
}

.heart::after {
  left: -7.5px;
  top: 0;
}

@keyframes rise {
  from {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }

  to {
    transform: translateY(-100vh) rotate(45deg);
    opacity: 0;
  }
}

/* --- ULEPSZONA RESPONSYWNOŚĆ --- */

/* Dla ekranów do 900px (tablety, małe laptopy) */
@media (max-width: 900px) {
  .hero img {
    height: 40vh;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  form {
    width: 80%;
  }
}

/* Dla ekranów do 600px (telefony w pionie) */
@media (max-width: 600px) {

  body {
    font-size: 16px;
    padding: 0;
    margin: 0;
  }

  /* HERO — zdjęcie + tekst */
  .hero img {
    height: 30vh;
    object-fit: cover;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  /* SEKCJE */
  section {
    padding: 30px 15px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section p {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* FORMULARZ */
  form {
    width: 90%;
    padding: 15px;
    box-shadow: none;
  }

  input,
  select,
  button {
    font-size: 1rem;
    padding: 10px;
    border-radius: 6px;
  }

  button {
    background-color: #d48c9f;
    font-weight: bold;
    padding: 12px;
  }

  /* MAPA */
  .location iframe {
    width: 100%;
    height: 250px;
  }

  /* STOPKA */
  footer {
    padding: 25px 10px;
    font-size: 0.9rem;
  }

  footer .names {
    font-size: 1.5rem;
  }

  /* PANEL ADMINA */
  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 6px;
  }

  /* --- RESPONSYWNOŚĆ --- */
  @media (max-width: 600px) {
    .timeline-container {
      width: 90%;
    }

    .event {
      width: 90%;
    }
  }

  /* SERDUSZKA – lżejszy efekt na telefonach */
  .heart {
    width: 12px;
    height: 12px;
  }

  .heart::before,
  .heart::after {
    width: 12px;
    height: 12px;
  }
}

/* --- LICZNIK ODLICZANIA --- */
.countdown {
  text-align: center;
  margin-top: 30px;
}

.countdown p {
  font-size: 1.1rem;
  color: #5c3a42;
}

#countdown-timer {
  font-size: 2rem;
  color: #d48c9f;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-top: 10px;
}
