
@media (max-width: 768px) {
  .sections-container {
      flex-direction: column;
      width: 100%;
  }
  .section-content {
      width: 100% !important;
  }
  header, footer {
      padding: 15px;
  }
  h2, h1 {
      font-size: 1.5rem;
  }
  button {
      width: 100%;
  }
}
    /* Reset základních stylů */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        background-color: #f9f9f9;
        margin: 0;
    }

    h1, h2 {
        font-weight: bold;
        color: #fff;
    }

    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    header {
        background-color: #007bff;
        text-align: center;
        padding: 50px 20px;
        color: #fff;
    }

    header p {
        font-size: 1.2rem;
    }

    /* Sekce */
    section {
        margin-bottom: 50px;
    }

    section h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 2rem;
        color: #333;
    }

    /* O systému */
    #about p {
        text-align: center;
        font-size: 1.1rem;
        margin-top: 10px;
        color: #555;
    }

    /* Klíčové vlastnosti */
    #features ul {
        list-style: none;
        padding: 0;
        max-width: 600px;
        margin: 0 auto;
    }

    #features ul li {
        background: #007bff;
        color: #fff;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 5px;
        text-align: center;
        font-size: 1.1rem;
    }

    /* Galerie */
    #gallery .row {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    #gallery img {
        width: 100%;
        max-width: 300px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    #gallery img:hover {
        transform: scale(1.05);
    }

    /* Kontakt */
    form {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .form-group input, .form-group textarea, .form-group select{
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .povinepole {
        font-size: 0.8em; /* Menší velikost textu */
        color: #666; /* Šedá barva místo černé */
        margin-top: 5px; /* Volitelné: malý odshora pro lepší vizuální oddělení */
        font-style: italic; /* Volitelné: kurzíva pro doplňkový vzhled */
    }


    button {
        background: #007bff;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    button:hover {
        background: #0056b3;
    }

    .sections-container {
      display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  }

  .section-content {
      width: 48%; /* Každá sekce zabere přibližně polovinu šířky */
    }

    .square-image {
width: 100%;
height: auto;
aspect-ratio: 1 / 1;
object-fit:cover;
cursor: pointer;
transition: transform 0.3s ease;
}

.image-modal {
display: none;
position: fixed;
z-index: 1000;
padding-top: 60px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.9);
}

.image-modal img {
margin: auto;
display: block;
max-width: 90%;
max-height: 90%;
}

.close-button {
position: absolute;
top: 20px;
right: 45px;
color: #fff;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}

.btn-order {
cursor: pointer;
padding: 15px 25px;
background-color: #007bff;
color: #fff;
border-radius: 5px;
text-align: center;
display: block;
margin-left: 0;
font-size: 1.2rem;
font-weight: bold;
transition: background 0.3s ease;
width: 95%; /* Šířka tlačítka podle obrazovky */
min-width: 200px;
max-width: 400px;
}
.btn-ordersada::before {
content: 'Cena 4 469Kč';
display: block;
width: 100%;
}
.btn-ordersada:hover::before {
content: 'OBJEDNAT';
}

.btn-ordersadakamery::before {
content: 'Cena 2 990Kč';
display: block;
width: 100%;
}
.btn-ordersadakamery:hover::before {
content: 'OBJEDNAT';
}

.btn-orderdily::before {
content: 'Cena 1 899Kč';
display: block;
width: 100%;
}
.btn-orderdily:hover::before {
content: 'OBJEDNAT';
}

.btn-pi::before {
content: 'Cena 2499Kč';
display: block;
width: 100%;
}
.btn-pi:hover::before {
content: 'OBJEDNAT';
}

.btn-orderdimmer::before {
content: 'Cena 249Kč';
display: block;
width: 100%;
}
.btn-orderdimmer:hover::before {
content: 'OBJEDNAT';
}

.btn-orderovladani::before {
content: 'Cena 199Kč';
display: block;
width: 100%;
}
.btn-orderovladani:hover::before {
content: 'OBJEDNAT';
}

.btn-ordercam::before {
content: 'Cena 749Kč';
display: block;
width: 100%;
}
.btn-ordercam:hover::before {
content: 'OBJEDNAT';
}

.btn-orderusb::before {
content: 'Od 149Kč';
display: block;
width: 100%;
}
.btn-orderusb:hover::before {
content: 'OBJEDNAT';
}

.btn-orderdcjack::before {
content: 'Od 99Kč';
display: block;
width: 100%;
}
.btn-orderdcjack:hover::before {
content: 'OBJEDNAT';
}




.highlight {
background-color: #007bff !important;
transition: background-color 0.7s ease;
}
.highlight .formnadpis {
color: #fff !important;
transition: color 0.7s ease;
}

.btn-obsah {
cursor: pointer;
padding: 15px 25px;
background-color: #007bff;
color: #fff;
border-radius: 5px;
text-align: center;
display: block;
margin-left: 0;
font-size: 1.2rem;
font-weight: bold;
transition: background 0.3s ease;
width: 95%; /* Šířka tlačítka podle obrazovky */
min-width: 200px;
max-width: 400px;
}

.logo {
max-width: 35%; /* Zvýší velikost na větších obrazovkách */
height: auto;
margin-bottom: 20px;
display: block;
margin-left: auto;
margin-right: auto;
}

/* Na menších obrazovkách nastav jinou maximální šířku */
@media (max-width: 768px) {
.logo {
    max-width: 100%; /* Zmenší se na mobilu */

    }
    .image-zbozi {
       width: 90%;
   }

}

.image-zbozi {
    width: 80%; /* Obrázek bude zabírat 80 % šířky rodičovského divu */
    max-width: 100%; /* Zabrání přetečení rodiče */
    height: auto; /* Zachová poměr stran */
    object-fit: cover; /* Ořízne obrázek, pokud přesahuje */
    display: block; /* Potřebné pro margin auto */
    margin: 0 auto; /* Zarovnání na střed */
    border-radius: 15px; /* Zaoblené rohy */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Decentní černý stín */
}

/* Základní styly pro tabulku */
.table-doruceni {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px; /* Výchozí velikost textu */
}

.table-doruceni th,
.table-doruceni td {
    padding: 10px;
    text-align: left;
}

/* Media query pro mobilní zařízení (šířka menší než 600px) */
@media (max-width: 950px) {
    .table-doruceni {
        font-size: 12px; /* Zmenšení textu na mobilních zařízeních */
    }

    .table-doruceni th,
    .table-doruceni td {
        padding: 5px; /* Zmenšení odsazení pro úsporu místa */
    }
}


    /* Footer */
    footer {
background: #007bff;
color: #fff;
text-align: center;
padding: 10px 0;
display: flex;
justify-content: center;
gap: 20px;
}

footer p {
font-size: 0.9rem;
margin: 0;
}

footer {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.footer-top {
margin-bottom: 10px;
}
.footer-bottom {
display: flex;
gap: 15px;
flex-wrap: wrap;
justify-content: center;
}
footer a {
color: white;
text-decoration: underline;
}

/* Zarovnání sekce na střed */
.polozka {
    text-align: center;
}

/* Styl pro tlačítka */
.btn-obsah, .btn-order {
    display: inline-block;
    margin: 10px auto;
}


/* Zachování původních stylů pro funkčnost */
.btn-obsah {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
    position: relative;
}

.btn-dily {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
    position: relative;
}

.btn-dily:hover {
    background-color: #0056b3;
}

/* Skryté seznamy obsahu */
.tistenedily {
    display: none;
    position: absolute;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 40px;
}

/* Aktivní seznam */
.tistenedily.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.kontakt-div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

}

.btn-doruceni {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.table-doruceni {
    width: 100%;
    text-align: left;
}
.table-doruceni td {
    padding: 5px;
}

.sections-container-zbozi {
   display: flex; /* Použijte flexbox pro zarovnání */
   gap: 20px; /* Mezera mezi sekcemi */
   flex-wrap: wrap; /* Zalamování sekcí na další řádek */
 }

 .section-content-zbozi {
   flex: 1; /* Roztáhnout sekce, aby měly stejnou šířku */
   min-width: 300px; /* Minimální šířka sekce */
   max-width: 400px; /* Maximální šířka sekce */
   height: auto; /* Výška se přizpůsobí obsahu */
   padding: 15px;
   background-color: #f9f9f9;
   box-sizing: border-box; /* Zahrnout padding a border do šířky */
 }

 /* Zajistěte, aby všechny sekce měly stejnou výšku */
 .sections-container-zbozi {
   align-items: stretch; /* Roztáhnout sekce na stejnou výšku */
 }

 /* Responsivní chování */
 @media (max-width: 768px) {
   .section-content-zbozi {
     flex: 1 1 100%; /* Na mobilu zabírat celou šířku */
   }
 }
