@font-face {
    font-family: Poppins;
    src: url(../fonty/Poppins-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Poppins;
    src: url(../fonty/Poppins-ExtraBold.ttf);
    font-weight: bold;
}

/* Výchozí styly pro světlý režim */
body {
    display: flex;
    /* Zajistí, že hlavní osa je vertikální */
    flex-direction: column;
    /* Zajistí, že body zabere minimálně celou výšku viewportu */
    min-height: 100vh;
    min-width: 100vw;
    font: 14px "Poppins";
    background: #f9f9f9;
    color: #414042;
    box-sizing: border-box;
    margin: 0;
    ;
    padding: 100px 0px 0px 0px;
}

article h1,
article h2 {
    color: #00386B;
}

body>header {
    height: auto;
    width: 100vw;
    margin: auto;
    padding-bottom: 10px;
    background: #00386B;
    color: white;
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    z-index: 1;
    top: 0;
    flex-grow: 1;
}

.doma {
    /* Zajistí, že article zabere veškerý zbývající prostor */
    background-image: url('../obrazky/background_dall·e.webp');
    background-size: cover;
    /* nebo 100% 100% pro roztažení bez ohledu na poměr stran */
    background-position: center;
    background-repeat: no-repeat;
    flex-grow: 1;
    margin: 0;
}

.doma h1 {
    font-size: 4vw;
}

.left-align {
    text-align: left;
}

.logo-mail {
    margin: 30px;
    float: left;
    width: 50px;
}
.logo-linkedin {
    margin: 20px;
    float: left;
    width: 70px;
}

#logo {
    height: 40px;
    margin: auto 0 auto 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url('../obrazky/logo.webp') no-repeat;
    background-size: 40px 40px;
}

#logo>* {
    margin: 0 0 0 50px;
}

#logo h1 {
    font-weight: normal;
    font-size: 1.5em;
    line-height: 1.2em;
    color: white;
}

#logo h1 span {
    font-weight: bold;
    text-transform: uppercase;
}

#logo small {
    text-transform: uppercase;
    font-size: 0.85em;
}

#dovednosti {
    border-collapse: collapse;
    max-width: 100%;
    width: auto;
    /* pro vycentrování tabulky */
    margin: 10px auto;
}

#dovednosti td {
    max-width: 260rem;
    width: 15rem;
    padding: 10px;
    vertical-align: middle;
    border: 1px solid gray;
}

#dovednosti h2 {
    /* Horní okraj pro h2 */
    margin-top: 10px;
    /* Pokud chcete minimalizovat prostor pod h2 */
    margin-bottom: 0;
    font-size: 1.2rem;
}

#dovednosti img {
    /* Max. šířka obrázku je 100% šířky buňky */
    max-width: 5rem;
    /* Výška se automaticky přizpůsobí, aby se zachoval poměr stran */
    height: auto;
    /*Zajistí, že obrázek bude blokovým elementem */
    display: block;
    /* Vycentrování obrázku v buňce */
    margin: auto;
}

#reference img {
    border: 1px solid gray;
    padding: 6px;
    box-shadow: 3px 3px 6px #999999;
    margin-right: 6px;
}

#reference td {
    width: 33%;
    padding: 5px;
    /* vertical-align: top */
    border: 1px solid gray;
}

nav ul {
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li {
    padding: 0 20px;
    white-space: nowrap;
    margin: 8px 5px;
    font-size: 1em;
    line-height: 0.4em;
    min-width: 50px;
}

nav ul a {
    color: white;
    padding: 2px 0;
    text-decoration: none;
    text-transform: uppercase;
}

nav ul a:hover,
.aktivni a {
    border-bottom: 2px solid #EF6534;
}

.kontakt-tlacitko {
    background: #EF6534;
    padding: 10px 20px;
    border-radius: 20px;
}

.kontakt-tlacitko:hover,
.reference-tlacitko:hover {
    filter: brightness(115%) contrast(85%);
    border: 0;
}

html {
    background: #414042;
}

article {
    margin: auto;
    padding: 10px 10px 10px 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

article h1,
article h2 {
    padding: 10px 0;
}

article h1 {
    margin: 0;
    /* font-size: 3dvw; */
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
    width: max-content;
    border-bottom: 4px solid #EF6534;
}

article h2 {
    font-size: 1.2rem;
}

article header {
    height: 80px;
}

section {
    max-width: 720px;
    text-align: left;
}

article section p {
    margin-bottom: 1.5em;
    line-height: 1.8em;
}

article section a {
    color: #EF6534;
}

footer {
    display: flex;
    background: #414042;
    color: white;
    height: 100px;
    clip-path: polygon(0 30px, 100% 0, 100% 105%, 0 105%);
    /* box-sizing: border-box; */
    /* text-align: center; */
    padding: 50px 0 0 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

footer img {
    height: 28px;
    vertical-align: middle;
}

.footer-half {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* nebo flex-end / center podle potřeby */
    /* pokud chceš mezeru, přidej třeba: */
    padding: 0 16px;
}

.itlogo {
    padding: 0 0 0 20px;
}

.centrovany {
    text-align: center;
}

.vlevo {
    float: left;
}

.zarovnani {
    max-width: 720px;
    text-align: left;
}

.avatar {
    float: right;
    width: 26%;
    padding-left: 10px;
    /* filter: grayscale(0.2); */
}

.cistic {
    clear: both;
}

.lightbox img {
    pointer-events: none;
}

.padajiciObjekt {
    position: absolute;
}
.card {
    max-width: 200px;
}
.card img {
    max-width: 90%;
    justify-items: center;
    padding-top: 10px;
    padding-left: 10px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
    /* Přidání pro zajištění, že text nebude odřádkován */
}

@media (max-width: 580px) {
    nav ul {
        flex-direction: column;
        /* Vycentrování položek na ose Y */
        align-items: center;
        /* Vycentrování položek na ose X */
        justify-content: center;
        height: auto;
    }

    nav ul li {
        /* Zajistí, že položky menu zabírají celou šířku */
        width: 100%;
        /* Text uvnitř položek bude vycentrován */
        text-align: center;
    }

    body>header {
        position: absolute;
    }

    .img-fluid {
        max-width: 30%; /* Menší šířka obrázku */
        margin: 0 auto; /* Centrování obrázku */
    }
}

.tabulka_programy {
    margin-top: 20px;
}
.tabulka_programy td {
    padding: 5px;
    /* vertical-align: top */
    border: 1px solid gray;
}

/* Tabulky */
/* Základní vzhled pro všechny tabulky */
.tabulka-programy, .tabulka-certifikaty {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 1em;
  font-size: 1rem;
}

.tabulka-programy td, .tabulka-programy th,
.tabulka-certifikaty td, .tabulka-certifikaty th {
  padding: 6px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.tabulka-programy th,
.tabulka-certifikaty th {
  background: #f7f7f7;
  text-align: left;
  font-weight: bold;
}

/* Obrázek na střed ve všech tabulkách */
.tabulka-programy .center-img,
.tabulka-certifikaty .center-img {
  text-align: center;
  width: 40px;
}

.tabulka-programy .center-img img,
.tabulka-certifikaty .center-img img {
  display: inline-block;
  vertical-align: middle;
  max-width: 24px;
  max-height: 24px;
}

.td-program, .td-jazyk {
    width: auto;
}

.td-odkaz {
    width: 16rem;
}
 
/* Styly pro tmavý režim */
@media (prefers-color-scheme: dark) {
    body {
        background-color: rgba(0, 0, 0, 0.452);
        color: white;
    }

    article h1,
    article h2 {
        color: rgb(102, 155, 204);
    }
    .card {
        background-color: #24242473;
        color: #999999;
        border: 1;
        
    }
    .navbar small {
        color: #938ed8;
    }
    .navbar .nav-link{
        color: #aaa9b6;
    }
    .navbar-light .navbar-toggler {
        filter: invert(100%);
    }
    .kontakt-tlacitko {
        background: #b34016;
    }
}