@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
/* Zakladni nastaveni */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Celkovy design */
body {
    font-family: "DM Sans", sans-serif;
    background-color: #1e1e1e; /* Černé pozadí */
    color: white;
    margin: 0;
    overflow-x: hidden;
}

/* Horni cast s odkazy */
header {
    background-color: #111;
    padding: 10px 0;
    text-align: center;
}

.social-links a {
    color: #ccc;
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
}

.social-links a:hover {
    color: #fff;
}

.social-links a img {
    width: 1.5em;
}

/* Hlavni menu */
nav {
    background-color: #222;
    text-align: center;
    padding: 15px 0;
}

#nav-logo {
    margin-bottom: -0.7em;
    width: 2em;
    display: inline-block;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    text-decoration: none;
    font-size: 18px;

    color: #ccc;
}

nav ul li a {
    font-size: 18px;
    text-decoration: none;
    color: #ccc;
}

nav ul li a:hover {
    color: #fff;
}

/* Sekce pro obrazky */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    animation-delay: calc(5s * var(--index));
}

.slider-item {
    min-width: 100%;
    height: 500px;
    display: block;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-container a {
    display: block;
}

/* Animace pro posouvání obrázků (automatické posouvání) */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(0);
    }
}

.slider-container {
    animation: slide 20s infinite;
}

/* Paticka */
footer {
    background-color: #111;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

footer p {
    color: #777;
}

/* Hlavni obsah */
#banners {
    margin: auto;
    display: block;
    backgrond-color: red;
    width: 100%;
}

.slide {
    position: relative;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.5;
}

.txtoverlay {
    position: absolute;
    left: 6em;
    bottom: 2.5em;
}
.txtoverlay-title {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-stretch: normal;
    font-size: 4vw;
    margin: 0;
    padding: 0;
}
.txtoverlay-append {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-stretch: normal;
    font-size: 2vw;
    margin: 0;
    padding: 0;
}

#chlaston-figure {
    height: 10em;
    display: inline-block;
    float: left;
}

.selectedMenu {
    font-weight: bold;
}

#content {
    margin-top: 2em;
    margin-bottom: 4em;
    width: 100%;
}

#content-text {
    text-align: justify;
    line-height: 1.5em;
}

.content-body {
    width: 80%;
    margin: 0 auto;
}

#content-text h1 {
    font-weight: bold;
    font-size: 3em;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

#content-text h2 {
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

#content-text a {
    font-weight: bold;
    text-decoration: none;
    color: gold;
}

#content ol {
    min-width: 40em;
    width: 50%;
    list-style: none;
    padding: 0;
}

#content ol li + li {
    margin-top: 1rem;
}

#content ol li {
    font-weight: 600;
    color: black;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: aliceblue;
    padding: 1.5rem;
    border-radius: 1rem;
    width: calc(100% - 2rem);
    box-shadow: 0.25rem 0.25rem 0.75rem rgb(0 0 0 / 0.1);
}

#content ol li::before {
    counter-increment: list-item;
    content: counter(list-item);
    font-size: 3rem;
    font-weight: 700;
    width: 2em;
    height: 2em;
    background: black;
    flex: 0 0 auto;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

#content ol li:nth-child(even) {
    flex-direction: row-reverse;
    background: lavender;
    margin-right: -2rem;
    margin-left: 2rem;
}

#content .scr-preview {
    width: auto;
    height: 8em;
    transition: transform 0.3s ease; /* Hladký přechod pro transformaci a pozici */
    position: relative; /* Abychom mohli posunovat obrázek relativně */
}

#content .scr-preview:hover{
    transform: scale(5); /* Zvětší obrázek o 50% */
    position: absolute; /* Pozicování obrázku absolutně */
    left: 30%; /* Horizontální centrování */
    transform: scale(5); /* Přesné centrování a zvětšení */}