
html, body {
    overflow-x: hidden;
}

/* ✅ FULL PAGE BACKGROUND */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background-image: url("../images/background2.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    flex-direction: column; /* header → content → footer */
}

.site-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    padding: 40px 0;
}

/* Vertical header layout */
.header-vertical {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* space between title and nav */
}

/* Title centered */
.logo {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;

    font-family: "Montserrat", sans-serif;
}

/* Change font */
body {
    font-family: "Montserrat", sans-serif;
}

h1, h2, h3 {
    font-family: "Montserrat", sans-serif;
}

h2 {
    font-size: 20px;
    letter-spacing: 0.08em;
}

p {
    text-align: left;
    hyphens: auto;
}

.content a {
    color: #4caf50;
}

.content a:visited {
    color: #4caf50;
}

.content a:hover {
    color: #8FA199;
}
.content p {
    text-align: left;
}

/* Navigation centered under title */
nav {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}


nav a,
nav button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #333;

    text-decoration: none;
    line-height: normal;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


nav a:hover,
nav button:hover {
    text-decoration: underline;
}


nav button:focus,
nav button:focus-visible {
    outline: none;
    box-shadow: none;
}


/* ✅ FOOTER (bottom of page) */
.site-footer {
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    margin-top: auto; /* pushes footer to bottom */
    position: relative;
    z-index: 1;
}

/* ✅ WRAPS THE SCROLL-PANEL */
.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 60px 20px;

    /* ✅ remove vertical centering so page can grow */
    align-items: flex-start;
}

/* ✅ THE CENTER SCROLLING PANEL */

.content {
    width: 85%;
    max-width: 800px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 30px 90px 30px 90px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);

    height: auto;
    max-height: none;
    overflow: visible;
}

.content-hero {
    position: relative;
    margin-left: -90px;
    margin-right: -90px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.content-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.content-hero h2 {
    position: absolute;

    top: -4%;
    left: 22%;
    transform: translate(-50%, -50%);

    margin: 0;
    width: 90%;

    text-align: center;
    color: rgb(0, 0, 0);

}


/* PopUp */
.guest-list {
    list-style: none;
    padding: 0;
}

.guest-list li {
    margin-bottom: 10px;
}

.register-btn {
    margin-left: 15px;
}

/* Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Popup */
/* Popup container */
.popup {
    display: none;

    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 380px;

    background: white;
    padding: 28px;
    border-radius: 14px;

    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    text-align: center;

    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 800px;

    max-height: 68vh;
    overflow-y: auto;

    box-sizing: border-box;
}


/* Popup title */
.popup h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* Form layout */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each field stacked vertically */
.popup-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Inputs full width */
.popup-field select,
.popup-field textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-align: center;

}

/* Action buttons */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}



/* Registration Page */
/* Center all registration content inside the white panel */

/* Force registration page to center its content */
.content .registration-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ✅ THIS is the missing line */
    width: 100%;
}

/* Center subtitle text properly */
.content .registration-wrapper h2,
.content .registration-wrapper .subtitle {
    text-align: center;
}

/* Guest list wrapper */
.content .guest-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;   /* ✅ center cards */
    gap: 16px;
}

/* Guest cards */
.content .guest-card {
    width: 100%;
    max-width: 520px;

    background: #9fb3aa;
    border-radius: 16px;
    padding: 16px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


/* Guest name */
.guest-name {
    font-size: 18px;
    font-weight: 500;
    text-align: left;          /* ✅ Name stays readable */
}

/* Button styling */
.guest-button {
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 14px;
}

.guest-button:hover {
    background: #4caf50;
}

.guest-button:disabled {
    background: #9ccc9c;
    cursor: default;
}



/* plus one */


.guest-actions {
    display: flex;
    flex-direction: row;     /* ✅ SAME LINE */
    gap: 8px;
    align-items: center;     /* ✅ vertical alignment */
}

/* ✅ Make form behave like a button */
.guest-actions form {
    display: inline-flex;
    margin: 0;
}


.guest-button.secondary {
    background: #4caf50;
    font-size: 13px;
}

/* remove plusOne */
.guest-button.danger {
    background: #e57373; /* soft red */
}

.guest-button.danger:hover {
    background: #ef5350;
}


/* Hero container */
.content .hero-image {
    text-align: center;
    margin: 1.5rem 0;
}

/* Image itself */
.content .fit-image {
    width: 100%;


    height: auto;
    object-fit: contain;
    object-position: center;

    display: block;
    margin: 0 auto;

    transition: transform 0.2s ease;

    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

}

/* language dropdown */
.language-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.language-select-wrapper select {
    font: inherit;
    font-size: 20px;
    font-weight: 300;
    color: inherit;

    background: transparent;
    border: none;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    line-height: 1;
    padding: 0;

    vertical-align: middle;

    position: relative;
    top: 1px;
}

.language-select-wrapper select,
.language-select-wrapper option {
    font-family: "Montserrat", sans-serif;
}

/* custom arrow */
.language-select-wrapper::after {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Hide hamburger on desktop */

.mobile-menu-button {
    display: none;
}

/* Mobile phones */
@media (max-width: 768px) {

    .logo {
        font-size: 24px;
    }

    nav {
        gap: 16px;
    }

    nav a,
    nav button {
        font-size: 16px;
    }

    .content {
        width: 95%;
        padding: 20px;
    }

    .content p {
        text-align: left;

    }

    .guest-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .guest-name {
        text-align: center;
    }

    .guest-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .popup {
        position: fixed;

        top: 15%;
        left: 50%;
        transform: translateX(-50%);

        width: 100%;
        max-height: 70%;

        overflow-y: auto;

        box-sizing: border-box;
    }

    .fit-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .language-select-wrapper select {
        font: inherit;
        font-size: 16px;
        font-weight: 400;
        position: relative;
        top: -1px;
    }

    .mobile-menu-button {
        display: block;
        margin: 0 auto;
        background: none;
        border: none;
        font-size: 32px;
        cursor: pointer;
        color: #333;
    }

    /* Hide nav by default */
    nav {
        display: none;
    }

    /* Show when hamburger clicked */
    nav.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 15px;
    }

    .content-hero {
        position: relative;
        margin-left: -20px;
        margin-right: -20px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .content-hero h2 {
        position: absolute;

        top: -10%;
        left: 45%;
        transform: translate(-50%, -50%);

        margin: 0;
        width: 90%;

        text-align: center;
        color: rgb(0, 0, 0);
        
    }
}