html {
  scroll-behavior: smooth;
}
:root {
  --primary: #c2a15f;
  --dark: #1f1f1f;
  --light: #f9f7f4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--light);
  color: var(--primary);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

.light-color {
  color: var(--light);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/rings.png") center/cover no-repeat;
  opacity: 0.08;
  z-index: -1;
}

section {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

h1,
h2,
h3 {
  text-align: center;
  font-family: "Carattere", cursive;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
}

h1 {
  font-size: 64px;
  letter-spacing: 2px;
}

h2 {
  font-size: 38px;
  color: var(--primary);
}

p {
  max-width: 750px;
  margin: auto;
  text-align: center;
  font-size: 24px;
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--dark);
}

.logo img {
  height: 220px;
  width: auto;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(249, 247, 244, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-header nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 30px;
  padding: 15px 0;
  margin: 0;
}

.main-header nav ul li a {
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s;
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
}

.main-header nav ul li a:hover {
  color: var(--primary);
}

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("/images/header-background.png") center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  z-index: 1;
}

.hero span {
  display: block;
  margin-top: 15px;
  font-size: 24px;
  letter-spacing: 1px;
}
#countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cd-box {
  min-width: 110px;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(194, 161, 95, 0.6);
  text-align: center;
}

.cd-number {
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cd-label {
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 2fr));
  gap: 40px;
  margin-top: 60px;
}

.box {
  background: #fdf8ed;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.box h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.time {
  font-size: 60px;
  font-family: "Story Script", sans-serif;
  color: var(--primary);
}

iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
  margin-top: 40px;
}

form {
  max-width: 600px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
select,
button,
option,
textarea {
  background-color: #fdf8ed;
  padding: 16px;
  color: var(--dark);
  font-family: "Carattere", cursive;
  font-weight: 400;
  font-size: 24px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

input::placeholder,
textarea::placeholder {
  color: var(--dark);
  opacity: 1;
  font-style: italic;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 30px;
}

button:hover {
  opacity: 0.9;
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 16px;
}
.map-box {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  margin-top: 20px;
}

.lokacija-box {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 60px;
}
.lokacija-box-inner {
  width: 100%;
}

.love-header {
  font-size: 42px;
}

#lokacija {
  padding: 60px 20px;
}

#map,
#homeMap,
#churchMap,
#partyMap {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: auto;
  border-radius: 14px;
  overflow: hidden;
}
.gesture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(172, 143, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.map-container:hover .gesture-overlay {
  opacity: 1;
  pointer-events: auto;
}

.gesture-overlay a {
  padding: 12px 25px;
  background-color: #fff;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.subheading {
  margin-top: 20px;
}

@media (max-width: 991px) {
  .lokacija-box {
    flex-wrap: wrap;
    gap: 45px;
  }
  .logo img {
    height: 160px;
    width: auto;
  }

  .cd-box {
    min-width: 90px;
    padding: 8px 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(194, 161, 95, 0.6);
    text-align: center;
  }
}
@media (max-width: 400px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 401px) and (max-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.rsvp-note {
  margin-top: 30px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #c2a15f;
}
.rsvp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.rsvp-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  position: relative;
}

.closeModal {
  margin-top: 10px;
  font-size: 1.5rem;
  background: var(--primary);
  border: none;
  cursor: pointer;
}

.confetti-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: red;
  opacity: 0.9;
  transform: rotate(0deg);
  animation: fall linear forwards;
}

@keyframes fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

.confetti-piece.round {
  border-radius: 50%;
}
.confetti-piece.triangle {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid red;
  background: none;
}

@keyframes fall {
  to {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}

.rsvp-message {
  margin-top: 15px;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: bold;
  transition: opacity 0.5s ease;
}

.rsvp-message.success {
  background-color: #f9e6b3;
  color: #4d2e00;
}

.rsvp-message.error {
  background-color: #f5c2a1;
  color: #fff;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
