/* General Reset */
body {
    margin: 0;
    font-family: "Lexend Deca", serif;
    line-height: 1.6;
    color: #333;
    background-color: rgb(235, 245, 239);
}

/* Header */
header {
    background-color: white;
    color: white;
    text-align: center;
    height: 161px;
}
#background {
    width: 250px;
    height: auto;
    position: relative;
    left: 0;
    margin: 5px;
    opacity: 100%;
    max-width: 100%;
}

nav {
    background-color: rgb(164, 190, 173);
    padding: 12px 0;
    z-index: 5;
    font-size: 1.2em;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

nav ul li {
    margin: 0 15px;
    z-index: 2;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    z-index: 2;
}

nav ul li a:hover {
    text-decoration: none;
    color: rgb(235, 245, 239);
}

/* Hero Section */
.úvod {
    background-image: url('images/eliska1.jpeg');
    background-color: rgba(255, 255, 255, 0.4);
    background-blend-mode: overlay;
    background-position: center 30%;
    background-size: cover;
    max-height: 300px;
    padding-top: 50px;
    padding-bottom: 150px;
    padding-left: 50px;
    z-index: 10;
    line-height: 1.2;
    color: rgb(255, 255, 255);
    text-shadow: 1px 1px 8px rgb(58, 58, 58);
    position: relative;
    height: 300px;
    flex-direction: column;  /* Use flexbox for better control */
    justify-content: flex-start;  /* Align items to the top */
}
.úvod h2 {
    position: relative;
    font-size: 2.5em;
    margin: 0;
    max-width: 500px;
}
.úvod p {
    font-size: 1.4em;
    margin-right: 40px;
    margin-top: 20px;
    margin-bottom: 80px;
    max-width: 620px;
}
@media (max-width: 768px) {
    .úvod, .úvod p, .úvod h2 {
        text-align: center; /* Center text on mobile screens */
        padding-left: 10px;
        padding-right: 10px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }
}
#button {
    font-size: 1.4em;
    text-align: center;
    text-decoration: none;
    color:rgb(34, 34, 34);
    width: 250px;
    height: 42px;
    background-color: rgb(255, 255, 255);
    border: solid white 0px;
    border-radius: 10px;
    margin: 0px;
    padding: 12px 0;
    text-shadow: none;
    z-index: 10;
    line-height: 42px; /* Center text vertically */
    user-select: none;
    }
    @media (max-width: 768px) {
        #button, #button:hover {
            margin: auto;
        }
    }

#button:hover {
    color:rgb(164, 190, 173);
}

.lexend-deca-<uniquifier> {
    font-family: "Lexend Deca", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
  }

#ceníky  {
    font-size: 1.2em;
    text-align: center;
    margin: 40px 0;
}

.image3-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on small screens */
    gap: 10px; /* Space between images */
    justify-content: center; /* Center images in a row */
}

.image3 {
    height: 410px;
    width: auto;
    transition: transform 0.6s ease;
    object-fit: cover; /* Ensures image covers the container */
}

.image3:hover {
    transform: scale(1.04); /* Zooms in within the container */
    cursor: pointer;
}

@media (max-width: 768px) {
    .image3-container {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images */
    }

    .image3 {
        width: 80%; /* Adjust width for smaller screens */
        height: auto; /* Keep aspect ratio */
    }
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.5s ease;
}

#close-lightbox {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}
#prirodni {
    font-size: 1.2em;
    text-align: center;
}

/* Main Content */
.obsah {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.services {          /* celek služeb */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service {         /* jednotlivé služby */
    background-color: rgb(164, 190, 173);
    padding: 20px;
    box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 calc(33% - 40px);
    max-width: 200px;
}
.NADPISY {         /* NADPISY služeb */
    text-align: center;
}
.service h3 {          /* nadpisy služeb */
    margin-top: 0;
}

.service p {          /* texty služeb */
    font-size: 0.9em;
}




#portfolio2 {
    height: 100%;
    align-items: center;
    background-color: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.image-container2 {
    width: 600px;
    height: 300px;
    left: 0px;
    margin: 5px;
    margin-left: 0px;
    max-height: 600px;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden; /* Ensures zoomed image doesn't overflow */
    position: relative;
    justify-items: center;
}
.image2 {
    position: relative;
    height: 100%;
    transition: transform 0.6s ease;
    object-fit: cover; /* Ensures image covers the container */
    display: block;
}
.image2:hover {
    transform: scale(1.04); /* Zooms in within the container */
    cursor: pointer;
}
@media (max-width: 768px) {
    #portfolio2 {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images */
    }

    .image-container2 {
        width: 90%; /* Adjust width for responsiveness */
        max-width: 400px; /* Prevent it from getting too big */
        height: auto; /* Allow height to adjust automatically */
    }

    .image2 {
        width: 100%; /* Make image responsive */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Ensure the whole image is visible */
    }
}

#Těším {
    font-size: 1.6em;
    text-align: center;
    margin-top: 70px;
}

#portfolio {
    height: 100%;
    align-items: center;
    text-align: center;
    background-color: none;
    display: flex;
    justify-content: center;
}
.image-container {
    width: 330px;
    height: 600px;
    left: 0px;
    margin: 5px;
    margin-top: 0px;
    margin-left: 0px;
    max-height: 600px;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden; /* Ensures zoomed image doesn't overflow */
    position: relative;
    justify-items: center;
}
.image {
    position: relative;
    height: 100%;
    transition: transform 0.6s ease;
    object-fit: cover; /* Ensures image covers the container */
    display: block;
}
.image:hover {
    transform: scale(1.04); /* Zooms in within the container */
    cursor: pointer;
}


.contact {
    border: 2px solid rgb(255, 255, 255);
    padding: 10px 20px;
    width: 340px;
    justify-self: center;
    text-align: left;
    color: rgb(34, 34, 34);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2em;
}
@media (max-width: 390px) {
    .contact {
        scale: 0.8;
    }
}

.contact a {
    color: rgb(253, 253, 253);
    text-decoration: none;
    font-weight: bold;
}
#ikony {
    margin-bottom: 50px;
    position: relative;
    align-items: center;
    align-content: center;
}

#ig-logo {
    position: relative;
    width: 40px;
    height: 40px;
    user-select: none;
    text-decoration: none;
    opacity: 1; /* fully visible */
      visibility: visible;
      transition: opacity 0.4s ease;
  }
  #fb-logo {
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: 20px;
    user-select: none;
    text-decoration: none;
    opacity: 1; /* fully visible */
      visibility: visible;
      transition: opacity 0.4s ease;
  }

footer {
    background-color: rgb(164, 190, 173);
    height: 400px;
    color: rgb(34, 34, 34);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
footer a[href^="tel"] {
    font-size: 1.8em; /* Adjust the size as needed */
}