:root {
    --bg-soft-pink: #fdf5f6; 
    --accent-rose: #d4a3ad;  
    --text-main: #4a4243;  
    --white-paper: #ffffff;
    --border-light: rgba(212, 163, 173, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-soft-pink);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    overflow-y: auto; 
}

#main {
    min-height: 100vh;
    width: 100%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(253, 245, 246, 0.8) 100%),
        url('./img/pink-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.invitation-box {
    background: var(--white-paper);
    padding: 60px 50px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(165, 128, 136, 0.15);
}

/* TYTUŁY */
h2 {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 60px;
    color: var(--accent-rose);
    margin-bottom: 25px;
    line-height: 1;
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-rose);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    display: inline-block;
    padding-bottom: 5px;
}

/* TEKST OFICJALNY */
.official {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.official strong {
    font-weight: 600;
    color: var(--accent-rose);
}

/* SEKCJA ŚLUB / WESELE */
.places {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.place-item {
    display: flex;
    flex-direction: column;
    align-items: center; 
    height: 100%; 
    padding: 0 10px;
}

.place-address {
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--text-light);
}

.place-time {
    font-size: 0.95rem;
    font-weight: 400; 
    color: var(--text-light);
    margin-top: auto; 
    margin-bottom: 20px; 
}

a {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-rose);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    border: 1px solid var(--accent-rose);
    padding: 10px 20px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    display: inline-block;
}

a:hover {
    background: var(--accent-rose);
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
}

/* SEKCJA RSVP */
.rsvp {
    margin: 50px 0;
    padding: 40px 20px;
    background: rgba(212, 163, 173, 0.05);
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
}

.rsvp h2 {
    font-size: 50px;
    margin-bottom: 10px;
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-style: normal;
}

.rsvp p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.rsvp button {
    background: var(--accent-rose);
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    margin-top: 10px;
}

.rsvp button:hover {
    background: #c28e99;
    box-shadow: 0 5px 15px rgba(212, 163, 173, 0.4);
}

.photo-upload {
    margin: 40px 0;
    text-align: center;
}

.photo-upload p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.photo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: var(--accent-rose);
    color: white !important; /* Wymuszenie koloru białego dla ikonki */
    border-radius: 50%;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 163, 173, 0.3);
}

.photo-button:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #c28e99;
    box-shadow: 0 6px 20px rgba(212, 163, 173, 0.5);
}

/* PODPIS */
.last-section {
    margin-top: 40px;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 45px;
    color: var(--accent-rose);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 600px) {
    .places {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .invitation-box {
        padding: 40px 25px;
    }
    
    h2 { font-size: 48px; }
    .official { font-size: 1.1rem; }
}


@media (max-width: 768px) {
    #main {
        padding: 20px 10px; 
        align-items: flex-start; 
    }

    .invitation-box {
        padding: 40px 20px; 
        margin-top: 20px;
    }

    h2 {
        font-size: 42px; 
        margin-bottom: 20px;
    }

    h3 {
        font-size: 20px;
        letter-spacing: 2px;
    }


    .official {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .places {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 40px;
    }

    .place-item {
        padding: 0 10px;
    }

    .place-item p {
        min-height: auto; 
        font-size: 0.95rem;
    }

    /* Sekcja RSVP */
    .rsvp {
        margin: 30px 0;
        padding: 30px 15px;
    }

    .rsvp h2 {
        font-size: 38px;
    }

    .rsvp button {
        width: 80%;
        padding: 15px 18px;
        font-size: 12px;
    }

    .photo-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    /* Podpis na końcu */
    .signature {
        font-size: 38px;
    }
}

@media (max-width: 376px) {
    h2 {
        font-size: 36px;
    }
    
    .official {
        font-size: 1rem;
    }

    .rsvp button {
        width: 80%; 
        padding: 15px 18px;
        font-size: 10px;
    }
}