/* Reset a základní stylování */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Základní styl pro obrázky */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f1e5;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    text-align: left;
}

header {
    font-family: 'Poppins', sans-serif;
    font-size: 2.7em;
    padding: 5px 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: var(--header-bg);
    color: var(--header-text-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
}

.header-left, .header-right {
    flex: 1;
}

.logo {
    max-height: 2em;
	z-index: 201;
}

.header-container span {
    flex-grow: 1;
    text-align: center;
}

.content-section {
    display: flex;
    flex-wrap: wrap; /* Zajišťuje zalomení obsahu na menších displejích */
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.content-box {
    display: flex;
    flex-wrap: wrap; /* Umožní zalomení obsahu */
    align-items: strech;
    justify-content: space-between;
    padding: 10px 0;
    margin: 10px 0;
	text-align: left;
	text-wrap: pretty;
}

.content-box p {
    border-radius: 10px;
    padding: 2em;
    flex: 1; /* Umožní rovnoměrné rozložení */
    display: flex;
    align-items: center; /* Zarovná text vertikálně doprostřed */
    justify-content: center; /* Pokud chceš i horizontální centrování */
    min-width: 250px; /* Zabrání extrémnímu zmenšení textu */
}

.content-box form {
    border-radius: 10px;
    padding: 2em;
	background: rgba(255, 255, 255, 0.1);
	margin-top: 0.6em;
}

.content-box img {
    max-width: 100%;
    max-height: 10em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0 15px;
}

.content-box:nth-child(even) img {
  order: 2;
}

.content-box:nth-child(odd) p {
  order: 2;
  background: rgba(255, 255, 255, 0.1);
}

    /* Obal pro dva sloupce */
    .contact-wrapper {
        display: flex;
        flex-wrap: wrap;
        /* Zalomení na menších displejích */
        align-items: flex-start;
        gap: 20px;
    }

    /* Levý a pravý sloupec: minimální šířka 300px, zbytek se roztáhne */
    .contact-left,
    .contact-right {
        flex: 1 1;
        display: flex;
        flex-direction: column;
    }

    /* Při menší šířce okna se sloupce zalomí pod sebe */

    /* Pro zarovnání textu v levém sloupci (kontakt) */
    .contact-left p {
        margin-bottom: 1em;
        flex-direction: column;
        order: 1;
		text-wrap: balance;
    }

    .contact-left iframe {
        order: 2;
        flex-direction: column;
    }

    /* Šířka vstupů ve formuláři na 100 % sloupce */
    .contact-right form input,
    .contact-right form textarea {
        width: 100%;
        box-sizing: border-box;
        margin: 0.5em 0;
        padding: 0.5em;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 1em;
    }

    /* Tlačítko Odeslat */
    .contact-right form button {
        padding: 0.6em 1em;
        background: var(--header-bg);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 0.5em;
    }

/* Volitelný video background */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

:root {
    --bg-color: #403c3c;
    --text-color: #f1f1f1;
    --header-bg: #8b0000;
    --header-text-color: #f1f1f1;
    --sidebar-bg: #8b0000;
    --category-bg: #8b0000;
    --category-active-bg: #aa0000;
    --content-bg: #403c3c;
    --content-text-color: #f1f1f1;
}

.container {
    display: flex;
    max-width: 1400px;
    width: 95%;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sidebar {
    flex: 0 0 300px;
    background-color: var(--sidebar-bg);
    color: #fff;
    padding: 25px;
}

.sidebar h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    text-align: center;
}

.category-item {
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background 0.3s;
    background-color: var(--category-bg);
    text-align: center;
}

.category-item:hover, .category-item.active {
    background-color: var(--category-active-bg);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

.content {
    position: relative;
    flex: 1;
    padding: 30px;
    font-size: 1.3em;
    line-height: 1.6;
    background-color: rgba(20, 20, 20, 0.85);
    color: var(--content-text-color);
}

.item-card {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    padding: 15px;
    border-bottom: 1px solid var(--header-text-color);
    display: flex;
    justify-content: space-between;
}

.item-card span:first-child {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.item-card span:last-child {
    white-space: nowrap;
    border-bottom: none;
}

footer {
    position: fixed;
    bottom: 5px;
    right: 5px;
    font-size: 0.3em;
    opacity: 0.1;
    background: transparent;
    padding: 2px 5px;
    margin: 0;
    color: var(--content-bg);
    text-align: right;
    z-index: 100;
}

footer a {
    color: var(--content-bg);
    text-decoration: none;
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #de1616;
    color: white;
    font-size: 1.2rem;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease-in-out;
    z-index: 100;
}

#scrollToTop:hover {
    opacity: 1;
    transform: scale(1.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 201;
    position: relative;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: var(--header-text-color);
    transition: 0.3s;
	border-radius: 10px;
}

.mobile-menu {
    position: fixed;
    top: 2em+20px;
    right: -100%;
    width: 250px;
    height: calc(100vh - (2em+20px));
    background: var(--header-bg);
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px 0 0 10px;
    padding: 10px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}

.mobile-menu ul li a {
    display: block;
    padding: 12px;
    font-size: 1.2em;
    text-align: center;
    background-color: var(--category-bg);
    color: var(--header-text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.mobile-menu ul li a:hover, .mobile-menu ul li a.active {
    background-color: var(--category-active-bg);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
}

.menu-active {
    right: 0;
}

/* Animace ikony */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

a {
  color: var(--header-text-color);
  text-decoration: none;
}

a:hover {
  color: black;
  text-decoration: underline;
}

@media (max-width: 786px) {
	
	.content-box form {
		margin-top: 0px;
	}
	
	.logo {
		padding-left: 1.7em;
	}
	
    .mobile-menu {
        width: 70%;
        height: auto;
        max-height: calc(100vh - 60px);
        padding: 20px 0;
    }

    .mobile-menu ul li {
        margin: 10px 0;
    }

    .mobile-menu ul li a {
        font-size: 1.2em;
    }

	.content-box {
      flex-direction: column; /* Obrázky a text se zobrazí pod sebou */
      align-items: center;
      text-align: center;
    }

    .content-box img {
      margin: 10px 0; /* Přidání mezery mezi obrázkem a textem */
      max-height: 8em; /* Lehce zmenší obrázek na menších obrazovkách */
    }

    .content-box:nth-child(even) img,
    .content-box:nth-child(odd) p {
      order: 0; /* Reset pořadí pro lepší čitelnost na mobilu */
    }
	
    .container {
      flex-direction: column;
    }
	
    #bgVideo {
        object-fit: cover;
        transform: translateX(-50%);
    }
    .sidebar h2 {
        display: none;
    }
    .sidebar {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        height: 60px;
        white-space: nowrap;
        padding: 10px;
    }
    .category-item {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 10px;
        margin: 0 5px;
        font-size: 1em;
    }
    header {
        font-size: 2em;
        padding: 15px;
    }
    .content {
        padding: 20px;
        font-size: 1.1em;
    }
}
