/* Sticky Registry Banner */
.registry-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background:rgba(239, 211, 211, 0.9); /* Floral Pink */
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 100;
}

.registry-banner a {
    color: #fff;
    text-decoration: underline;
}

.registry-banner a:hover {
    color: #ffdfdf;
}

/* Add spacing to the body to prevent content being covered by the banner */
body {
    padding-top: 50px;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: url('/images/flowers.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

/* Fix for mobile zoom effect on background */
html {
    background: url('/images/flowers.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

/* Dark overlay for readability */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darken background slightly */
    z-index: 1;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    margin: 10px 0;
    color: white;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: lighter;
    margin-bottom: 30px;
    color: white;
}

/* Wedding Invitation Container */
.invitation {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.75); /* 50% opacity */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 40px auto; /* Centers the box */
    z-index: 2;
}

.invitation h2, .invitation h3 {
    color: #b85c5c;
}

.invitation p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

/* Leave a Note Section - Matching Flower Theme */
.leave-note {
    background: rgba(239, 211, 211, 0.9); /* Soft floral pink with slight transparency */
    padding: 70px 20px;
    text-align: center;
    margin-top: 50px;
    color: white; /* White text for contrast */
}

.leave-note h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.leave-note form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: auto;
}

.leave-note input,
.leave-note textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.leave-note textarea {
    height: 120px;
    resize: none;
}

.leave-note button {
    background: #fff;
    color: #b85c5c; /* Soft floral pink */
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.leave-note button:hover {
    background: #f0d6d6; /* Light pink hover effect */
}

/* 🔴 Hide print-only section on normal screens */
.print-only {
    display: none !important;
}

/* 📄 PRINT STYLES: Show only invitation & QR code */
@media print {
    /* Hide everything by default */
    body * {
        display: none !important;
        visibility: hidden !important;
    }

    /* ✅ Show the invitation */
    .invitation, .invitation * {
        display: block !important;
        visibility: visible !important;
    }

    .invitation {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 600px;
        background: white;
        padding: 30px;
        box-shadow: none;
        color: black;
        text-align: center;
        page-break-inside: avoid;
        font-size: 1.1rem;
    }

    .invitation h2, .invitation h3, .invitation p {
        color: black;
        word-wrap: break-word;
        white-space: normal;
        overflow: hidden;
    }

    /* ✅ Show ONLY the print-only QR code */
    .print-only {
        display: block !important;
        visibility: visible !important;
        text-align: center;
        margin-top: 20px;
    }

    .print-only img {
        display: block;
        margin: 10px auto;
        width: 180px;
        height: 180px;
    }

    .print-only p {
        font-size: 1rem;
        color: black;
        word-wrap: break-word;
        white-space: normal;
    }

    /* ✅ Ensure the printed URL is readable and centered */
    .print-only p:last-child {
        font-weight: bold;
        margin-top: 5px;
        font-size: 1rem;
    }

    /* ❌ HIDE unwanted sections in print view */
    .registry-banner,
    .hero,
    .leave-note {
        display: none !important;
        visibility: hidden !important;
    }
}

