/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow-x: hidden;
}
p {
    font-family: 'Old Standard TT', serif;
    font-weight: 400;
    color: #3e3a3a;
  }

/* Garland Decoration */
.garland {
    position: absolute;
    z-index: 4;
    max-width: 600px;
    pointer-events: none;
    /* background-image: url('garland.png'); */
    background-repeat: no-repeat;
}

.garland-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120px;
    background-size: auto 120px;
    background-position: center top;
}

.garland-side {
    top: 0;
    width: 80px;
    height: 100%;
    background-size: 80px auto;
    background-position: left top;
}

.garland-left {
    left: -10px;
}

.garland-right {
    right: -10px;
    transform: scaleX(-1);
}
.container {
    position: relative; /* already set */
    z-index: 2;
    max-width: 600px;
    margin: auto auto;
    background: rgba(255, 248, 240, 0.95);
    border-radius: 12px;
    padding: 125px 24px 24px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  
  /* subtle marigold background */
  .container::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('marigold-petal.png') repeat;
    background-size: 80px auto;
    opacity: 0.10;          /* very subtle */
    pointer-events: none;
    border-radius: inherit; /* match container corners */
    z-index: 1;
  }
  
  /* bump all real content above the pattern */
  .container > * {
    position: relative;
    z-index: 2;
  }
  

/* Header */
header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    color: #8c4e1c;
}

header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #8c4e1c;
    margin-top: 4px;
}

/* Invitation Text & Details & Footer */
.invite-text,
.details,
footer {
    position: relative;
    z-index: 3;
}

.invite-text {
    text-align: center;
    margin: 24px 0;
    line-height: 1.5;
    font-size: 16px;
}

.invite-text .highlight {
    font-family: 'Great Vibes', cursive;
    color: #5d3313;

    font-size: 30px;
    margin: 8px 0;
    display: block;
}
.invite-text .label {
    font-weight: 200;
    color: #9c5d3d;
    font-size: 14px;
}
.details {
    margin: 24px 0;
    font-size: 15px;
    color: #3e3a3a;
    text-align: center;
}

.details p {
    margin: 8px 0;
}

.details .label {
    font-weight: 600;
    color: #7d3b1a;
}

footer {
    text-align: center;
    font-size: 14px;
    color: #6b5a4a;
    margin-top: 16px;
}

footer .contact {
    margin-top: 8px;
    font-weight: 500;
    color: #4e3a2e;
}

/* Falling Flower Animation */
.petal {
    position: absolute;
    top: -20px;
    z-index: 3;
    width: 24px;  /* Set a base size for the petal */
    height: 24px;
    opacity: 0.85;
    pointer-events: none;
    --fall-distance: 100%;
    animation: fall 20s linear forwards;
}

.petal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(var(--fall-distance)) rotate(360deg);
        opacity: 0;
    }
}

/* Glow Animation */
@keyframes glow {
    from {
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    }

    to {
        text-shadow: 0 0 16px rgba(212, 175, 55, 1);
    }
}

hr.divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 24px 0;
}

.container {
    position: relative;
  }
  
  /* base styling for both diyas */
  .hanging-diya {
    position: absolute;
    top: 0;               /* hang from very top of container */
    width: clamp(80px, 20vw, 120px);
    pointer-events: none; /* never intercept taps */
    z-index: 2;           /* above bg, below your z-indexed text (z-index:3) */
  }
  
  /* left-hand diya */
  .hanging-diya.left {
    left: clamp(16px, 5%, 24px);
  }
  
  /* right-hand diya (mirrored) */
  .hanging-diya.right {
    right: clamp(16px, 5%, 24px);
    transform: scaleX(-1);
  }

  .Sri-Venkateswara {
    width: clamp(40px, 12vw, 50px);
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .bottom-right-kalash {
    position: absolute;       /* stick to viewport */
    bottom: clamp(12px, 5vw, 24px);
    left:  clamp(12px, 5vw, 24px);
    width:  clamp(80px, 15vw, 150px); /* scales on mobile */
    pointer-events: none;      /* clicks pass through */
    z-index: 1;                /* behind your container (which is z-index:2) */
    opacity: 0.9;              /* optional slight fade */
  }
  