html {
    background: white;
}
body {
    background: #AAAAAA;
    color: black;
    text-align: justify;
    width: 100%;
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    /* padding: 20px; */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

article {
    font-family: system-ui;
}
article header {
    height: 100px;
    width: 100%;
    background: #0a294b;
    color: white;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}
article section {
    padding: 50px;
}

article footer {
    box-sizing: border-box;
    text-align: center;
    height: 50px;
    color: white;
    background: #414042;
    padding: 5px 0 0 0;
}

h1, h2 {
    text-align: center;
    color: #0a294b;
}
table {
    margin: 5px 5px 5px 5px;
    background: white;
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}
th, td {
    width: 12.5%;
    text-align: center;
    padding: 10px;
    border: 1px black solid;
    color: black;
    overflow: hidden;     /* Zabrání přetékání obsahu */
    white-space: nowrap;  /* Text bude na jedné řádce */
    text-overflow: ellipsis;
}
th {
    width: auto;
}

nav ul {
    display: flex;          
    list-style: none;       
    padding: 0;             
    justify-content: flex-end;
}
nav ul li {
    padding: 0 10px;
    margin: 0 5px;
    font-size: 1.0em;
    line-height: 4.3em;
}

a {
    color: white;
    padding: 3px 0;
    text-decoration: none;
    text-transform: uppercase;
}
a:hover, .active a {
    border-bottom: 2px solid #EF6534;
}
nav ul li a[href="https://www.ivostillin.com"] {
    color: #98FF98; /* Světlá mátová barva */
    text-decoration: none; /* Volitelné: odstranění podtržení */
}
nav ul li a[href="https://www.ivostillin.com"]:hover {
    color: #76D76D; /* Tmavší mátová při najetí myší */
}
.left {
    text-align: left;
}
.centered {
    text-align: center;
}
.right {
    text-align: right;
}
.big {
    color: #0a294b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
}
.math {
    text-indent: 50px;
}
.float-image-left {
    float: left; /* nebo 'right', pokud chcete obrázek vpravo */
    margin-right: 20px; /* Přidává prostor mezi obrázkem a textem (pro float: left) */
    margin-bottom: 20px; /* Přidává prostor pod obrázkem */
}
.float-image-right {
    float: right; /* nebo 'right', pokud chcete obrázek vpravo */
    margin-right: 20px; /* Přidává prostor mezi obrázkem a textem (pro float: left) */
    margin-bottom: 20px; /* Přidává prostor pod obrázkem */
}
.text-container p {
    text-align: justify;
}
.clear {
    clear: both; /* Žádné plovoucí elementy nejsou povoleny ani vlevo ani vpravo */
}
.reference-button {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 25px;
}
.reference-button:hover {
    border-bottom: 2px solid #EF6534;
}

.to-download {
    height: 20px;
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
/*
.to-download {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 75%; 
    margin: 0 auto; 
    padding: 5px 0;
    font-size: 1em;
    word-break: break-word;
    overflow-wrap: break-word;
}
*/
.social-icons {
    position: relative;
    top: 10px;
    z-index: 1000;
}
.social-icons img {
    width: 25px; /* Velikost ikon */
    height: 25px;
    margin: 2px; /* Mezery mezi ikonami */
}
#logo {
    max-width: 15%;
    margin-left: 20px;
    height: 80px;
    display: flex;
    flex-direction: row;
}
#signature {
    height: 60px;
    margin: auto 0 auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#signature > * {
    margin: 0 0 0 10px;
}
#signature h1 {
    font-weight: normal;
    font-size: 1.2em;
    line-height: 1.0em;
    color: white;
}
#signature h1 span {
    font-weight: bold;
    text-transform: uppercase;
}
#signature small {
    text-transform: uppercase;
    font-size: 0.65em;
}

@media (max-width: 768px) {

    body {
        /*padding: 10px;*/
    }

    article header {
        flex-direction: column;
        height: auto;
        /*padding: 10px 0;*/
    }

    #logo {
        max-width: 50%; /* Upraveno na menší velikost loga */
        margin: 10px auto;
        height: auto;
        justify-content: center;
    }

    #signature {
        align-items: center;
        margin: 10px 0 0 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    nav ul li {
        line-height: 2.5em;
        font-size: 1.2em;
    }

    article section {
        /*padding: 20px;*/
    }

    .to-download {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .to-download a {
        font-size: 1.1em;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    }

    .to-download {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .to-download a {
        font-size: 1.1em;
    }

    footer {
        height: auto;
        /*padding: 10px 0;*/
    }

    table, th, td {
        font-size: 14px;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}