
body {
    margin: 0;
    line-height: 1.6;
    text-align: center;
    color: black;
    background-color: rgb(201, 245, 243);
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}
 
/* Header */
header {
    background-color: rgb(0, 90, 86);
    color: white;
    text-align: center;
    height: 80px;
    padding: 6px;
}
header h1 {
    font-size: 2em;
        margin: 0px;
        padding-top: 6px;
        padding-bottom: 0;
}
header h2 {
    font-size: 1em;
    margin-top: -12px;
    margin-bottom: 10px;
    padding: 0;
}
.blue {
  color: white;
}
#background {
    width: 250px;
    height: auto;
    position: relative;
    left: 0;
    margin: 5px;
    opacity: 100%;
    max-width: 100%;
}
 .box {
  width: 100%;
  height: 278px;
  margin-bottom: -70px;
  display: flex;
  flex-direction: row;
  background:
    linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6)),
    url("images/DSC.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

nav {
    background-color: rgb(0, 90, 86);
    padding: 12px 0px;
    width: min(440px, 100%);
    align-self: center;
    z-index: 5;
    font-size: 1.4em;
    box-shadow: rgb(0, 153, 145) 0px 0px 25px;
}
nav ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}
nav ul li {
    margin: 0 18px;
    z-index: 2;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    z-index: 2;
    font-size: 1.4em;
}
nav ul li a:hover {
    text-decoration: none;
    color: rgb(0, 153, 145);
}

.úvod {
    max-height: 300px;
    max-width: 400px;
    padding: 45px 20px;
    margin: 0 auto;
    line-height: 1.2;
    position: relative;
    color: white;
    white-space: nowrap;
}
.úvod h2 {
    position: relative;
    font-size: 2.5em;
    text-align: center;
    margin: 5px 0;
}
.úvod h3 {
    font-size: 1.36em;
    font-weight: normal;
    text-align: center;
    line-height: 1.36;
    margin: 0;
}

.info {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
    color: rgb(0, 90, 86);
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: bold;
}

.ukazky-polepu {
    margin: 0;
    color: rgb(0, 90, 86);
}
.galerie {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    color: rgb(0, 90, 86);
}

.galerie img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.galerie img:hover {
    transform: scale(1.02);
}
@media (max-width: 600px) {
    .galerie {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

#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;
}

 
/* Main Content */
.obsah {
    padding: 40px;
    padding-top: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio2 {
    display: flex;
    justify-content: center; /* horizontal */
    gap: 20px;
    flex-wrap: wrap;  
}
.portfolio2 img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 1255px) {
    .portfolio2 {
        flex-direction: column;
        align-items: center;
    }
}
.services {          /* celek služeb */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
 
.service {         /* jednotlivé služby */
    padding: 20px;
    text-align: center;
    flex: 1 1 calc(33% - 40px);
    max-width: 200px;
}
.service h3 {          /* nadpisy služeb */
    margin-top: 0;
}
 
.service p {          /* texty služeb */
    font-size: 1.2em;
}
 
 
 
 
#portfolio2 {
    background-color: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
.image-container2 {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    margin: 5px;
    border-radius: 6px;
    overflow: hidden; /* Ensures zoomed image doesn't overflow */

}
.image2 {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    object-fit: cover; /* Ensures image covers the container */
   
}
.image-container2:hover .image2 {
    transform: scale(1.04); /* Zooms in within the container */
    cursor: pointer;
}
@media (max-width: 208px) {
    #portfolio2 {
        flex-direction: column;
        align-items: center;
    }
 
    .image-container2 {
        max-width: 90%;
    }
 
    .image2 {
        width: 100%; /* Make image responsive */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Ensure the whole image is visible */
    }
}


.ceny {
    max-width: 600px;
    margin: 10px auto;
    padding: 20px;
    line-height: 1.4;
    font-size: 1.4rem;
    font-weight: bold;
    color: rgb(0, 90, 86);
}

.ceny h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.cena-služby {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid rgb(0, 90, 86);
}

.cena-služby:last-child {
    border-bottom: 1px solid rgb(0, 90, 86);
}
.cena-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
    color: rgb(0, 90, 86);
}
.cena {
    font-weight: bold;
    margin-left: 10px;
}
.závorka {
  font-size: 0.8em;
}
footer {
    background-color: rgb(0, 90, 86);
    color: white;
    padding: 30px;
    text-align: center;
}
footer h3 {
    font-size: 1.2em;
    color: white;
    font-weight: bold;
    line-height: 0.8em;
}