/* common */
html, body {
    color: #333333;
    margin-top: 0;
    background: #efd1b3 url("../images/noise.png") repeat;
}

#page {
    border: none;
    background-color: #E8DBCB;

    -webkit-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
    -moz-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
    box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);

    -webkit-border-bottom-left-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    -moz-border-radius-bottomright: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

header, footer {
    text-align: center;
}

header h1 {
    visibility: hidden;
    display: none;
}

header {
    min-height: 96px;
    background-position: bottom center;
    background-size: cover, 100%;
    background-image: url('../images/historicus.svgz'), url('../images/header-light.webp');
    margin-bottom: 12pt;
    cursor: pointer;
}

footer {
    font-size: 85%;
    padding-top: 12pt;
    color: #999;
    background-color: #dfcfbe;
    border-top: 1px solid #b7a993;

    padding-bottom: 12pt;
    -webkit-border-bottom-left-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    -moz-border-radius-bottomright: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

h2, h3 {
    margin-top: 0;
}

.hidden-phone {
    display: none;
    visibility: hidden;
}

main {
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 50%;
    min-height: 350px;
}

main.content-notfound {
    background-image: url("../images/bg-notfound.webp");
}

main.content-index {
    background-image: url("../images/bg-index.webp");
}

main.content-gral {
    background-image: url("../images/bg-gral.webp");
}

main.content-pozouneri {
    background-image: url("../images/bg-pozouneri.webp");
}

main.content-programy {
    background-image: url("../images/bg-programy.webp");
}

main.content-foto {
    background-image: url("../images/bg-foto.webp");
}

main.content-video {
    background-image: url("../images/bg-video.webp");
}

aside {
}

p {
    margin: 0 0 12pt;
    text-indent: 2.75em;
}

a {
    color: #3e128a;
    text-decoration: none;
}

a:hover {
    color: #0b0238;
    text-decoration: underline;
}

div.separator {
    padding: 6pt;
}

li {
    padding-bottom: 6pt;
}

/* audio list */
ul.audio-list li audio {
    max-height: 18pt;
    display: inline;
    margin-right: 9pt;
}

ul.audio-list {
    list-style: none;
}

ul.audio-list li {
}

ul.audio-list li:before {
    font-size: 14pt;
    font-family: 'FontAwesome';
    content: '\f001';
    margin: 0 9pt 0 0;
}

div.audio-download {
    display: block;
    margin-left: 26pt;
}

/* media wrapper */

div.picture-wrapper {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 6pt 0;
}

div.picture-wrapper video {
    width: 100%;
}

picture {

}

img.thumbnail, img.hero {
    border-radius: 4px;
    max-width: 90%;
}

div.media-wrapper {
    float: left;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 6pt 0;
}

.landing-video-container {
    width: 100%;
    display: inline-block;
    position: relative;
    padding: 0;
    margin: 0;
}

.landing-video {
    margin: 0;
    padding: 0;
    width: 100%;
}

.video-overlay {
    position: absolute;
    bottom: 2pt;
    background: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    width: 100%;
}

.video-content {
    text-align: left;
    padding: 6pt 12pt 0;
}

.contact-snippet {
    margin: auto;
    font-size: 85%;
}

/* navigation */
.left-sidebar {
    text-align: center;
    padding: 0;
    min-width: 100%;

    background: #dfcfbe url("../images/noise.png") repeat;

    border-bottom: 1px solid #b7a993;
    margin-top: -12pt;
    margin-bottom: -6pt;

    -webkit-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
    -moz-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
    box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
}

ul.nav {
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

ul.nav > li {
    display: inline-block;
}

ul.nav > li:first-child {
    border-top: none;
}

ul.nav > li > a {
    font-weight: bold;
    padding: 6pt;
    display: block;

    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

ul.nav > li > a:hover {
    background-color: #1b0248;
    color: #fff;
    text-decoration: none;
}

ul.nav > li > a:focus {
    background-color: #ddd;
    text-decoration: none;
}

ul.nav > li.nav-active a {
    color: black;
    background-color: #b7a993;
}

div.menu-separator {
    text-align: center;
    padding: 6pt;
    margin: 12pt 0 12pt 0;
}

/* components */

aside.right-sidebar {
    display: flex;
}

div.menu-block {
    min-width: 160px;
    flex: 1;
}

div.menu-block:first-child {
    margin-right: 12pt;
}

/* lang-selector */
:root {
    --iconSizeW: 48px;
    --iconSizeH: 36px;
}

.lang-selector {
    text-align: left;
    padding-bottom: 12pt;
}

.lang-selector ul {
    margin: 0;
    padding: 0;
}

.lang-selector ul li {
    list-style: none;
}

.lang-selector ul li a {
    color: transparent;
    display: inline-block;
    width: var(--iconSizeW);
    height: var(--iconSizeH);
    background-position: center;
    background-size: contain;
}

a.lang-cz {
    background-image: url("../icons/cz.svgz");
}

a.lang-de {
    background-image: url("../icons/de.svgz");
}

a.lang-en {
    background-image: url("../icons/en.svgz");
}

a.lang-inactive {
    filter: saturate(0.10);
}


/* display media */

@media (max-width:768px) {
    .gallery .item {
        margin: auto;
        width: 100%;
    }
}

/* tablet */
@media (min-width:768px) {
    aside {
    }

    header {
        padding-bottom: 0;
        background-position-y: 68%;
    }

    .left-sidebar {
        font-size: 100%;
    }

    .hidden-phone {
        display: block;
        visibility: visible;
    }

    .gallery .item {
        margin: auto;
        width: unset;
        max-width: 196px;
        min-height: 256px;
        max-height: 196px;
    }

    img.thumbnail {
        max-width: 240px;
        max-height: 180px;
        border: 1px solid rgba(50, 50, 50, 0.2);
        -webkit-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
        -moz-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
        box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
    }

    img.hero {
        border-radius: 4px;
        max-width: 95%;
        -webkit-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
        -moz-box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
        box-shadow: 0 1px 5px rgba(50, 50, 50, 0.2);
    }
}

/* desktop */
@media (min-width:1024px) {

    html, body {
        margin-top: 2pt;
    }

    #page {
        border: 1px solid #b7a993;

        -webkit-border-top-left-radius: 4px;
        -webkit-border-top-right-radius: 4px;
        -moz-border-radius-topleft: 4px;
        -moz-border-radius-topright: 4px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    main {
        min-height: 320pt;
        border-bottom: none;
    }

    header {
        min-height: 266px;

        -webkit-border-top-left-radius: 4px;
        -webkit-border-top-right-radius: 4px;
        -moz-border-radius-topleft: 4px;
        -moz-border-radius-topright: 4px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }

    aside {
        min-width: 160px;
        max-width: 200px;
    }

    aside.right-sidebar {
        display: unset;
    }

    div.menu-block {
        min-width: unset;
        flex: unset;
    }

    div.menu-block:first-child {
        margin-right: unset;
    }

    .hidden-phone {
        display: block;
        visibility: visible;
    }

    .left-sidebar {
        font-size: 100%;
        text-align: left;
        padding-left: 6pt;
        padding-top: 9pt;

        background-color: inherit;
        background-image: none;
        margin: 0;
        border-bottom: none;

        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }

    ul.audio-list li {
        max-width: 480px;
    }

    div.audio-download {
        float: initial;
        display: inline-block;
        margin-left: 3pt;
    }

    ul.nav {
        margin: 0;
        padding-left: 0;
    }

    ul.nav > li {
        display: list-item;
    }

    .gallery .item {
        width: unset;
        margin: auto;
        /* max-width: 196px; */
    }


}

/* dark mode */
@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #333333;
        color: #909090;
    }

    header {
        background-image: url('../images/historicus.svgz'), url('../images/header-dark.webp');
    }

    main {
        border-bottom: 1px solid #333333;
    }

    footer {
        color: #707070;
        background-color: #333333;
        border-top: 1px solid #000;
    }

    .left-sidebar {
        background-color: #333333;
        border-bottom: 1px solid #000;
    }

    @media (min-width:1024px) {
        .left-sidebar {
            border-bottom: none;
            background-color: inherit;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }
    }

    #page {
        border: 1px solid #000;
        background-color: #444;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }

    a {
        color: white;
        text-shadow: none;
    }

    a:hover {
        color: #c9edf5;
    }

    ul.nav > li.nav-active a {
        color: #808080;
        background-color: #202020;
    }
}