/* Základní nastavení */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #f0f0f0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: black;
    border-bottom: 2px solid #ccc;
    }

h1 {
    margin: 0;
    font-size: 2em;
    color: #ffffff;
}

p {
    font-size: 1.2em;
}

/* Časová osa */
.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 30px;
    background-color: #2a2a2a;
}

.event {
    background-color: red;
    color: white;
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

.event a {
    color: white;
    text-decoration: none;
}

.event a:hover {
    text-decoration: underline;
}

/* Mapa */
#map {
    width: 100%;
    margin-top: 30px;
}

/* Detaily události */
.event-details {
    background-color: black;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-details h2 {
    font-size: 2em;
}

a {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
}

a:hover {
    text-decoration: underline;
}

.header-side {
    display: flex;
    align-items: center;
}

.header-side.left {
    margin-right: 20px;
}

.header-side.right {
    margin-left: 20px;
}

header img {
    max-width: 100px;
    margin: 0 10px;
}

header h1 {
    font-size: 2.5rem;
    text-align: center;
    flex-grow: 1;
}

header p {
    font-size: 1.25rem;
    text-align: center;
}

/* Portréty */
.portrait {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

/* Mobilní zařízení */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .header-side {
        margin: 10px 0;
        justify-content: center;
    }

    .header-side img,
    .portrait {
        width: 60px;
        height: 60px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 1rem;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .event {
        width: 90%;
    }

    .event-details {
        padding: 15px;
    }

    video {
        width: 100%;
        height: auto;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-text {
    color: white;
    font-size: 1.5em;
    font-family: 'Segoe UI', sans-serif;
    opacity: 0;
    animation: fadeInText 2s ease forwards;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}