/* #################################
                OBSAH
    1. Obecná nastavení
    2. Hlavička
    3. Hlavní obsah

#################################*/

/* #################################
        1. Obecná nastavení
################################*/

:root {
    --main-clr: #ff0000;
    --bg-clr: #ffffff;
    --static-clr: #000000;
    --ff-1: arial;
}

body {
    background-color: var(--main-clr);
    display: flex;
    flex-direction: column;
    align-items: center;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: var(--bg-clr);
    color: var(--static-clr);
    font-family: var(--ff-1);
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 18px;
}

@media (max-width: 1000px) {
    input,
    textarea,
    button,
    select,
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
}

/* #################################
            2. Hlavička
################################*/

.head {
    display: flex;
    align-items: center;
    justify-content: center;
}

.head .inner {
    width: min(90vw, 1500px);
    margin-top: 50px;
    display: flex;
}

.head a {
    text-decoration: none;
    color: var(--static-clr);
}

.head .buttons {
    margin-right: 19px;
    display: flex;
}

.head .buttons button {
    background-color: black;
    width: 101px;
    height: 101px;
    border: none;
    text-decoration: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 19px;
}

.head .buttons #clr-switch {
    background-color: var(--main-clr);
}

.head .buttons #bg-switch {
    background-color: var(--bg-clr);
    box-shadow: 0 4px 3px #00000070;
}

.head .text {
    display: flex;
}

.head .text > .left,
.head .buttons {
    max-height: 101px;
}

.head .text > .left {
    height: 101px;
}

.head .text .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 19px;
    line-height: calc(101px / 3);
}

.head .text .left .FF {
    font-weight: bold;
    display: flex;
}

.head .text .left .FF a {
    color: var(--main-clr);
}

.head .text .left .FF > span {
    padding-right: 19px;
    line-height: calc(101px / 3);
}
.head .text .right {
    margin: 0;
    display: inline;
    line-height: calc(101px / 3);
}

.head .text .right .projekt {
    padding-right: 19px;
    white-space: nowrap;
    display: inline-block;
}

.head .text .right .projekt .popis {
    display: none;
}

.head .text .right .projekt .popis::before {
    content: "– ";
}

#currentpage {
    display: none;
}

#fiedler-projekty,
#fleischmann-projekty {
    display: none;
}

#uklidit {
    cursor: pointer;
    user-select: none;
}

/* MOBILNÍ MENU */
#projekty {
    display: none;
    user-select: none;
}

.mobileNadpis,
.mobilePopis {
    color: var(--main-clr);
    /* line-height: 20px; */
    font-size: 18px;
    margin: 5px 11px;
}

@media (max-width: 1000px) {
    .head {
        overflow-x: hidden;
        font-size: 18px;
    }
    #projekty {
        display: inline;
        cursor: pointer;
    }

    #uklidit {
        display: none;
    }

    .head .inner {
        flex-direction: column;
        margin-top: 19px;
    }

    .head .buttons {
        margin: 0;
    }

    #bg-switch {
        margin: 0;
    }

    .head .text {
        flex-direction: column;
        margin-top: 19px;
        margin-left: 11px;
    }

    .head .text > .left {
        display: block;
        height: max-content;
    }

    .head .text > .left span {
        padding-right: 19px;
    }

    .projekt {
        width: 100%;
    }
}

/* ###############################
        3. Hlavní obsah
################################*/

.main-content {
    width: min(90vw, 1500px);
    margin-top: 40px;
}

article {
    margin: 19px 0 100px;
    position: relative;
    height: 1000px;
}

.heightAuto {
    height: auto;
}

.drag {
    overflow: auto;
    width: max-content;
    cursor: move;
    margin-top: 2em;
    display: block;
    margin: 19px 0;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
    -webkit-filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.drag p {
    max-width: 500px;
    padding: 0 19px;
    cursor: auto;
    color: var(--main-clr);
    display: inline-block;
}

.drag .inner {
    background-color: white;
    margin: 19px;
}

.drag img {
    max-width: 50vw;
    max-height: 50vw;
}

.drag a {
    color: var(--main-clr);
    text-decoration: underline;
}

.drag iframe {
    display: block;
    border: none;
}

.drag .caption {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.nodesktop {
    display: none;
}

@media (max-width: 1000px) {
    .nomobile {
        display: none !important;
    }

    .nodesktop {
        display: block;
    }

    .drag {
        max-width: 90vw;
        filter: none;
        border-radius: none;
        overflow: visible;
    }

    .drag .inner {
        margin: 0;
        background-color: var(--bg-clr);
    }

    .main-content {
        margin: 0;
    }

    .drag img {
        max-width: 100%;
        width: 500px;
        max-height: 100%;
        filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
    }

    .drag p {
        padding: 0;
        margin: 0;
    }
}
