body {
    margin: 0;html {
    scroll-behavior: smooth; /* Hladké rolovanie */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #333;
    padding: 10px;
    color: black;
    text-align: center;
    z-index: 1000; /* Zabezpečí, aby bolo menu nad ostatnými sekciami */
}

header a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

section {
    background-color: #333;
    padding: 50px 20px;
    min-height: 50vh;
    color: white;
    display: flex; /* Umožní flexbox */
    justify-content: center; /* Horizontálne vycentrovanie */
    align-items: center; /* Vertikálne vycentrovanie */
    flex-direction: column; /* Nastaví smer flexboxu na stĺpce */
}

.parallax {
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.content {
    background-color: #333;
    padding: 20px;
    opacity: 0.8;
    text-align: center; /* Vycentrovanie textu */
}

    font-family: Arial, sans-serif;
}

header {
    background: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

.parallax {
    background-image: url('tvoj-obrazok.jpg'); /* Nahraď cestu k svojmu obrázku */
    height: 400px; /* Výška parallax sekcie */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-in-out; /* Hladký prechod opacity */
    opacity: 1; /* Počiatočná opacity */
}

section.hidden {
    opacity: 0; /* Sekcie budú polopriehľadné, keď sú skryté */
}

.content {
    max-width: 800px; /* Maximálna šírka obsahu pre lepší vzhľad */
    text-align: center; /* Vycentrovanie textu */
    color: withe;
}

h2 {
    margin-bottom: 10px;
}

p {
    margin: 5px 0;
}
