@import "https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500&family=Dosis:wght@500&display=swap";
@import "https://fonts.googleapis.com/css2?family=Ms+Madi&display=swap";

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #141414;
    font-family: "Dosis", sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Dancing Script", cursive;
}

a {
    transition: .3s;
    color: #838383;
}

a:hover {
    color: #f1d581;
}

.and {
    font-family: "Ms Madi", bolt;
}

h1 {
    font-size: 5rem;
    margin: 0;
    padding: 0;
}

h2 {
    text-align: center;
    font-size: 4rem;
}

h3 {
    text-align: center;
    font-size: 3rem;
}

p {
    width: 90%;
    text-align: left;
    max-width: 100rem;
    font-size: 1.5rem;
}

/* UNIFIED SECTIONS */

.section {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section--light {
    background-color: #fffaed;
    color: #141414;
}

.section--dark {
    background-color: #141414;
    color: #e9e8e8;
}

.section--dark h2 {
    margin: 0;
    color: #f1d581;
}

@media (max-width: 700px) {
    .section--dark h2 {
        text-align: center;
    }
}

.section--image {
    background-color: #000;
    color: #141414;
}

/* HEADER / NAV */

.header {
    position: fixed;
    top: 0;
    z-index: 10;
    height: 4rem;
    background-color: #fffaed;
    color: #000;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* NAV – nově s UL */
.header .nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header .nav ul {
    list-style: none;
    width: 90vw;
    max-width: 1200px;
    text-transform: uppercase;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.header .nav a {
    text-decoration: none;
    color: #838383;
}

.header .nav a:hover {
    color: #f1d581;
}

.header .nav li {
    cursor: pointer;
}

@media (max-width: 700px) {
    .header .nav ul {
        display: none;
        flex-direction: column;
        justify-content: space-evenly;
        height: 85vh;
        background-color: #141414;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100vw;
        margin: 0;
    }

    .menuButton.active + .nav ul {
        display: flex;
    }
}

/* původní logika – navázaná na .active, nechávám kvůli kompatibilitě */
.header .active + .nav {
    display: block;
}

.active + .nav {
    position: absolute;
}

.menuButton {
    cursor: pointer;
    height: 1.5rem;
    position: relative;
    display: none;
    border: none;
    background: none;
    padding: 0;
}

@media (max-width: 700px) {
    .menuButton {
        display: block;
    }
}

.menuButton .burger {
    position: absolute;
    top: -0.2rem;
    opacity: 1;
    fill: #838383;
    cursor: pointer;
    transition: .5s;
}

.menuButton .burger:hover {
    fill: #f1d581;
}

.menuButton .open {
    opacity: 0;
}

.menuButton.active .closed {
    opacity: 0;
}

.menuButton.active .open {
    opacity: 1;
}

/* WELCOME (IMAGE SECTION) */

.welcome {
    width: 100%;
    min-height: 95vh;
    background: #e9e8e8;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.welcome .welcome-blacker {
    display: none;
}

@media (max-width: 700px) {
    .welcome .welcome-blacker {
        display: block;
        width: 100%;
        background-color: rgba(240, 240, 240, .337254902);
        position: absolute;
        top: 0;
        height: 95vh;
    }
}

.welcome .welcome-image {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -10;
    margin: 0;
    transition: .5s;
    opacity: .7;
}

.welcome .welcome-image:hover {
    opacity: 1;
}

.welcome .welcome-image img {
    width: 100%;
    margin: 0;
    height: 95vh;
    object-fit: cover;
}

@media (max-width: 700px) {
    .welcome .welcome-image img {
        object-position: right;
    }
}

.welcome .text {
    max-width: 1200px;
    width: 90vw;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 700px) {
    .welcome .text {
        margin-top: 35vh;
    }
}

.welcome .text p {
    margin-top: 2rem;
    color: #000;
    font-size: 1.5rem;
    margin: 0;
    margin-top: 3.9rem;
    padding: 0;
    line-height: 1.6rem;
}

/* INFO (DARK SECTION) */

.info {
    width: 100%;
    padding: 3rem 1rem;
    box-sizing: border-box;
}

/* řádek se dvěma bloky vedle sebe */
.info-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    width: 80%;
    flex-wrap: wrap;
}

/* jeden blok: obrázek + text */
.info-item {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex: 1 1 30rem;
    box-sizing: border-box;
}

/* obrázek */
.info-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* text – nadpis nad odstavcem */
.info-text {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
}

.info-text h2 {
    text-align: left;
    margin: 0 0 0.5rem 0;
}

/* mobilní zobrazení */
@media (max-width: 700px) {
    .info-row {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-text {
        width: 90%;
    }
}

.info p {
    width: auto;
    max-width: 100%;
}

/* STORY (LIGHT SECTION) */

.story {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.story .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.story .container img {
    height: 60vh;
    width: 30vw;
    object-fit: cover;
    transition: .5s;
    margin: 1rem;
}

@media (max-width: 700px) {
    .story .container img {
        width: 90vw;
        margin: 0;
        margin-bottom: 2rem;
    }
}

.story .container p {
    width: 30vw;
    line-height: 1.7rem;
    margin: 1rem;
}

@media (max-width: 700px) {
    .story .container p {
        width: 90vw;
        margin: 0;
    }
}

@media (max-width: 700px) {
    .story .container {
        flex-direction: column;
    }
}

.story-text {
    width: 30vw;
    line-height: 1.7rem;
    margin: 1rem;
}

.story-signature {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    margin-right: 3rem;
    font-weight: 500;
}

/* PROGRAM (IMAGE SECTION) */

.program {
    min-height: 95vh;
    padding-top: 3rem;
    width: 100%;
    background-image: url(assets/image/background.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom left;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(240, 240, 240, 0.7);
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
}

.program .program-card {
    background-color: rgba(240, 240, 240, 0.7);
    margin: 1rem;
    padding: 1rem;
    display: inline-block;
    width: fit-content;
    align-items: center;
    border-radius: 8px;
}

.program h2 {
    font-size: 5rem;
    width: fit-content;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.program h3 {
    font-size: 3rem;
    margin: 0;
    width: fit-content;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.program .time {
    font-size: 1.5rem;
    padding-top: 0;
}

.program p {
    text-align: center;
    width: 80vw;
    line-height: 1.7rem;
    margin: 1rem;
    font-size: 1.5rem;
    width: fit-content;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.program .counter {
    text-align: center;
    font-size: 2rem;
    width: 30rem;
    max-width: 100%;
}

@media (max-width: 700px) {
    .program p {
        width: 90vw;
        margin: 0;
    }

    .program .counter {
        width: 90%;
    }

    .program h2 {
        font-size: 4rem;
    }
}

/* ČASOVÁ OSA */

.timeline-container {
    position: relative;
    margin: 2rem auto;
    width: 70%;
    color: rgba(0, 0, 0, .6);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.timeline-container ul {
    position: relative;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

/* svislá čára uprostřed */
.timeline-container ul::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
}

/* položky */
.timeline-container ul li {
    position: relative;
    list-style: none;
    width: 48%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

/* čas v rámečku – výchozí stav (mobil + fallback) */
.timeline-container ul li .time {
    display: block;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

/* DESKTOP – čas vedle rámečku u středové čáry */
@media (min-width: 701px) {
    .timeline-container ul li {
        padding: 1rem 2rem;
    }

    .timeline-container ul li .time {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        white-space: nowrap;
        font-size: 2rem;
    }

    /* levý sloupec – čas mezi rámečkem a středovou čárou */
    .timeline-container ul li:nth-child(odd) .time {
        right: 0rem;
        text-align: left;
    }

    /* pravý sloupec – čas mezi rámečkem a středovou čárou */
    .timeline-container ul li:nth-child(even) .time {
        left: 0rem;
        text-align: right;
    }
}

/* bublina */
.timeline-container ul li .date {
    background: rgba(240, 240, 240, 0.7);
    padding: 1rem;
    border-radius: 8px;
    color: #141414;
}

/* tečka na lince */
.timeline-container ul li::before {
    content: none;
    position: absolute;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #b28e5d;
}

/* levý / pravý sloupec */
.timeline-container ul li:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 6rem;
}

.timeline-container ul li:nth-child(odd)::before {
    right: -6px;
}

.timeline-container ul li:nth-child(even) {
    margin-left: 52%;
    text-align: left;
    padding-left: 6rem;
}

.timeline-container ul li:nth-child(even)::before {
    left: -6px;
}

/* odstranění původního kolečka z .date::after */
.timeline-container ul li .date::after,
.timeline-container ul li.done .date::after {
    content: none !important;
    display: none !important;
}

/* MOBIL – časová osa pod sebou */
@media (max-width: 700px) {
    .timeline-container {
        width: 90%;
    }

    /* schovat středovou čáru */
    .timeline-container ul::before {
        display: none;
    }

    /* všechny položky na plnou šířku */
    .timeline-container ul li {
        width: 100%;
        margin: 0 0 1.5rem 0;
        padding: 0;
    }

    /* přepíšeme levý/pravý layout z desktopu */
    .timeline-container ul li:nth-child(odd),
    .timeline-container ul li:nth-child(even) {
        text-align: center;
        margin-left: 0;
        padding: 0;
    }

    /* schovat tečky */
    .timeline-container ul li::before {
        display: none;
    }

    /* samotná bublina uprostřed */
    .timeline-container ul li .date {
        max-width: 280px;
        margin: 0 auto;
    }
}

div > a {
    text-decoration: none;
    color: #141414;
}

li.done::marker {
    display: none !important;
}

/* RSVP (DARK SECTION) */

.section-rsvp p {
    width: 90vw;
    text-align: center;
}

.section-rsvp button {
    font-size: 1.2rem;
    background: none;
    outline: none;
    border: 2px solid #e9e8e8;
    color: #e9e8e8;
    border-radius: 5px;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "Dosis", sans-serif;
    transition: .5s;
}

.section-rsvp button:hover {
    background: #e9e8e8;
    color: #141414;
}

.section-prayer-stones button {
    font-size: 1.2rem;
    background: none;
    outline: none;
    border: 2px solid #e9e8e8;
    color: #e9e8e8;
    border-radius: 5px;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "Dosis", sans-serif;
    transition: .5s;
}

.section-prayer-stones button:hover {
    background: #e9e8e8;
    color: #141414;
}

/* CONTACTS (LIGHT SECTION) */

.section-contacts {
    padding-top: 3rem;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


.section-contacts p {
    margin-top: 0;
    margin-bottom: 10px;
    width: 80vw;
    line-height: 1.7rem;
    margin: 1rem;
}

@media (max-width: 700px) {
    .section-contacts p {
        width: 90vw;
        margin: 0;
    }
}

.section-contacts .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    justify-content: center;
}

@media (max-width: 700px) {
    .section-contacts .container {
        flex-direction: column;
    }
}

.section-contacts .container .contact {
    margin: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 700px) {
    .section-contacts .container .contact {
        margin: 1.5rem;
        margin-bottom: 0;
    }
}

.section-contacts .container .contact img {
    width: 12rem;
    height: 12rem;
    max-width: none;
    border-radius: 50%;
    border: solid 3px #141414;
    transition: .5s;
}

.section-contacts .container .contact img:hover {
    transform: scale(1.05);
}

.section-contacts .container .contact ul {
    list-style: none;
    padding: 0;
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-contacts .container .contact ul a {
    font-size: 1.2rem;
    text-decoration: none;
}

/* FAQ (DARK SECTION) */

.section-faq {
    padding-top: 5rem;
    padding-bottom: 5rem;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.section-faq .box {
    width: 100%;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    justify-content: flex-start;
}

.section-faq .box p {
    margin: 0;
    margin-bottom: .3rem;
}

.section-faq .box .question {
    font-weight: 600;
}

/* PRAYER STONES (DARK SECTION) */

.section-prayer-stones p {
    width: 80vw;
}

/* MASS (LIGHT SECTION) */

.section-mass p {
    width: 80vw;
}

/* ACCOMMODATION (IMAGE SECTION) */

.section-accommodation {
    background-image: url(assets/image/background2.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.section-accommodation p {
    background: rgba(240, 240, 240, 0.7);
    padding: 1rem;
    border-radius: 8px;
}

/* GENERAL */

header {
    width: 100%;
}
