body, html {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/**** reusable ****/
.row {
    max-width: 1140px;
    margin: 0px auto;
}

/**** pozadí ****/
body {
    background-color: rgb(0, 0, 0);
}

/**** animační pozadí ****/
.wrapper {
    width: 100%;
    min-height: 750px;
    overflow: hidden;
    position: relative;
    opacity: 1;
    display: flex;
}

.wrapper > div{
    width: 100%;
    height: 100%;
    position: absolute;
    animation: animate 25s infinite;
    opacity: 0;
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
}

.wrapper > div:nth-child(2){
    animation-delay: 5s;
}
.wrapper > div:nth-child(3){
    animation-delay: 10s;
}
.wrapper > div:nth-child(4){
    animation-delay: 15s;
}
.wrapper > div:nth-child(5){
    animation-delay: 20s;
}
@keyframes animate{
    10%{
        opacity: 1;
    }
    20%{
        opacity: 0.7;
    }
    30%{
        opacity: 0;
    }
    40%{
        transform: scale(1.2);
    }
}

/* Logo + lajny hlavní stránka */
.container-logo {
    position: absolute;
    display: flex;
    top: 290px;
    left: 50%;
    flex-direction: column;
}

.top-line {
    position: relative;
    display: inline-block;
    bottom: 20px;
    height: 0.5px;
    background-color: white;
    width: 600px;
    animation: fadeInUp 2s forwards;
    opacity: 0;
}

.bottom-line {
    position: relative;
    display: inline-block;
    top: 0px;
    height: 0.5px;
    background-color: white;
    width: 600px;
    animation: fadeInUp 2s forwards;
    opacity: 0;
}

.container-logo img {
    width: 580px;
    height: auto;
    animation: fadeInUp 2s forwards;
    opacity: 0;
    animation-delay: 0.5s;
    z-index: 200;
}

.container-logo p {
    display: inline-block;
    font-size: 18px;
    color: white;
    text-align: center;
    transform: translate(-50%, -50%);
    animation: fadeInUp 2s forwards;
    opacity: 0;
    animation-delay: 0.7s;
    font-size: 16px;
    text-transform:uppercase;
    letter-spacing: 1.5px;
    word-spacing:1.5px;
    font-family: Roboto;
    font-weight: 400;
    z-index: 200;
}

/*** navigace ***/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 55px;
  background-color: rgba(21, 21, 21, 0.5);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

/* Přidání nové třídy pro změnu pozadí při aktivním menu */
.navbar.menu-active .nav-links {
  display: none; /* Skryje původní menu */
}

/* Odkazy v menu */
.nav-links {
  display: flex;
  gap: 20px;
  margin-top: 0;
}

.nav-links a {
  padding: 3px 20px;
  display: inline-block;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: Roboto;
  font-weight: 300;
}

.nav-links a:hover {
  transition: border-bottom 0.5s;
  border-bottom: 1px solid rgb(134, 126, 90);
  color: rgb(134, 126, 90);
  font-weight: 300;
}

/* Hamburger menu */
.menu-toggle {
  position: absolute;
  right: 20px;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  cursor: pointer;
  display: none;
  z-index: 600;
}

.hamburger img, .close-btn img {
  width: 30px;
  height: 30px;
}

.hamburger, .close-btn {
  display: block;
}

.close-btn {
  display: none;
}

/* Mobilní zobrazení od 1060px a menší */
@media (max-width: 1060px) {
  .menu-toggle {
    display: flex;
  }

  /* Zobrazení navigace při aktivaci menu */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    gap: 0px;
    z-index: 500;
    padding-top: 10px;
    padding-bottom: 5px;
  }

  .nav-links a {
    padding-bottom: 4px;
    margin-bottom: 2px;
  }

  /* Aktivní menu - zobrazení odkazů */
  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .close-btn {
    display: none;
  }

  /* Když je menu aktivní, hamburger zmizí, křížek se zobrazí */
  .nav-links.active + .menu-toggle .hamburger {
    display: none;
  }

  .nav-links.active + .menu-toggle .close-btn {
    display: block;
  }

  /* Zobrazení pozadí při otevřeném menu */
  .nav-links.active + .menu-background {
    display: block;
  }
}



/**** vyjíždění loga na hlavní stránce ****/
@keyframes fadeInUp {
    0% {
       transform: translate(-50%, 500px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/**** obrázky instagram a FB na uvodní stránce ****/
.instaa-fbbb img {
    width: 30px;
    z-index: 10000;
    position: absolute;
    top: 40%;
    right: 0px;
    background-color: rgba(21, 21, 21, 0.5);
    position: fixed;
    z-index: 1000;
    padding: 18px 19px 8px 19px;
}

.emotikona-insta img {
    width: 38px;
    margin-top: 56px;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 15px;
}

/******* about as ******/

.heading-main h2:before {
    content: "";
    display: block;
    width: 300px;
    border-bottom: 1px solid rgb(134, 126, 90);
    margin-bottom: 30px;
}

.heading-main h2 {
    color: rgb(255, 255, 255);
    font-family: Roboto;
    font-size: 30px;
    font-weight: 100;
    margin-top: 0px;
    padding-bottom: 40px;
    padding-top: 100px;
    text-transform:uppercase;
    letter-spacing: 2px;
}

.kdo-jsme-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    display: inline-block;
    margin-top: 0px;
    margin-left: 100px;
}

.kdo-jsme-text p {
    width: 65%;
    color: rgb(255, 254, 254);
    font-family: Roboto;
    font-weight: 300;
    font-size: 16px;
    margin-top: -55px;
    text-align: left;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.6;
    margin-left: 200px;
}

.vice-informaci {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    display: inline-block;
    margin-top: 30px;
    margin-left: 300px;
}

.vice-informaci a {
    font-family: Roboto;
    background: transparent;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 5px;
    color: rgba(223,190,106,0.7);
    padding: 12px 20px;
    border-radius: 0;
    background: linear-gradient(270deg, rgba(223,190,106,0.8), rgba(146,111,52,0.8), rgba(34,34,34,0), rgba(34,34,34,0));
    background-position: 1% 50%;
    background-size: 300% 300%;
    text-decoration: none;
    border: none;
    border: 1px solid rgba(223,190,106,0.3);
    transition: all 0.7s ease-in-out; 
    margin-bottom: 0px;
    white-space: nowrap;
}

.vice-informaci a:hover{
    color: #fff;
    border: 1px solid rgba(223,190,106,0);
    background-position: 99% 50%;
    }

/****** úprava design a inovace ******/

.gallery-DaI {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.container-DaI {
  display: flex;
  width: 100%;
  padding: 10px 20px 10px 20px;
  box-sizing: border-box;
  margin: 0 auto;
  margin-bottom: 15px;
}

.image-DaI {
    flex: 1.2;
    object-fit: cover;
    overflow: hidden;
    transform: scale(0.97);
}

.image-DaI img {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.image-DaI img:hover {
    opacity: 0.5;
    transform: scale(1.05) translateY(-10px);
}

.text-DaI {
    flex: 1;
    color: rgb(255, 254, 254);
    font-family: Roboto;
    font-weight: 200;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.5;
}

.text-DaI p {
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: -120px;
}

.text-DaI a {
    text-decoration: none;
}

.text-DaI h1 {
    display: inline-block;
    margin: 10px 0 0px; /* Mezery kolem názvu */
    color: white;
    font-size: 20px; /* Velikost textu */
    font-weight: 300;
    font-family: Roboto;
    letter-spacing: 1px;
    z-index: 500;
    border: 1px solid black;
    box-shadow: 0px 0px 15px #747171;
    
    padding: 10px 25px;
    transition: all 0.7s ease-in-out; 
}

.text-DaI h1:hover {
    transition: color 0.2s;
    color: rgba(162, 144, 46, 0.97);
}

.tlacitko-vice-DaI {
    display: inline-block;
    margin: 30px auto 70px; /* Centrovat tlačítko */
}

.tlacitko-vice-DaI a {
    text-decoration: none;
}

.tlacitko-vice-DaI h3 {
    font-family: Roboto;
    background: transparent;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(223,190,106,0.7);
    padding: 20px 80px;
    border-radius: 0;
    background: linear-gradient(270deg, rgba(223,190,106,0.8), rgba(146,111,52,0.8), rgba(34,34,34,0), rgba(34,34,34,0));
    background-position: 1% 50%;
    background-size: 300% 300%;
    text-decoration: none;
    border: none;
    border: 1px solid rgba(223,190,106,0.3);
    transition: all 0.7s ease-in-out; 
    margin-bottom: 0px;
    white-space: nowrap;
}

.tlacitko-vice-DaI h3:hover {
    color: #fff;
    border: 1px solid rgba(223,190,106,0);
    background-position: 99% 50%;
    }

.hlav-body {
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0,0,0,0.7)), url(../img/obr-back.jpg);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Nastavení základního stylu pro tělo stránky */
.body-contr {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kontejner pro všechny boxy */
.container-all-hesla {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dvě kolony */
    grid-template-rows: repeat(2, 1fr);    /* Dvě řady */
    gap: 20px;
    width: 60%;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 50px;
    margin: 135px 0;
}

/* Styly pro jednotlivé boxy */
.box-hesla {
    padding: 10px;
    position: relative;
    text-align: center;
}

/* Nadpisy */
.box-hesla h2 {
    font-size: 1.6rem;
    margin-bottom: 0px;
    color: white;
    font-family: Roboto;
    font-weight: 400;
}

/* Texty */
.box-hesla p {
    font-size: 1rem;
    color: white;
    font-family: Roboto;
    font-weight: 300;
    line-height: 1.6;
}

/* Pseudo-elementy pro rohy boxů (pravý úhel čáry) */
.box-hesla::before,
.box-hesla::after {
    content: '';
    position: absolute;
    background-color: rgb(134, 126, 90);
}

/* Levý horní roh */
.box-all1::before {
    top: 0;
    left: 0;
    width: 200px;
    height: 1px;
}

/* Horní okraj pro levý horní roh */
.box-all1::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 280px;
}

/* Pravý dolní roh */
.box-all4::before {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 1px;
}

/* Dolní okraj pro pravý dolní roh */
.box-all4::after {
    bottom: 0;
    right: 0;
    width: 1px;
    height: 280px;
}


/**** naše realizace ****/
.gallery-realizace {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.item-2 {
    width: calc(33.33% - 10px);
    margin-bottom: 30px;
    text-align: center;
}

.img-realizace {
    position: relative;
}

.img-realizace img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-realizace .hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Skryté na začátku */
    transition: all 0.7s ease-in-out;  /* Plynulý přechod */
}

.img-realizace:hover .hover {
    opacity: 1; /* Zobrazí se při hover */
}

.img-realizace:hover .normal {
    opacity: 0.5; /* Skryje normální obrázek při hover */
}

.item-2 h3 {
    display: inline-block;
    margin: 10px 0 10px; /* Mezery kolem názvu */
    color: white;
    font-size: 16px; /* Velikost textu */
    font-weight: 300;
    font-family: Roboto;
    letter-spacing: 1px;
    z-index: 500;
    border: 1px solid black;
    box-shadow: 0px 0px 20px #747171;
    padding: 12px 35px;
    transition: all 0.7s ease-in-out; 
}

.item-2 h3:hover {
   transition: color 0.2s;
    color: rgba(162, 144, 46, 0.97);
}

.tlacitko-vice-realizaci {
    display: inline-block;
    margin: 30px auto 0px; /* Centrovat tlačítko */
}

.tlacitko-vice-realizaci a {
    text-decoration: none;
}

.tlacitko-vice-realizaci h3 {
    font-family: Roboto;
    background: transparent;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(223,190,106,0.7);
    padding: 20px 80px;
    border-radius: 0;
    background: linear-gradient(270deg, rgba(223,190,106,0.8), rgba(146,111,52,0.8), rgba(34,34,34,0), rgba(34,34,34,0));
    background-position: 1% 50%;
    background-size: 300% 300%;
    text-decoration: none;
    border: none;
    border: 1px solid rgba(223,190,106,0.3);
    transition: all 0.7s ease-in-out; 
    margin-bottom: 0px;
    white-space: nowrap;
}

.tlacitko-vice-realizaci h3:hover {
    color: #fff;
    border: 1px solid rgba(223,190,106,0);
    background-position: 99% 50%;
    }

/**** kontaktní formulář ****/
.kontaktni-formular {
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0,0,0,0.2)), url(../img/obr-back.jpg);
    background-size: cover;
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.oslovte-nas-backg {
    max-width: 500px;
    height: 600px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 50px 50px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 30px;
}

.formular-nazev p {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #fff;
    font-weight: 300;
    font-family: ROBOTO;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.box {
    width: 580px;
    position: relative;
    top: 5%;
}

.box input[type="text"], .box input[type="email"], .box input[type="tel"], .box textarea {
    width: 100%;
    display: block;
    margin: 10px auto;
    border: 1px solid rgba(255, 255, 255, 0.71);
    padding: 17px;
    border-radius: 15px;
    font-size: 15px;
    background-color: transparent !important;
    color: white !important;
    outline: none;
    font-weight: 400;
    font-family: Roboto;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
}

.box input[type="submit"] {
    width: 90%; /* Upravíme na 100% pro lepší responsivitu */
    background: none;
    display: block;
    margin: 30px auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.71);
    padding: 12px;
    font-size: 15px;
    border-radius: 15px;
    outline: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    font-weight: 300;
    font-family: Roboto;
    box-sizing: border-box; /* Zajištění, že padding neovlivní šířku */
}

input::placeholder, textarea::placeholder {
    color: rgb(167, 167, 167);
}

.box input[type="text"]:focus, .box input[type="email"]:focus, .box input[type="tel"]:focus, textarea:focus {
    border: 1px solid white !important; /* Zvýraznění okrajů */
    background-color: transparent !important; /* Pozadí zůstane transparentní */
    color: white !important; /* Bílé písmo */
}

.box input[type="submit"]:hover {
    background-color: rgba(0, 0, 0, 0.37);
    color: rgb(134, 126, 90);
}

input:-webkit-autofill, textarea:-webkit-autofill {
    background-color: transparent !important; /* Transparentní pozadí pro autofill */
    color: white !important; /* Bílé písmo pro autofill */
    border: 1px solid rgb(134, 126, 90) !important; /* Okraje zůstanou stejné */
    box-shadow: 0 0 0px 1000px transparent inset !important; /* Odstraní stíny při autofillu */
}

.mezera-form-kont {
    margin: 45px;
}

/**** kontakt ****/

.paticka:before {
    content: "";
    width: 98%;
    border-bottom: 1px solid rgb(134, 126, 90);
    position: absolute;
    margin-top: 2px;;
    display: block;
    left: 50%;
    transform: translate(-50%, -50%);
}

.informace-o-nas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-decoration: none;
}

.vsechno-info {
    width: calc(33.33% - 10px); /* Dvě položky na řádek, s mezerou */
    margin-bottom: 20px; /* Mezera mezi řádky */
    text-align: center; /* Centrovat text */
    text-decoration: none;
}

.vsechno-info h4 {
    color: rgb(134, 126, 90);
    font-weight: 300;
    font-family: Roboto;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 7%;
     letter-spacing: 3px;
}

.vsechno-info p {
    color: white;
    font-weight: 300;
    font-family: Roboto;
    font-size: 13px;
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration: none;
}

a[href^="tel"] {
    text-decoration: none !important; /* Zruší podtržení */
    color: inherit !important;        /* Zajistí, že barva bude odpovídat textu */
}

.paticka-obr img {
    width: 400px;
    position: relative;
    margin-top: 20px;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.footer-text {
    width: 100%;
    position: absolute;
    text-align: center;
    padding: 5px 0;
    background-color: rgba(15, 15, 15, 0.97);
    color: rgba(145, 145, 145, 0.6);
}

/**** Stránka o nás ****/

.box-back-o-nas h2 {
    font-family: Roboto;
    font-size: 35px;
    font-weight: 300;
    text-transform:uppercase;
    color: #ffe6ad;
    letter-spacing: 4px;
    margin-top: 85px;
    text-align: center;
    padding-left: 40px;
    padding-right: 40px;
}

.jg--home {
  position: relative;  /* Dáváme pozici relativní pro pozicování šipky v headeru */
}

.scroll-down {
  position: absolute;  /* Umístí šipku absolutně v rámci headeru */
  bottom: 25px;        /* 20px od dolního okraje headeru */
  left: 50%;           /* Vycentrování horizontálně */
  transform: translateX(-50%);  /* Vycentrování šipky na střed */
  z-index: 9999;       /* Zajišťuje, že bude šipka nad ostatními prvky */
}

.scroll-down img {
  width: 38px;        /* Nastaví velikost šipky */
  height: auto;       /* Zachová proporce obrázku */
  cursor: pointer;    /* Změní kurzor na ruku při najetí na šipku */
}

.scroll-down img:hover {
  width: 43px;   
}

@media (max-width: 768px) {
  .scroll-down img {
    width: 30px;
  }
    .scroll-down {
    bottom: 80px;
    }
}

@media (max-width: 480px) {
  .scroll-down img {
    width: 30px;
  }
    .scroll-down {
    bottom: 120px;
    }
}

.content {
    margin-top: 60px;
    margin-left: 10%;
    margin-right: 10%;
    text-align: center;
}

.content h2 {
    display: inline-block;
    color: white;
    font-family: Roboto;
    font-size: 22px;
    font-weight: 200;
    margin-top: 0px;
    padding-top: 50px;
    text-transform:uppercase;
    letter-spacing: 1.5px;
}

.content h2:after {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 1px solid rgb(134, 126, 90);
    margin-top: 10px;
}

.intro-text {
    color: rgb(255, 254, 254);
    font-family: Roboto;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0px;
}

.image-photo-o-nas {
    width: 450px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 2px;
}

.info {
    display: block;
    justify-content: space-between;
    margin: 10px 0px;
    text-align: center;
}

.name {
    color: rgb(134, 126, 90);
    font-family: Roboto;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.4;
}

.position {
    color: rgb(134, 126, 90);
    font-weight: 300;
    word-spacing: 0px;
    font-size: 14px;
}

.additional-text {
    color: rgb(255, 254, 254);
    font-family: Roboto;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 45px;
}

.mezera-kont-form-onas {
    margin-top: 50px;
}

/******* stránky DaI *******/

.hlavni-obr-DaI h1 {
    margin-top: 55px;
    text-align: center;
    font-family: Roboto;
    font-size: 45px;
    font-weight: 100;
    text-transform:uppercase;
    color: #ffe6ad;
    letter-spacing: 8px;
    margin-bottom: 40px;
    transform: scale(0);
    animation: zoomInJednotliv 2s ease forwards;
    background: linear-gradient(to bottom, rgba(51, 51, 51, 1), rgba(51, 51, 51, 0.1));
    padding-top: 30px;
}

    @keyframes zoomInJednotliv {
      from {
        transform: scale(0);
      }
      to {
        transform: scale(1);
      }
    }

.hlavni-obr-DaI p {
    color: rgb(255, 254, 254);
    font-family: Roboto;
    font-weight: 200;
    font-size: 16px;
    margin-top: 0px;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.5;
    text-align: center;
    margin-left: 15%;
    margin-right: 15%;
}

.gallery-IaD {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
    margin-left: 6%;
    margin-right: 6%;
    margin-bottom: 15px;
}

.fade-in {
    opacity: 0;
    transform: scale(0); /* Zmenší obrázek pro efekt přiblížení */
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: scale(1); /* Obrázky se zvětší na původní velikost */
    transition-delay: 0.2s; /* Zpoždění před zahájením přechodu */
    transition: transform 1.5s ease;
}

.item-3 {
    width: calc(33.33% - 1%);
    margin-bottom: 4%;
    text-align: center;
    overflow: hidden;
}

.item-3 img {
    width: 100%;
    height: auto; /* Zachovat poměr stran */
    opacity: 0.6;
    transition: all 0.3s ease-in-out; 
}

.item-3 img:hover {
    opacity: 1;
     transform: scale(1.2);
}

    .mezera-inovace-paticka {
    margin: 12px;
    }

/******* tlačítko všechny inovace *******/

.header-obr-all-inovace {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0,0,0,0.7)), url(../img/obr3.jpg);
    background-size: cover;
    width: 100%;
    min-height: 750px;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

.logo-nadpis-all-inovace {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.logo-nadpis-all-inovace h2 {
    display: block;
    margin-top: 100px;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 0px;
    font-family: Roboto;
    font-size: 35px;
    font-weight: 300;
    text-transform:uppercase;
    color: rgba(162, 144, 46, 0.97);
    letter-spacing: 8px;
}

.line-inovace {
    width: 0;
    height: 0.1px;
    background-color: white; 
    position: absolute;
    margin-top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: drawLine 2s ease-out forwards; /* Spustí animaci */
}

/* Animace pro roztahování čáry */
@keyframes drawLine {
    0% {
        width: 0;              /* Na začátku je šířka 0 */
        opacity: 0;
    }

    100% {
        width: 95%;            /* Na konci animace čára roztáhne na 95% šířky */
    }
}

/* Kontejner pro názvy */
.title-container {
    text-align: center;  /* Text bude vycentrován */
}

/* Styly pro jednotlivé názvy */
.title {
    opacity: 0;               /* Počáteční stav: text je neviditelný */
    transform: translateY(20px); /* Počáteční pozice textu je posunuta dolů */
    animation: fadeInUp-element 1s ease-out forwards; /* Animace, která začne při načtení stránky */
    margin: 20px 0;             /* Mezery mezi názvy */
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    text-transform:uppercase;
    color: white;
    letter-spacing: 7px;
    padding-top: 10px;
}

/* Definice animace fadeInUp */
@keyframes fadeInUp-element {
    0% {
        opacity: 0;            /* Začátek animace, text je neviditelný */
        transform: translateY(20px); /* Počáteční posun dolů */
    }
    100% {
        opacity: 1;            /* Konec animace, text je plně viditelný */
        transform: translateY(0);   /* Text se vrátí na původní pozici */
    }
}

/* Časování animace pro každý název */
.title:nth-child(1) {
    animation-delay: 0s;  /* První název se objeví okamžitě */
}

.title:nth-child(2) {
    animation-delay: 0.3s;  /* Druhý název se objeví po 0.3 sekundě */
}

.title:nth-child(3) {
    animation-delay: 0.6s;  /* Třetí název se objeví po 0.6 sekundě */
}

.title:nth-child(4) {
    animation-delay: 0.9s;  /* Čtvrtý název se objeví po 0.9 sekundě */
}

.title:nth-child(5) {
    animation-delay: 1.2s;  /* Pátý název se objeví po 1.2 sekundě */
}

.title:nth-child(6) {
    animation-delay: 1.5s;  /* Pátý název se objeví po 1.2 sekundě */
}

.title:nth-child(7) {
    animation-delay: 1.8s;  /* Pátý název se objeví po 1.2 sekundě */
}

.mezera-pred-gellery {
    margin-top: 40px;
}


.gallery-vsechny-inovace {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 70px;
}

/******* realizace *******/

.header-obr-realizace {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0,0,0,0.9)), url(../img/obr1.jpg);
    background-size: cover;
    width: 100%;
    min-height: 750px;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

.gallery-realizace-jednotliv {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 60px;
    margin-left: 6%;
    margin-right: 6%;
}

.container-jednotlive-realizace {
    position: absolute;
    left: 30px;
    bottom: 10vh;
    text-align: left;
    width: 100%;
    opacity: 0.8;
}

.line-jednotlive-realizace {
    width: 950px; /* Čára bude o něco širší než nadpis */
    height: 1px;
    background-color: white;
    margin-bottom: 5px;
    position: relative;
    opacity: 0;
    animation: slideInrealizace 2s ease-out forwards; /* Animace pro lajnu */
}

.container-jednotlive-realizace h1 {
    font-size: 100px;
    margin: 0;
    display: inline-block; /* Nadpis bude inline s čárou */
    white-space: nowrap; /* Zabrání zalamování textu */
    opacity: 0;
    position: relative;
    animation: slideInrealizace 2s ease-out forwards 0s; /* Animace pro nadpis s prodlevou */
    font-family: Roboto;
    font-weight: 200;
    color: white;
    letter-spacing: 6px;
}

/* Definice animace pro obě části */
@keyframes slideInrealizace {
    from {
        transform: translateX(100%); /* Začínáme mimo obrazovku z pravé strany */
        opacity: 0; /* Začínáme jako neviditelné */
    }
    to {
        transform: translateX(0); /* Konec animace - pozice na levém okraji */
        opacity: 1; /* Konec animace - plná viditelnost */
    }
}

.text-realizace p {
    color: rgb(255, 254, 254);
    font-family: Roboto;
    font-weight: 200;
    font-size: 16px;
    margin-top: 70px;
    letter-spacing: 1px;
    word-spacing:0.5px;
    line-height: 1.5;
    text-align: center;
    margin-left: 10%;
    margin-right: 10%;
}

/******* tlačítko všechny realizace *******/

.all-realizace {
    margin-top:  30px;
}