/* Page entrance animation */
@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #aab39a, #6a735b);
  overflow: hidden;
  position: relative;
  color: #2f3328;
  animation: fadeInPage 1.4s ease forwards;
  opacity: 0;
}

/* linen texture overlay */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.35;
  pointer-events: none;
}

/* Names */
.names {
  font-family: 'Great Vibes', cursive;
  font-size: 70px;
  /* lighter */
  //  color: #4a523e;
  /* darker */
  color: #2f3328;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.25);
  z-index: 2;
}

.container {
  width: 50%;
  max-width: 460px;
  text-align: center;
  background: rgba(255,255,255,0.85);
  padding: 30px 25px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 2;
}

/* Floaty things */
.leaf {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #d4c27a, #8a915f);
  border-radius: 60% 40% 60% 40%;
  opacity: 0.25;
  animation: floatLeaf linear infinite;
}

.leaf:nth-child(1) { left: 10%; animation-duration: 18s; top: 110%; }
.leaf:nth-child(2) { left: 80%; animation-duration: 22s; top: 120%; }
.leaf:nth-child(3) { left: 50%; animation-duration: 26s; top: 115%; }

.heart {
  position: absolute;
  width: 20px;
  height: 20px;
  animation: floatLeaf linear infinite;
  opacity: 0.25;
  --c: #d4c27a;
  aspect-ratio: 1;
  border-image: radial-gradient(var(--c) 69%,#0000 70%) 84.5%/50%;
  clip-path: polygon(-42% 0,50% 91%, 142% 0);
  z-index: -1;
}

.heart:nth-child(1) { left: 10%; animation-duration: 18s; top: 110%; }
.heart:nth-child(2) { left: 80%; animation-duration: 22s; top: 120%; }
.heart:nth-child(3) { left: 50%; animation-duration: 26s; top: 115%; }

@keyframes floatLeaf {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-120vh) rotate(360deg); }
}

h2{
    font-family:'Playfair Display',serif;
    margin-bottom:18px;
    font-weight:600;
}

input,select{
    width:100%;
    padding:10px;
    margin:10px 0;
    border-radius:6px;
    border:1px solid #bbb;
    font-size:15px;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;

  color: #333;
  background-color: #fff;

  border: 1px solid #ddd;
  border-radius: 8px;

  resize: vertical;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textara:focus {
  outline: none;
}

button{
    margin-top:10px;
    background:#6a735b;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:30px;
    cursor:pointer;
    font-size:16px;
}

button:hover{
  background:#5c644f;
}

.hidden{
  display:none;
}

/* Vines */
.vine {
  position: absolute;
  width: 140px;
  opacity: 0.5;
  pointer-events: none;
}

.vine.top-right {
  top: -17px;
  right: -15px;
  transform: rotate(180deg);
}

.vine.bottom-left {
  bottom: 130px;
  left: -15px;
}

.couple-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(47,51,40,0.35);
  border: 6px solid #f4f6f1;
  aspect-ratio: 1 / 1;
}

/* Divider ornament */
.divider {
  margin: 60px auto 40px auto;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #6a735b, transparent);
  position: relative;
}

.divider::after {
  content: "❦";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: #6a735b;
  padding: 0 6px;
}

/* Date time styling */
.datetime {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: #4a523e;
}

.calendarLink {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.map-link a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.map-link a:hover {
  background: #444;
}

.link-button a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.link-button a:hover {
  background: #444;
}

/* Row of calendar + map links */
.link-row {
  display: flex;
  flex-wrap: wrap; /* wrap on small screens */
  gap: 10px; /* space between buttons */
  justify-content: center;
  margin-top: 20px;
}

/* Reuse existing map-link styles */
.link-row .map-link {
//  flex: 1 1 140px; /* buttons grow, min width 140px */
  text-align: center;
  padding: 10px 15px;
  border-radius: 5px;
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s ease;
}

.link-row .map-link:hover {
  background: #444;
}

/* Primary accent for calendar button */
.link-row .map-link.primary {
//  background: #c8a97e;
  color: #fff;
}

.link-row .map-link.primary:hover {
  background: #b8966b;
}

/* Contribution button already exists, ensure spacing */
.link-button {
  text-align: center;
//  margin-top: 12px;
}


/* Mobile settings */
@media (max-width: 600px) {
  body {
    justify-content: flex-start;
    padding-top: 20px;
//    padding-bottom: 20px;
    height: 90vh;
    overflow: hidden; /* prevent scroll bar */
  }

  .names {
    font-size: 60px;
    text-align: center;
    margin-bottom: 14px;
    padding: 0 12px;
  }

  .container {
    width: 88%;
    height: 65%;
    max-width: 380px;
    padding: 24px 10px;
    margin: 0 auto;
  }

  .couple-image {
    width: 95%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .divider {
    margin: 30px auto 20px auto;
  }

  .datetime {
    font-size: 24px;
//    line-height: 1.35;
  }

  .vine {
    width: 100px;
    opacity: 0.5;
  }

  .vine.top-right {
    top: -10px;
    right: -10px;
  }

  .vine.bottom-left {
    bottom: 100px;
    left: -10px;
  }

}