body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
body {
    font-family: 'Cormorant Garamond';
    background: #f8f8f8;
    color: #222;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1.7;
}
.main-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}
.small-screen {
    display: none;
}
@media (max-width: 700px) {
    .big-screen {
        display: none;
    }
    .small-screen {
        display: block;
    }
}
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.15); /* transparent */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}
.logo {
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 2px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #282927;
}
.hero-fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: calc(100vw - calc((var(--karta-width) / var(--karta-height)) * 100vh));
    height: 100vh;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.hero-image {
    width: 100%;
    height: 100%;
    background: url('zdj2.jpg') right top/cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}
@media (max-width: 700px) {
    .hero-image {
        background: url('zdj1-small.jpg') center top/cover no-repeat;
        height: auto;
        min-height: 0;
    }
}
.hero-overlay {
    width: 100%;
    background: rgba(0, 0, 0, 0);
    padding: 3rem 2rem 2.5rem 2.5rem;
    border-radius: 0 0 0 0;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 0;
    color: white;
    z-index: 3;
}
.hero-overlay h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}
.scrollable-content {
    margin-left: auto;
    margin-right: 0;
    padding-bottom: 2rem;
    height: 100vh;
    width: calc((var(--karta-width) / var(--karta-height)) * 100vh);
    max-width: 100vw;
    overflow-y: auto;
    background: transparent;
    position: relative;
    z-index: 2;
    box-shadow: -2px 0 8px rgba(0,0,0,0.04);
    padding-left: 15px; /* scroll is right padding */
    box-sizing: border-box;
    border-radius: 10px;
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        transparent 18px,
        black 35px,
        black calc(100% - 35px),
        transparent calc(100% - 18px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        transparent 18px,
        black 35px,
        black calc(100% - 35px),
        transparent calc(100% - 18px),
        transparent 100%
    );
}
@media (max-width: 700px) {
    .scrollable-content {
        width: 100vw;
        height: calc((var(--karta-height) / var(--karta-width)) * 100vw);
        min-height: calc((var(--karta-height) / var(--karta-width)) * 100vw);
        margin-top: auto;
    }
}
.scrollable-content::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: calc((var(--karta-width) / var(--karta-height)) * 100vh);
    height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.363), rgba(255, 255, 255, 0.363)),
        url('karta.png') top center/100% 100% no-repeat;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}
@media (max-width: 700px) {
    .scrollable-content::before {
        width: 100vw;
        height: calc((var(--karta-height) / var(--karta-width)) * 100vw);
        bottom: 0;
        top: auto;
    }
}
.scrollable-content > * {
    position: relative;
    z-index: 2;
}
.details {
    padding: 4rem 2rem 0px;
    text-align: center;
    position: relative;
}
.details h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.countdown-timer {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}
.story {
    padding: 4rem 2rem 0px;
    text-align: center;
}
.story h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.rsvp-section {
    padding: 4rem 2rem 0px;
    text-align: center;
}
.rsvp-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
}
.rsvp-form input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
.rsvp-form button {
    padding: 0.8rem;
    background: #7a8c6e;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.rsvp-form button:hover {
    background: #5a6c4e;
}
section {
    scroll-margin-top: 80px;
}
@media (max-width: 700px) {
    .main-layout {
        flex-direction: column;
    }
    .hero-overlay h1 {
        font-size: 2rem;
    }
    .hero-overlay {
        padding: 1.5rem 1rem 1.2rem 1.2rem;
    }
    .hero-fixed {
        position: relative;
        width: 100vw;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero {
        flex-direction: column;
        min-height: unset;
        padding-top: 80px;
    }
    .hero-image {
        width: 100%;
        border-radius: 0;
    }
    .hero-overlay {
        border-radius: 0 0 12px 12px;
        padding: 2rem 1rem;
    }
    .details, .story, .rsvp-section, .address-section {
        padding: 2rem 1rem;
    }
}
.address-section {
    padding: 4rem 2rem 0px;
    text-align: center;
}
.address-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.map-container {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
/* Hamburger menu styles for small screens */
@media (max-width: 700px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        z-index: 10;
        padding: 0;
    }
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(255, 254, 254, 0.801);
        position: absolute;
        top: 100%;
        left: 0;
        width: auto;
        padding: 0.5rem 1.5rem;
        gap: 0;
    }
    .nav-links.open {
        display: flex;
    }
    .navbar .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #222;
    }
}

/* Hide hamburger on desktop */
.menu-toggle {
    display: none;
}
:root {
    --karta-width: 744;
    --karta-height: 1039;
}
@import url('https://fonts.googleapis.com/css2?family=Cormorant Garamond&display=swap');
