body{
    background: linear-gradient(-45deg, #9b8b8b,#bbb, #935c5c, #322e2e);
    background-size: 400% 400%;
    animation: bg-gradient 15s ease infinite;

}

@keyframes bg-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bootstrap-word-break-keep-all {
    word-break: keep-all;
  }

.card-certificate {
    margin-bottom: 20px;
}
.card-img-top-certificate {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.card-img-top-certificate:hover {
    transform: scale(1.05);
}
.modal-certificate {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content-certificate {
    margin: auto;
    display: block;
    width: 80%; /* Adjust as needed, smaller for responsiveness */
    max-width: 100%; /* Max width 70% of screen */
    max-height: 100%; /* Max height 80% of screen */
    object-fit: contain; /* Ensure image fits within modal */
}

#caption-certificate {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content-certificate, #caption-certificate {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-certificate {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-certificate:hover,
.close-certificate:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Next & previous buttons */
.prev-certificate,
.next-certificate {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next-certificate {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev-certificate:hover,
.next-certificate:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


body > header {
    justify-content: center;
    max-width: 2064px;
    z-index: -1;
}

.pozadi {
    background: rgb(174, 126, 126);
}

.stin-box{
    box-shadow: 2px 2px 7px red;
    background-color: rgb(217, 226, 239);
}


.button {
    background-color: rgb(217, 226, 239);
}

li {
    width: 120px;
    text-align: center;
    text-shadow: 2px 2px 5px red;
    box-shadow: 2px 2px 7px red;
    margin-left: 40px;
    font-weight: bold;

    }


nav {
    margin-left: 14%;
    margin-right: 14%;

}

.fixed-aspect-ratio-aspect {
    width: 300px; /* Nastavte pevnou šířku (nebo výšku) - upravte dle potřeby */
    aspect-ratio: 5 / 3; /* Nastavte požadovaný poměr stran (šířka / výška) */
    object-fit: cover; /* Doporučuje se použít i object-fit pro kontrolu oříznutí/vyplnění */
    overflow: hidden; /* Pro oříznutí obrázku */
}

h1, h2 {
    text-shadow: 2px 2px 7px red;
}



li:hover {
    /*background-color: rgb(174, 126, 126);*/
    background: linear-gradient(to right, #9b8b8b, #8f1616); 
}


footer {
    background-color: transparent; /* Nastavíme průhledné pozadí pro samotný footer (text) */
    padding-top: 5px;
    /* Odstraníme white-space: nowrap; aby se text mohl zalomit na mobilu */
    position:relative;
    z-index: 1; /* Dáme textu vyšší z-index, aby byl nad pseudo-elementem */
    color: black; /* Nastavíme barvu textu, aby byl vidět na pozadí */
    text-align: left; /* Volitelné: Centrování textu */
    white-space: nowrap;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(121, 43, 43); /* Červené pozadí pro pseudo-element (diagonálu) */
    clip-path: polygon(200% 200%, 0% 0%, 0% 200%, 200% 200%); /* Clip-path pro pseudo-element */
    z-index: -1; /* Pseudo-element dáme do pozadí */
}

.list-unstyled.active { /* Selektor pro aktivní <li> s class list-unstyled (pro specifičnost) */
    background: linear-gradient(to right, #9b8b8b, #8f1616); 
}
#filter {
    filter:contrast(70%);
    background-color: rgb(174, 126, 126);
    border-radius: 25px;
    word-break: keep-all;
    height: 310px;
    max-width: 270px;

}

#obtekani-z-leva {
    float: left;
    display:flex;
    align-items: left;
    flex-direction: row-reverse;
}

.card-certificate {
    margin-bottom: 20px;
    width: 220px; /* Výchozí šířka pro mobilní telefony */
}

/* Pro obrazovky od šířky 768px (a větší) - normální obrazovky */
@media (min-width: 768px) {
    .card-certificate {
        width: 280px; /* Šířka pro normální obrazovky */
    }
}

.card-body {
    overflow-wrap: break-word; /* Pro zalomení dlouhých slov */
    word-break: break-word; /* Pro starší prohlížeče - jistota */
  }

#filter-projekty {
    filter:contrast(70%);
    background-color: rgb(174, 126, 126);
    border-radius: 25px;
    word-break: keep-all;
    min-width: 240px;
    

}

.mozek {
    width: 250px;
    min-width: 150px;
}