html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Základní styly */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../Obrazky/output-onlinepngtools.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    display: flex;
    flex-direction: column; 
    height: 100vh;
}

/* Levé menu - na PC fixní, na mobilu skryté */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 10%;
    height: 100%;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1002;
}

.menu a {
    color: #ecf0f1;
    padding: 15px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #34495e;
}

/* Tlačítko pro otevření menu (zobrazí se jen na mobilech) */
.menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    z-index: 1003;
}

.flag { 
    max-width: 50%;
}

/* Hlavní obsah - pravý sloupec pro videa */
.main-content {
    margin-left: 10%;
    display: flex;
    flex-direction: row;
    padding: 1%;
    box-sizing: border-box;
    flex: 1 0 auto;
    gap: 2em;
}

/* Logo a text */
.text-container {
    display: flex;
    flex-direction: column;
    flex: 3;
    padding-right: 1%;
}

#logo {
    width: 40%;
    max-width: 400px;
    height: auto;
    border-radius: 1%;
    margin-bottom: 1%;
}

.odstavec {
    padding-right: 2%;
    padding-left: 2%;
    margin-top: 2%;
    background-color: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 2.5vh;
    text-align: left;
    max-height: 100%;
    font-weight: 500;
}

.text-box h3 {
    font-size: 30px;
    margin-top: 0;
}

.text-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 26px;
    text-align: left;
    overflow-y: auto;
    max-height: 100%;
}

h2 {
    margin-top: 0;
    font-size: 5vh;
    color: white;
    text-shadow: 2px 2px 4px #000000;
}

#uvod {
    margin-top: 0;
    font-size: 4.5vh;
    color: rgb(100 , 200, 230);
    text-shadow: 2px 2px 4px #000000;
    text-align: center;
}

.table-container {
    background-color: white; /* Bílé pozadí pod tabulkou */
    padding: 0 20px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.table-container p {
    font-size: 22px;
}


.table-container img {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 22px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #2c3e50;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Obrázky napravo (pokud použito jinde) */
.images {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2%;
    overflow-y: auto;
    padding-left: 1%;
    box-sizing: border-box;
    top: 0;
}

.images img {
    width: 100%;
    height: auto;
    border-radius: 5%;
    cursor: pointer;
    margin-top: 5%;
    transition: transform 0.3s ease-in-out;
}

img:hover {
    cursor: pointer;
}
/* Plná velikost při kliknutí */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.fullscreen img {
    max-width: 100%;
    height: auto;
    max-height: 90%;
    border-radius: 8px;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Aktivní třída pro zobrazení */
.fullscreen.show {
    opacity: 1;
    visibility: visible;
}

.fullscreen.show img {
    transform: scale(1);
}

/* Zápatí */
.footer {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 0.3% 0;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}
