:root {
    --main-color:#06c;
    --background-color:rgb(233, 241, 221);
}

body {
    background: var(--background-color);
    font-family: "Georgia", "Times New Roman", Times, serif;
    margin: 0;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-style: wavy;
}


.container {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    min-height: 100vh;
    width: 100%;
    text-align: center;
}

.mobile-header {
    display: none;
}

.header-image {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
}

.footer-image {
    width: 30%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
}

.hero {
    grid-column: 2;
    background-color: var(--background-color);
    padding: 5vh 5vw;
}

.hero h1 {
    font-size: 3rem;
}

p {
  font-size: 1.1rem;
}

.hero p,
.info-section p {
    text-align: center;
    line-height: 1.7;
}

.info-section {
    margin-bottom: 2.5rem;
}

.info-section ul {
    display: inline-block;
    text-align: left;
    line-height: 1.7;
    margin: 0 auto;
}

.island-grid {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    gap: 0.6rem 1.25rem;
    text-align: left;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    align-items: start;
}

.island-name {
    font-weight: bold;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.6;
}

.island-grid > span:last-child,
.island-grid > span:nth-child(2n) {
    font-size: 1rem;
    line-height: 1.6;
}


.popup-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;

    transition: 0.3s ease;

    display: inline-block;
    padding: 14px 32px;
    border-radius: 0; /* keeps it sharp */

    border: 2px solid;
    background: transparent;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;

}

/* when visible */
.popup-button.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

.title-row {
    display: block;
    gap: 1rem;
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.6rem;
}

.hero h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.title {
    flex: 1;
    margin: 0;
}

.date {
    flex-shrink: 0;
    margin-top: 0;
    white-space: nowrap;
    padding-top: 0;
    font-size: 1.2rem;
    
}

.wedding-gift {
    display: block;
    width: 100%;
    margin: 0 0 1rem 0;
    padding-top: 0.5rem;
}

.wedding-gift p {
    margin: 0.3rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.remark-left-border {
    border-left: 2px solid #000000;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #000000;
}

.remark-box {
    border: 1px solid #000000;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.02);
}

.remark-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: inherit;
    font-weight: bold;
    color: #000000;
}

.page-overlay {
    position: fixed;
    inset: 0;

    background-color:  var(--background-color);
    background-image: url("../assets/senyors.png");
    background-size: 50%;   /* smaller image */
    opacity: 1;

    pointer-events: none;
    z-index: -1;
}

.rsvp-button {
    display: inline-block;
    padding: 12px 36px;
    border: 2px solid;
    background: transparent;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Language Switcher */
.hero {
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 8px 14px;
    border: 1px solid #111111;
    background: transparent;
    color: #111111;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    border-radius: 6px;
    min-width: 46px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lang-btn:hover,
.lang-btn.active {
    background-color: #111111;
    color: white;
    border-color: #111111;
}

@media (max-width: 720px) {
    .lang-switcher {
        position: static;
        width: 100%;
        justify-content: center;
        margin: 0 0 1rem;
        padding: 0 0 10px;
    }

    .lang-btn {
        flex: 1 1 30%;
        max-width: 90px;
    }
}



@media (orientation: portrait) {

    .mobile-header {
        background-color: var(--background-color);
        display: block;
        height: 8vh;
        text-align: center;
    }

    .mobile-header img {
        width: 100%;
        height: auto;
        display: block;
    }
    .container {
        grid-template-columns: 1fr;
    }
    .hero {
       grid-column: 1;
       padding: 3vh 5vw;

    }

    .header-image {
        width: 70%;
    }

    .footer-image {
        width: 60%;
    }

    .lang-switcher {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    /* 1. Force the main container to take up the full phone width */
    main, .container {
        width: 90% !important;
        padding: 10px;
        margin: 0 auto;
    }

    /* 2. Stack any multi-column layouts into a clean vertical list */
    .row, .flex-container {
        flex-direction: column;
    }

    /* 3. Scale down overly large headings so they don't wrap awkwardly */
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.6rem !important;
    }

    /* 4. Ensure images don't spill off the edge of the glass */
    img {
        max-width: 100%;
        height: auto;
    }
}