@import url("https://use.typekit.net/sof0rsb.css");

html {
    font-family: "figtree", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "figtree", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #E84189, #F4B8A0, #EF7846); 
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative; 

}

body::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/poz.ruz.png); 
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: -1; 
}

header {
    width: 20%;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 20px;
}

.logo, nav {
    opacity: 0; 
    transition: opacity 1s ease; 
}

.logo {
    text-align: center;
}

.logo img {
    max-width: 30%;
    height: auto;
}

nav {
    display: flex;
    padding: 10px;
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 1000; 
}

.scrollable-content {
    padding-top: 70px; 
}

.nav-button {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 35px;
    padding: 8px 35px; 
    font-size: 22pt; 
    display: inline-block;
    align-items: center;
    margin: 10px;
    text-align: center; 
    font-family: "figtree", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.nav-button img {
    margin-right: 10px; 
}

.nav-button.first img {
    width: 35px;
}

.nav-button:last-child img {
    width: 75px; 
}

.nav-button:hover {
    color: #E84189; 
}

.nav-button.first a {
    color: inherit; 
    text-decoration: none; 
}

.nav-button.first:hover img {
    content: url('images/ikona1ruz.png'); 
}

.nav-button:not(.first):hover img {
    content: url('images/ikona2ruz.png'); 
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
}

.gallery-container {
    display: flex;
    justify-content: center;
}

.gallery-item {
    flex: 0 0 25%; 
}

.gallery-item img {
    width: 95%; 
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
} 

#slideshow {
    background: url(images/png/cer/loznice/2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    display: flex;
    justify-content: center;
}

.slide img {
    display: block;
    margin: auto; 
    object-fit: contain;
    position: relative;
}

#slideshow2 {
    background: url(images/png/cer/loznice/2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

#slideshow3 {
    background: url(images/png/cer/loznice/11.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

#slideshow4 {
    background: url(images/png/cer/loznice/3.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

#slideshow5 {
    background: url(images/png/cer/loznice/3.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides5 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

#slideshow6 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides6 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide6 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow7 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides7 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide7 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow8 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides8 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide8 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow9 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides9 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide9 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow10 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides10 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide10 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow11 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides11 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide11 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow12 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides12 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide12 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow13 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides13 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide13 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow14 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides14 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide14 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow15 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides15 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide15 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow16 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides16 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide16 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow17 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides17 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide17 {
    width: 100%;
    display: flex;
    justify-content: center;
}

#slideshow18 {
    background: url(images/png/cer/loznice/4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
    width: 75%;
    height: 40vw;
}

.slides18 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide18 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.slides2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slides3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.slide3 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.slide2 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.prepinani {
    color: white; 
    background-color: transparent;
    font-size: 32px; 
    padding: 20px; 
    cursor: pointer;
}

.sipka {
    position: absolute; 
    top: 28%; 
    transform: translateY(-50%); 
}

.sipka img {
    width: 7vw; 
    height: auto;
}

.sipka-leva {
    left: 80vw; 
}

.sipka-prava {
    right: 80vw; 
}

footer {
    margin-top: auto; 
    color: #fff;
    text-align: center;
    padding: 10px;
}

@media only screen and (max-width: 480px) {

    .logo img {
        max-width: 70%;
        height: auto;
    }

    nav {
        font-size: 16px; 
        padding: 3px; 
    }

    .nav-button {
        font-size: 18px;
        padding: 5px 10px; 
        border-radius: 15px;
        margin: 5px;
        margin-right: 0;
    }

    .nav-button img {
        max-width: 15px; 
        height: auto;
        margin-right: 3px;
    }

    .nav-button:last-child {
        display: none;
    }

    #slideshow {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }

    #slideshow2 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }

    #slideshow3 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow4 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow5 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow6 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow7 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow8 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow9 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow10 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow11 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow12 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow13 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow14 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow15 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow16 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow17 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }
    #slideshow18 {
        width: 90vw;
        height: 65vw;
        justify-content: center;
        margin-top: 20px;
    }

    .gallery-container {
        display: flex;
        justify-content: space-between;
    }

    .gallery-item {
        flex: 0 0 33%; 
    }

    .prepinani {
        padding: 20px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        position: absolute; 
        top: 58%; 
        transform: translateY(-50%); 
        color: white;
        background-color: transparent;
    }

    .prepinani:first-child {
        left: 0; 
    }

    .prepinani:last-child {
        right: 0; 
    }

    .sipka {
        display: none;
    }

    body {
        height: 700px;
    }

    body::before { 
        height: 700px;
    }
}