.logo {
    position: relative;
    width: 60%;
    margin: 10% auto;
    display: flex; 
    align-items: center; 
}

.logo1 {
    width: 40%;
    max-width: 100%; 
}

.text {
    width: 60%;
    padding-left: 20px;
}
h1 {
    font-size: 3rem; /* Zvětšení velikosti h1 */
}

h2 {
    font-size: 2.5rem; /* Zvětšení velikosti h2 */
}

h3 {
    font-size: 2.2rem; /* Zvětšení velikosti h3 */
}




/* Obecné styly */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --h1-font: 6rem;
    --h2-font: 3rem;
    --p-font: 1rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url("img/pozadi.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Nadpis 1 */
.Nadpis1 {
    text-align: center;
    margin-top: 5%;
}
.logo {
    position: relative;
    width: 60%;
    margin: 10% auto;
    display: flex; 
    align-items: center; 
    color: white;
}

.logo1 {
    width: 40%;
    max-width: 100%; 
    color: white;
}

.text {
    width: 60%;
    padding-left: 20px;
    color: white;
}


/* Nadpis 2 */
.Nadpis2 {
    margin-top: 5%;
    text-align: center;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 5%;
}

.carousel {
    overflow: hidden;
    width: 70%;
    margin: 0 auto;
    position: relative;
}

.slides {
    display: flex;
}

.slide {
    width: 100%;
    display: none;
}

.imgc {
    width: 100%;
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.prev,
.next {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5%;
}

.gallery1,
.gallery2,
.gallery3 {
    margin-top: 5%;
    display: flex;
    justify-content: center;
}

.gallery-item {
    margin-right: 10px;
}

.img-gallery {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.img-container {
    position: relative;
}

.text-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-container:hover .img-gallery {
    opacity: 0;
}

.img-container:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    z-index: 2;
}

.text2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.text1 {
    opacity: 1;
}

.img-container:hover .text1 {
    opacity: 0;
}

.img-container:hover .text2 {
    opacity: 1;
}

/* Formulář */
.formular {
    margin-top: 5%;
    margin-bottom: 5%;
}

form {
    background-color: #333333;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    background-color: #ffffff;
    color: #000000;
    margin-bottom: 15px;
    padding: 5px;
    width: calc(100% - 10px);
    border: none;
    border-radius: 5px;
    display: block;
}

input[type="submit"] {
    background-color: #ff9933;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

/* Responzivní styly */

/* Pro šířku obrazovky menší než 768px (mobilní zařízení) */
@media (max-width: 768px) {
    .logo {
        width: 80%;
        margin: 10% auto;
    }

    .text {
        width: 100%;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        padding-left: 0;
    }

    .carousel {
        width: 90%;
    }

    .prev,
    .next {
        padding: 5px 10px;
    }

    .gallery-item {
        margin-right: 5px;
    }

    .img-gallery {
        width: 300px;
        height: 300px;
    }
}

/* Pro šířku obrazovky mezi 768px a 1200px (tablety) */
@media (min-width: 768px) and (max-width: 1200px) {
    .logo {
        width: 70%;
        margin: 10% auto;
    }

    .carousel {
        width: 80%;
    }

    .gallery-item {
        margin-right: 8px;
    }
}

/* Pro šířku obrazovky větší než 1200px (notebooky a desktopy) */
@media (min-width: 1200px) {
    .logo {
        width: 60%;
        margin: 10% auto;
    }

    .carousel {
        width: 70%;
    }
}




