:root {
    --cervena: #ce0000;
    --modra: #003366;
    --zluta: #ffcc00;
    --svetla: #f4f4f4;
}

body { font-family: sans-serif; margin: 0; background: var(--svetla); }

p {
  line-height: 1.8; /* Optimální hodnota pro dobrou čitelnost */
  text-align: justify; /* Zarovnání do bloku */
  max-width: 800px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .side-menu {
        width: auto;
        border-left: none;
        border-top: 5px solid var(--modra);
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    table.moje-tabulka {
        width: 100% !important;
        min-width: 0 !important;
    }
}




/* Centrování celého webu */
.site-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;       /* Vycentruje web uprostřed obrazovky */
    background: white;    /* Barva pozadí pod obsahem */
    box-shadow: 0 0 15px rgba(0,0,0,0.2); /* Jemný stín po stranách */
}
/* Horní menu */
.main-nav { width: 100%; background: var(--cervena); padding: 0; }
.main-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.main-nav a {
    display: block; color: white; padding: 15px 25px;
    text-decoration: none; font-weight: bold;
}
.main-nav a:hover, .main-nav a.active { background: var(--modra); color: var(--zluta); }

/* Rozvržení */
.container {
    display: flex;
    gap: 0;
}



/* Levé menu */
.side-menu { width: 250px; background: white; border-left: 5px solid var(--modra); padding: 15px; height: fit-content; }
.side-menu h3 { color: var(--cervena); margin-top: 0; border-bottom: 2px solid var(--zluta); }
.side-menu ul { list-style: none; padding: 0; }
.side-menu li a {
    display: block; padding: 10px; color: #333;
    text-decoration: none; border-bottom: 1px solid #eee;
}
.side-menu li a:hover { background: #eee; color: var(--cervena); font-weight: bold; }

/* Obsah */
.content { flex: 1; background: white; padding: 20px; min-height: 400px; }


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 20px 0;
}

.photo { text-align: center; }

.photo img {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.photo img:hover {
    transform: scale(1.05);
    border-color: var(--cervena) !important;
}

footer {
    background: var(--modra); /* Použijeme tu tmavě modrou pro kontrast */
    color: white;
    margin-top: 20px;
    border-top: 5px solid var(--zluta);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    gap: 40px;
}

.footer-col {
    flex: 1; /* Všechny sloupce budou stejně široké */
}

.footer-col h3 {
    color: var(--zluta);
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-top: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    background: #002244; /* Ještě o něco tmavší modrá */
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #aaa;
}

table.moje-tabulka {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
}

table.moje-tabulka td {
    padding: 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #999 !important;
    vertical-align: top !important;
}

table.moje-tabulka tr:first-child td {
    font-weight: bold !important;
    color: #ce0000;
}

table.moje-tabulka td:first-child {
    width: 80% !important;
}

table.moje-tabulka td:last-child {
    width: 20% !important;
}

table.tabulka-vv {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
}

table.tabulka-vv td {
    padding: 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #999 !important;
    vertical-align: top !important;
}

table.tabulka-vv tr:first-child td {
    font-weight: bold !important;
    color: #ce0000;
}

table.tabulka-vv td:first-child {
    width: 65% !important;
}

table.tabulka-vv td:last-child {
    width: 35% !important;
}
table.tabulka-kalendar {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
}

table.tabulka-kalendar td {
    padding: 15px !important;
    text-align: left !important;
    border-bottom: 1px solid #999 !important;
    vertical-align: top !important;
}

table.tabulka-kalendar tr:first-child td {
    font-weight: bold !important;
    color: #ce0000;
}

table.tabulka-kalendar td:first-child {
    width: 18% !important;
}

table.tabulka-kalendar td:last-child {
    width: 82% !important;
}
.kontejner {
  display: flex;       /* Zapne flexbox */
  align-items: center; /* Zarovná text svisle na střed obrázku */
  gap: 10px;           /* Mezera mezi obrázkem a slovem */
}

.odkaz a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

/* Cílíme na odkaz, když je na něm myš, a ovlivníme span uvnitř */
.odkaz a:hover {
    text-decoration: underline;
}

.odkaz a:visited {
    text-decoration: underline;
}
