body{
  background: linear-gradient(to bottom, #191825, #0f0f0f);
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  
}
a{
  text-decoration: none;
  color: #fff;
}

body::-webkit-scrollbar { 
  display: none;  /* Chrome, Safari, Opera */
}

/* Základní styl pro tlačítko */
.scroll-to-top-btn {
  position: fixed; /* Fixní pozice */
  bottom: 20px; /* Vzdálenost od spodní části */
  right: 20px; /* Vzdálenost od pravé části */
  display: none; /* Skrytý ve výchozím stavu */
  background-color: #272727; /* Barva pozadí tlačítka */
  color: #fff; /* Barva textu */
  border: none; /* Žádný okraj */
  border-radius: 40%; /* Zaoblené rohy */
  width: 60px; /* Šířka tlačítka */
  height: 60px; /* Výška tlačítka */
  font-size: 12px; /* Velikost textu */
  cursor: pointer; /* Kurzory ukazující, že je tlačítko klikatelné */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Stín kolem tlačítka */
  transition: opacity 0.6s ease; /* Plynulý přechod opacity */
}

.scroll-to-top-btn:hover {
  background-color: #474747; /* Barva pozadí při najetí myší */
}

.scroll-to-top-btn:focus {
  outline: none; /* Odstranění okraje kolem tlačítka při zaostření */
}

/*Slidebar*/
.slider {
    overflow: hidden;
    width: 100%;
    height: 100vh;
    position: relative;
    filter: brightness(80%);
   }
    
   .slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: slider 28s infinite;
   }
    
   .slider .slide:nth-child(1) {
      background-image: url('Pictures/1.jpg');
      animation-delay: 0s;
   }
   
   .slider .slide:nth-child(2) {
      background-image: url('Pictures/2.jpg');
      animation-delay: -5.6s;
   }

   .slider .slide:nth-child(3) {
    background-image: url('Pictures/3.jpg');
    animation-delay: -11.2s;
 }
   
   .slider .slide:nth-child(4) {
      background-image: url('Pictures/4.jpg');
      animation-delay: -16.8s;
   }
   
   .slider .slide:nth-child(5) {
      background-image: url('Pictures/5.jpg');
      animation-delay: -22.4s;
   }

 
   @keyframes slider {
    0%, 14%, 100% {
      transform: translateX(0);
      animation-timing-function: ease;
    }
    20% {
      transform: translateX(-100%);
      animation-timing-function: step-end;
    }
    94% {
      transform: translateX(100%);
      animation-timing-function: ease;
    }
   }
   

/*Logo*/
.logo {
  width: 900px;
  margin-bottom: 150px;
}

.about{
  color: aliceblue;
  font-family: 'Montserrat', sans-serif; 
  font-size: 30px;
  margin-left: 200px;
  max-width: 800px;
  padding-top: 180px;
  
}
.aboutPictures {
  width: 100%;
  margin-left: 1000px;
  margin-top: -420px;
  width: 500px;
  height: auto;
  padding-bottom: 100px;
  
}

.sluzby{
  color: aliceblue;
  font-family: 'Montserrat', sans-serif; 
  font-size: 30px;
  margin-left: 200px;
  max-width: 800px;
  padding-top: 180px;
  
}

.servicesPictures{
  margin-left: 100%;
  margin-left: 1000px;
  margin-top: -420px;
  width: 500px;
}

.kontakty{
  color: aliceblue;
  font-family: 'Montserrat', sans-serif; 
  font-size: 30px;
  margin-left: 200px;
  max-width: 800px;
  padding-top: 180px;
}

.contactPic img {
  width: 600px;
  height: auto;
}

.contactPictures iframe{
  margin-left: 900px;
  margin-top: -420px;
  margin-bottom: 100px;
  width: 700px;
  height: 450px;
}

footer{
  width: 100%;
  background-color: #1d1d1d;
  color: white;
  text-align: right;
  padding: 10px 0;
  position: relative;
  bottom: 0;
  
  
}
.footer{
  margin-right: 100px;
}

.overlay {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Zajišťuje, že overlay je nad obrázky */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Uspořádání tlačítek a loga ve sloupci */
  pointer-events: none; /* Umožňuje klikat na tlačítka i přes overlay */
  
}
/*--Button--*/
a {
  appearance: none;
  background-color: #340f49d5;;
  border: 0.3em solid #1A1A1A;
  border-radius: 0.9375em;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 3.75em;
  min-width: 0;
  outline: none;
  padding: 1em 2.3em;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
  width: 250px;
  justify-content: center; /* Zarovná vodorovně na střed */
  align-items: center; 
  
 }
 .custom-button {
  padding: 10px 20px;
  font-size: 20px;
  border: none;
  cursor: pointer;
  pointer-events: auto; /* Umožňuje klikání na tlačítko */
}

 a:disabled {
  pointer-events: none;
 }
 
 a:hover {
  color: #fff;
  background-color: #340f49;
  box-shadow: rgba(0, 0, 0, 0.39) 0 8px 15px;
  transform: translateY(-2px);
 }
 
 a:active {
  box-shadow: none;
  transform: translateY(0);
 }
 .button-group {
  display: flex;
  gap: 110px; /* Vzdálenost mezi tlačítky */
}



@media only screen and (max-width: 1440px) {
  .slider{
    width: 100%;
  }
  .about, .sluzby, .kontakty {
    margin-left: 50px;
    padding-top: 180px;
    font-size: 22px;
  }
  .aboutPictures img{
  width: 80%;
  margin-top: 100px;
  margin-left: 100px;
      
  }
  .aboutPictures{
   width: 80%;
   margin-left: 800px;
   max-width: 480px;    
  }
  .servicesPictures{
    width: 80%;
    margin-left: 800px;
    max-width: 480px;
  }
  .servicesPictures img{
    width: 80%;
  margin-top: 100px;
  margin-left: 100px;
     
   }
  .contactPictures iframe{
    width: 500px;
    height: 400px;
    margin-top: -300px;
    margin-left: 800px;
   
  }
  .overlay .logo {
    width: 60%;
  }
  .button-group {
    gap: 90px;
  }
  footer{
    width: 100%;
  }
}

@media only screen and (max-width: 1024px) {

  .slider{
    width: 100%;
  }
  .about, .sluzby, .kontakty {
    margin-left: 50px;
    padding-top: 80px;
    font-size: 22px;
    max-width: 400px;
  }
  .aboutPictures img{
    width: 80%;
    margin-top: 100px;
    margin-left: 100px;
        
    }
    .aboutPictures{
     width: 80%;
     margin-left: 500px;
     max-width: 480px;    
    }
    .servicesPictures{
      width: 80%;
      margin-left: 500px;
      max-width: 480px;
    }
    .servicesPictures img{
      width: 80%;
    margin-top: 100px;
    margin-left: 100px;
       
     }
     .kontakty{
      padding-top: 200px;
     }
    .contactPictures iframe{
      width: 400px;
      height: 300px;
      margin-top: -300px;
      margin-left: 500px;
      
    }
    .contactPic img{
      width: 400px;
    }
  .overlay .logo {
    width: 60%;
  }
  .button-group {
    gap: 90px;
  }
}
/* Pro tablety (šířka obrazovky do 768px) */
@media only screen and (max-width: 768px) {
  .slider{
    width: 100%;
  }
  .about, .sluzby, .kontakty {
    margin-left: 30px;
    padding-top: 80px;
    font-size: 18px;
    max-width: 400px;
  }
  .aboutPictures{
    width: 80%;
    margin-left: 450px;
    max-width: 480px;  
    margin-top: -320px;  
   }
   .aboutPictures img{
    width: 80%;
    margin-left: 0px;
    max-width: 480px;    
   }
   .about{
    width: 300px;
   }
   .servicesPictures{
     width: 80%;
     margin-left: 450px;
     max-width: 480px;
     margin-top: -250px;
   }
   .servicesPictures img{
     width: 80%;
     margin-top: 0px;
     margin-left: 0px;
    }

    .sluzby{
      width: 300px;
    }
    .kontakty{
     padding-top: 200px;
    }
   .contactPictures iframe{
     width: 300px;
     height: 200px;
     margin-top: -200px;
     margin-left: 400px;
     
   }
   .contactPic img{
     width: 300px;
   }
  .overlay .logo {
    width: 60%;
  }
  .button-group {
    flex-direction: column;
    gap: 20px;
  }
}

/* Pro mobily (šířka obrazovky do 480px) */
@media only screen and (max-width: 480px) {
  .slider{
    width: 100%;
    
  }
  .about, .sluzby, .kontakty {
    font-size: 28px;
    padding-top: 60px;
    text-align: justify;
    margin-left: 65px;
  }
  .aboutPictures img{
    width: 80%;
    height: auto;
  
  }
  .aboutPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;  
    margin-top: 0px;  
    font-size: smaller;
   }
   .about{
    text-align: center;
    margin-left: 90px;
   }
   .sluzby{
    text-align: center;
    margin-left: 90px;
   }
   .kontakty{
    font-size: large;
   }
  .servicesPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;
    margin-top: 0px;
  }
  .servicesPictures img{
    width: 80%;
    margin-top: 0px;
    margin-left: 0px;
    padding-top: 80px;
   }
  .contactPic img{
    width: 300px;
  }
  .contactPictures iframe{
    width: 350px;
    height: 200px;
    margin-top: 50px;
    margin-left: 0px;
  }
    .overlay .logo {
      width: 80%;
    }
  
    .button-group {
      flex-direction: column;
      gap: 20px;
    }
    body{
      max-width: 480px;
    }
    .footer{
      margin-left: 200px;
    }

}
@media only screen and (max-width: 460px) {
  .slider{
    width: 100%;
    
  }
  .about, .sluzby, .kontakty {
    font-size: 28px;
    padding-top: 60px;
    text-align: justify;
    margin-left: 65px;
  }
  .aboutPictures img{
    width: 80%;
    height: auto;
  
  }
  .about{
    font-size: 25px;
    margin-left: 70px;
    width: 330px;
    text-align: center;
  }
  .aboutPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;  
    margin-top: 0px;  
    font-size: smaller;
   }
  .servicesPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;
    margin-top: 0px;
  }
  .sluzby{
    font-size: 25px;
    margin-left: 70px;
    width: 330px;
    text-align: center;
  }
   .kontakty{
    font-size: medium;
   }
  .contactPictures iframe{
    margin-left: -10px;
  }
    

}

@media only screen and (max-width: 420px) {
  .slider{
    width: 100%;
    
  }
  .about, .sluzby, .kontakty {
    font-size: 28px;
    padding-top: 60px;
    text-align: justify;
    margin-left: 65px;
  }
  .aboutPictures img{
    width: 80%;
    height: auto;
  
  }
  .about{
    font-size: 25px;
    margin-left: 50px;
    width: 330px;
    text-align: center;
  }
  .aboutPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;  
    margin-top: 0px;  
    font-size: smaller;
   }
  .servicesPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;
    margin-top: 0px;
  }
  .sluzby{
    font-size: 25px;
    margin-left: 50px;
    width: 330px;
    text-align: center;
  }
   .kontakty{
    font-size: medium;
   }
  .contactPictures iframe{
    margin-left: -25px;
  }
}


@media only screen and (max-width: 425px) {
  .about{
    font-size: 25px;
    margin-left: 45px;
    width: 330px;
    text-align: center;
  }
  .sluzby{
    font-size: 25px;
    margin-left: 45px;
    width: 330px;
    text-align: center;
  }
  .contactPictures iframe{
    margin-left: -10px;
  }
  .kontakty{
    font-size: medium;
    margin-left: 45px;
   }
}

@media only screen and (max-width: 390px) {
  .about{
    font-size: 25px;
    margin-left: 35px;
    width: 330px;
    text-align: center;
  }
  .sluzby{
    font-size: 25px;
    margin-left: 35px;
    width: 330px;
    text-align: center;
  }
  .contactPictures iframe{
    margin-left: -15px;
  }
  .kontakty{
    font-size: medium;
    margin-left: 35px;
   }
}

@media only screen and (max-width: 360px) {
  .slider{
    width: 100%;
    
  }
  .about, .sluzby, .kontakty {
    font-size: 28px;
    padding-top: 60px;
    text-align: justify;
    margin-left: 25px;
  }
  .about{
    font-size: 20px;
    margin-left: 20px;
    width: 330px;
    text-align: center;
  }
  .aboutPictures img{
    width: 80%;
    height: auto;
  
  }
  .aboutPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;  
    margin-top: 0px;  
    font-size: smaller;
   }
   .sluzby{
    font-size: 20px;
    margin-left: 20px;
    width: 330px;
    text-align: center;
   }
  .servicesPictures{
    width: 80%;
    margin-left: 40px;
    max-width: 480px;
    margin-top: 0px;
  }
  .servicesPictures img{
    width: 80%;
    margin-top: 0px;
    margin-left: 0px;
    padding-top: 80px;
   }
  .contactPic img{
    width: 300px;
  }
  .kontakty{
    font-size: medium;
   }
  .contactPictures iframe{
    width: 300px;
    height: 200px;
    margin-top: 50px;
    margin-left: 5px;
  }
    .overlay .logo {
      width: 80%;
    }
  
    .button-group {
      flex-direction: column;
      gap: 20px;
    }
    body{
      max-width: 480px;
    }
    .footer{
      margin-left: 200px;
    }

}