:root {
    --normalni: 140, 110, 165;
    --svetla: 215, 190, 235;
    --tmava: 85, 60, 105;
    --p_color1: 255, 255, 255;
    --p_color2: 0, 0, 0;
    --p_velka: 22px;
    --p_normalni: 15px;
    --p_mala: 12px;
    --zaloha: 500;
}

* {
    box-sizing: border-box;
}

html, body {
    height: auto;
    overflow: auto;
}

[data-scroll-container] {
    overflow: visible;
    min-height: 100vh;
    will-change: transform;
}

video {
    display: block;
    position: fixed;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

body {
    font-family: Arial, sans-serif;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0;
    line-height: 2;
}

img {
    display: block;
    margin: 20px auto;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

a {
    text-decoration: underline solid rgb(var(--tmava));
    color: rgb(var(--tmava));
}

section {
    padding: 30px 20px 60px 20px;
    margin-left: 30px;
    margin-right: 30px;
    border-top: 5px solid transparent;
    border-image: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    border-image-slice: 1;
    font-family: Poppins;
    text-align: center;
    background: 
        linear-gradient(
            to right, 
            rgba(var(--svetla),0) 0%,
            rgba(var(--svetla),0.75) 10%, 
            rgba(var(--svetla),1) 50%, 
            rgba(var(--svetla),0.75) 90%, 
            rgba(var(--svetla),0) 100%
        );
}

section h1 {
    font-family: Poppins;
    font-size: var(--p_velka);
}

section h2 {
    font-size: var(--p_velka);
    margin-bottom: 10px;
}

section p {
    margin-left: 30%;
    margin-right: 30%;
    margin-bottom: 0px;
    margin-top: 0px;
    text-align: center;
    font-size: var(--p_normalni);
}

section p.p-bold {
    font-weight: 700;
}

section p.p-small {
    font-size: var(--p_mala);
}

/* ---------------------------------------------------------------- */
    /* GALERIE OBRÁZKŮ */
    /* ---------------------------------------------------------------- */

    .gallery {
    margin-left: 20%;
    margin-right: 20%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* mezera mezi obrázky */
    justify-content: center; /* zarovná středově (volitelné) */
}

/* Náhledový obrázek */
.thumbnail {
    width: calc(50% - 5px); /* dvě na řádek + mezera */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.04);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: cover;
    display: block;
    margin-left: 5px;
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: transparent;
}

.close-btn {
    position: static;
    font-size: 40px;
    color: rgba(var(--p_color1), 1);
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: rgba(var(--p_color1), 0.7);
    transition: 0.2s ease;
}

/* ---------------------------------------------------------------- */
/* SEKCE KARTY */
/* ---------------------------------------------------------------- */

.sekce-karty {
    display: flex;
    text-align: center;
    justify-content: center;
    margin-top: 20px;
}

.sekce-karty a {
    display: block;
    border-radius: 20px 20px;
    width: 125px;
    height: auto;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 5px;
    margin-right: 5px;
    text-decoration: none;
    background-color: rgba(var(--p_color2),0.08);
    border: 3px solid rgba(var(--tmava),0);
    color: rgb(var(--p_color2));
    transition: 0.25s ease;
}
.sekce-karty-a.active {
    background-color: rgba(var(--tmava),0.32);
    border: 3px solid rgba(var(--tmava),0.5);
    transition: 0.25s ease;
}
.sekce-karty-a:hover img {
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.sekce-karty a img {
    width: 67px;
    height: auto;
    max-width: 70px;
    transition: 0.25s ease;
}

#text1 h1, #text2 h1, #text3 h1, #text4 h1 {
    margin-top: 30px;
}

#p-sekce-karty {
    font-size: calc(var(--p_mala) - 2px);
    text-align: center;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 20px;
    margin-bottom: 22px;
}

/* ---------------------------------------------------------------- */
/* SEKCE KARTY SEZNAM */
/* ---------------------------------------------------------------- */

.sekce-karty-seznam {
    display: block;
    justify-content: center;
    margin: 20px auto 0px auto;
    width: 50%;
}

.sekce-karty-seznam a {
    display: flex;
    border-radius: 20px 20px;
    width: 100%;
    height: auto;
    padding: 5px;
    margin: 10px 5px;
    text-decoration: none;
    background-color: rgba(var(--p_color2),0.08);
    border: 3px solid rgba(var(--tmava),0);
    color: rgb(var(--p_color2));
    transition: 0.25s ease;
}

.sekce-karty-seznam a p {
    margin: auto 10px auto 10px;
    text-align: left;
    line-height: 1.5;
}

.sekce-karty-seznam-a:hover img {
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.sekce-karty-seznam a img {
    width: 50px;
    height: 50px;
    max-width: none;
    margin: 5px 15px 5px 20px;
    transition: 0.25s ease;
}

/* ---------------------------------------------------------------- */
/* MENU */
/* ---------------------------------------------------------------- */

.menu {
    display: inline-block;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    padding-bottom: 2px;
    text-align: center;
    background-color: rgb(var(--tmava));
    z-index: 10;
}

.menu a {
    text-decoration: none;
    margin-left: 0px;
    margin-right: 0px;
    color: rgb(var(--p_color1));
    font-size: 12px;
    border-bottom: 1px solid;
    border-bottom-color: rgba(var(--p_color1),0.5);
    padding: 2px 16px;
    opacity: 0.7;
    transition: 0.2s ease;
}

.menu a:hover {
    opacity: 1;
    transition: 0.2s ease;
}

.menu a.menu-home, .menu a.menu-special {
    border-radius: 5px;
    background-color: rgba(var(--p_color2),0.7);
    border: 1px solid;
    border-color: rgba(var(--p_color1),0.5);
}
.menu a.menu-home:hover, .menu a.menu-special:hover {
    background-color: rgba(var(--p_color2),1);
    transition: 0.2s ease;
}
.menu a.menu-home {
    margin-right: 20px;
}
.menu a.menu-special {
    margin-left: 20px;
}