body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #4a5441;
    line-height: 1.6;
    background-color: #f2f8f3;
}

header {
    background: linear-gradient(to bottom, #ffffff, #f0f5f0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25em 1em;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1em;
}

nav .brand {
    font-weight: 700;
    font-size: 1.5em;
    color: #4a5441;
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: #4a5441;
    margin: 0 1em;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #90b89b;
}

.hero {
    text-align: center;
    padding: 6em 1em;
    background-color: #eaf4ea;
    background-size: cover;
    background-image: url('/static/images/title_picture.jpg');
    background-position: center;
    color: #ffffff;
    margin-top: 60px; /* to account for the fixed header */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.7em;
    font-style: italic;
    color: #f2f8f3;
    text-shadow: 5px 5px 8px rgba(0, 0, 0, 0.9); /* Výraznější textový stín */
}



section {
    max-width: 1200px;
    margin: 3em auto;
    padding: 2em;
    background: #ffffff;
    border: 1px solid #d8e4d7;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

section h2 {
    font-size: 2em;
    margin-bottom: 1em;
    color: #4a5441;
    text-align: center;
}

section p {
    font-size: 1.2em;
    margin-bottom: 2em;
    color: #4a5441;
}

footer {
    text-align: center;
    padding: 1.5em;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 3em;
    color: #4a5441;
}

footer p {
    margin: 0;
}

#auth {
    text-align: center;
}

#auth form {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 20px auto;
}

#auth input {
    padding: 10px;
    margin: 10px 0;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px;
    background-color: #8BAE92;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

button:hover {
    background-color: #78a083;
}

.flash-messages {
    background-color: #f9e3e5;
    color: #9f4245;
    border: 1px solid #f4bfc2;
    padding: 10px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

.flash-messages p {
    margin: 0;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #4a5441;
    padding: 0.5em 1em;
    display: block;
    font-weight: 700;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #90b89b;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    padding: 0.5em 0;
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    padding: 0.5em 1.5em;
    color: #4a5441;
}

.menu li:hover .dropdown {
    display: block;
}

@media (max-width: 768px) {
    .dropdown {
        display: block;
        padding-left: 20px;
    }
}

.hamburger {
    display: none;
    font-size: 2em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu.active {
        max-height: 1000px; /* Zvýšená hodnota, aby se vešly všechny položky */
    }

    .menu li {
        width: 100%;
    }

    .dropdown {
        display: block;
        position: static;
        box-shadow: none;
    }

    .hamburger {
        display: block;
    }
}


#mapa .map-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 1em;
}

#mapa .map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    #mapa .map-container img {
        max-width: 50%;
    }
}

#harmonogram {
    margin: 3em auto;
    padding: 2em;
    border: 1px solid #d8e4d7;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline {
    max-width: 500px;
    margin: 0 auto;
    border-left: 3px solid #8BAE92;
    padding-left: 20px;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 2em 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    width: 12px;
    height: 12px;
    background-color: #8BAE92;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #8BAE92;
}

.timeline-item .time {
    font-weight: 700;
    font-size: 1.2em;
    color: #4a5441;
    margin-right: 10px;
    flex-shrink: 0;
    width: 80px;
    text-align: right;
}

.timeline-item .event {
    font-size: 1.1em;
    color: #4a5441;
    background-color: #ffffff;
    padding: 0.8em 1em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

@media (max-width: 768px) {
    .timeline {
        border-left: 2px solid #8BAE92;
        padding-left: 15px;
    }

    .timeline-item .time {
        width: 70px;
    }
}

#galerie {
    max-width: 1200px;
    margin: 3em auto;
    padding: 2em;
    background: #ffffff;
    border: 1px solid #e5e0dc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Základní styl galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    cursor: pointer;
}

/* 3 sloupce na mobilních zařízeních */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 4-5 sloupců na tabletech */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Více sloupců na větších obrazovkách */
@media (min-width: 1025px) {
    .gallery {
        grid-template-columns: repeat(9, 1fr);
    }
}


/* Styl modálního okna */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f1c40f;
    text-decoration: none;
    cursor: pointer;
}

#faq {
    margin: 3em auto;
    padding: 2em;
    border: 1px solid #e5e0dc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 1em;
    border-bottom: 1px solid #e5e0dc;
    padding-bottom: 0.5em;
}

.faq-question {
    background-color: #ffffff;
    color: #4a5441;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.faq-question:hover {
    background-color: #8BAE92;
    color: #ffffff;
}

.faq-answer {
    display: none;
    padding: 10px;
    font-size: 1em;
    color: #5a4b41;
}

.faq-answer p {
    margin: 0;
}


/* Adresa místa */
.location-details {
    font-size: 1.2em;
    margin-bottom: 1em;
}

/* Fotka a mapa vedle sebe */
.location-images {
    display: flex;
    gap: 20px;
    margin-bottom: 2em;
    justify-content: center;
    align-items: center;
}

.photo-container {
    flex: 3;
    justify-content: center;
    align-items: center;
}


.place-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.place-photo2 {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.map-container {
    flex: 1;
    justify-content: center;
    align-items: center;
}

.map-thumbnail {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsivita - na menších zařízeních se fotka a mapa zobrazí pod sebou */
@media (max-width: 768px) {
    .location-images {
        flex-direction: column;
    }
    .place-photo {
        width: 80%;
    }
    .map-thumbnail {
        width: 50%;
    }
    .map-container,
    .photo-container {
        flex: none;
    }
}

/* Odkaz na webové stránky */
.website-link {
    text-align: center;
    font-size: 1em;
}

.website-link a {
    color: #d4a373;
    font-weight: bold;
    text-decoration: none;
}

.website-link a:hover {
    text-decoration: underline;
}

.modal button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 20px 30px;
    font-size: 36px;
    border-radius: 50px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

.modal button:hover {
    opacity: 1;
}

.modal button:active {
    transform: translateY(-50%) scale(0.95);
}

.content-section {
    margin: 3em auto;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #d8e4d7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    padding: 2em;
}

.content-wrapper .left,
.content-wrapper .right {
    flex: 1;
}

.content-wrapper .left img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.content-wrapper .right h2 {
    font-size: 2em;
    margin-bottom: 1em;
    color: #4a5441;
}

.content-wrapper .right p {
    font-size: 1.2em;
    color: #4a5441;
}

/* Responsivita pro mobil */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        padding: 1em;
    }
}


#paf h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
    color: #4a5441;
    text-align: center;
}

.paf-table-wrapper {
    display: flex;
    justify-content: center;
}

.paf-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 400px; /* úzká tabulka */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    font-size: 0.95em;
}

.paf-table th,
.paf-table td {
    text-align: center;
    padding: 0.4em 0.6em;
    color: #4a5441;
}

.paf-table thead {
    background-color: #8BAE92;
    color: white;
}

.paf-table tbody tr:nth-child(even) {
    background-color: #f4f7f4;
}

.paf-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}


.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 poměr stran */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}