@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&family=Lexend:wght@100..900&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

header {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

#headerCarousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#headerCarousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 400px;
}

header h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px; /* Výchozí velikost pro desktop */
  color: white;
  opacity: 0.75;
  margin: 0;
  z-index: 2;
  text-align: center;
  width: 90%; /* Zajistí, že text nebude překračovat okraje */
}

/* Media Query pro tablety */
@media (max-width: 768px) {
  header h1 {
    font-size: 80px; /* Menší velikost pro tablety */
  }
}

/* Media Query pro mobily */
@media (max-width: 480px) {
  header h1 {
    font-size: 60px; /* Ještě menší velikost pro mobily */
  }
}

/* Media Query pro extra malé obrazovky (např. hodinky nebo hodně malé mobily) */
@media (max-width: 320px) {
  header h1 {
    font-size: 40px; /* Velmi malý text pro malé zařízení */
  }
}

body{
    margin:0;
    overflow-x:hidden;
    font-family: 'Heebo', sans-serif;
}

nav{
    position: absolute;file:///H:/I2-RP-Svina%C5%99%C3%ADkov%C3%A1-web/img/foto5.jpg
    background-color: #49742A;
    width: 100%;
    height: 50px;
}
.nav-odkaz{
    position: absolute;
    top: 0px;
    width: 25%;
    text-align: center;
}
.odkaz-prvni{ left: 0%; }
.odkaz-druhy{ left: 20%; }
.odkaz-treti{ left: 40%; }
.odkaz-ctvrty{ left: 60%; }
.odkaz-paty{ left:80%; }

#mainNav {
  transition: background-color 0.5s, padding 0.5s;
  background-color: transparent;
  
}

#mainNav.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  
}



.button-container {
  display: flex;
  gap: 20px; 
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px; 
  height: 50px; 
  font-size: 20px;
  font-weight: 700;
  color: white;
  background-color: #4B7A2A;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
}

.button:hover {
  background-color: #375F1B;
  transform: scale(1.1);
}



main{
    margin-top: 0px;
    background-color: #404040;
    width: 100%;
    min-height: 500px;
    background-image: url(img/nahledovka4.jpg);
    background-width: 100vw;
    background-repeat: no-repeat; 
    background-position: center; 
}

main h2{
    
    opacity: 75%;
    padding-left: 7px;
    font-size: 70px;
    color: white;
}
article{
    padding-top: 10px;
    padding-left: 7px;
    padding-bottom: 10px;
    margin-left: 10px;
    color: 	white;
    font-weight: 500;
    font-size: 25px;
}

footer{
    background-color: #1B3409;
    width: 100%;
    height: 40px;
    margin-top: 0px
}

    

        
.download-link {
    position: relative;
    text-decoration: none;
    color: #ffffff; 
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.8); 
    padding: 5px 10px; 
    border-radius: 5px; 
}

.download-link:hover {
    background-color: rgba(0, 0, 0, 1); 
    color: #375F1B;
}

.download-link .tooltip {
    display: none;
    position: absolute;
    top: 40px; 
    left: 0;
    width: 200px; 
    z-index: 10;
}

.download-link:hover .tooltip {
    display: block;
}

.tooltip img {
    width: 100%; 
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 1000px){
    header h1{
        font-size: 45px;
        
    }
    nav{
       
    }
    
    .odkaz-prvni{
        top: 0px;
        left: 0%;
    } 
    .odkaz-druhy{
        top: 50px;
        left: 0%;
    }
    .odkaz-treti{
        top: 100px;
        left: 0%;
    }
    .odkaz-ctvrty{
        top: 150px;
        left: 0%;
    }
    .odkaz-paty{
        top: 200px;
        left: 0%;
    }
    
    .nav-odkaz{
        width: 100%;
    }
    
    .dropdown-content{
        width: 100%;
    }
    
    .dropdown-content a {
        width: 100%;
        padding-left: 0px;
    }
    .button{
        width: 100%;
    }
    
    
    
    main{
        
        background-color: 	#484848;
    }
    h2{
        margin-top: 85px;
    }
    h1{
        margin-top: 250px;
        
    }
}
.prompt-bold-italic {
  font-family: "Prompt", serif;
  font-weight: 700;
  font-style: italic;
}
.navbar {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.dropdown-menu {
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.95);
  transition: all 0.25s ease;
  transform-origin: top center;
  opacity: 0;
  transform: scaleY(0.9);
  display: block;
  visibility: hidden;
  position: absolute;
}

.dropdown-menu.show {
  opacity: 1;
  transform: scaleY(1);
  visibility: visible;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Zruší defaultní pozadí a orámování Bootstrap dropdownu */
.dropdown-menu {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  /* Animace */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  display: block;
  visibility: hidden;
}

/* Když se otevře */
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Položky uvnitř dropdownu */
.dropdown-item {
  color: #fff !important; /* nebo jiná barva podle tvého webu */
  background: transparent !important;
}

/* Hover efekt pro čitelnost */
.dropdown-item:hover {
  text-decoration: underline;
  background: transparent !important;
}
/* Základní vzhled dropdownu – beze změny vzhledu tvé stránky */
.dropdown-menu {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: block;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  pointer-events: none; /* aby nešlo kliknout, dokud není vidět */
}

/* Když se dropdown otevře */
.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

/* Položky v menu */
.dropdown-item {
  color: #fff !important; /* zachovej barvu textu, uprav podle pozadí */
  background: transparent !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover efekt – decentní posun a zvýraznění */
.dropdown-item:hover {
  color: #ffcc66 !important; /* lehký akcent, klidně změň */
  transform: translateX(3px);
  background: transparent !important;
}
         
