@font-face {
    font-family: "Roboto";
    src: url("/themes/residence/fonts/Roboto.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("/themes/residence/fonts/Roboto.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
    font-stretch: 50%;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,*:before,*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

body {
    margin: 0;
    font-size: 16px;
    font-family: Roboto;
    opacity: 1;
    width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    color: black;
    padding: 0;
    background-image: url("/themes/residence/images/background.jpg");
    background-size: 100% auto;
}

@media (max-width: 600px) {
    body {
        margin:0;
        font-size: 16px;
        font-family: Roboto;
        opacity: 1;
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        color: black;
        padding: 0;
    }
}

main {
    min-height: 40vh;
}

@media (min-width: 1400px) {
    .container {
        width:100%;
        margin-left: auto;
        margin-right: auto;
    }

    .header {
        clear: both;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0;
        z-index: 2;
        width: 100%;
        padding-top: 1em;
        padding-bottom: 3em;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        background-color: transparent;
        height: 30em;
    }

    header img {
        width: 100%;
        z-index: 2;
    }
}

@media (min-width: 1000px) and (max-width:1400px) {
    .container {
        width:100%;
        margin-left: auto;
        margin-right: auto;
    }

    .header {
        clear: both;
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        width: 100%;
        padding-top: 1em;
        padding-bottom: 3em;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        background-color: transparent;
        height: 20em;
    }

    header img {
        width: 100%;
        z-index: 2;
    }
}

@media (max-width: 1000px) {
    .container {
        width:100%;
        margin-left: auto;
        margin-right: auto;
    }

    .header {
        clear: both;
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        width: 100%;
        padding-top: 1em;
        padding-bottom: 0em;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        background-color: transparent;
        height: 15em;
    }

    header img {
        width: 100%;
        z-index: 2;
    }
}

a {
    color: black;
    ;}

p {
    /* line-height: 150%; */
}

article img {
    max-width: 100%;
    height: auto;
}

table {
    border-spacing: 0;
    width: 100%;
    color: black;
    border-collapse: collapse;
    margin-bottom: 2em;
}

tr {
    border-bottom: dotted 1px #472613;
    height: auto;
    line-height: 200%;
}

td:nth-of-type(odd) {
    margin: 0;
    width: 85%;
    text-align: left;
}

td:nth-of-type(even) {
    margin: 0;
    width: 10%;
    text-align: right;
}

@media (max-width: 768px) {
    table {
        display:block;
        margin-top: 2em;
        max-width: -moz-fit-content;
        max-width: fit-content;
        margin: 0 auto;
        overflow-x: auto;
        white-space: reak-spaces;
    }

    td {
        border: solid 1px #ddd;
        margin: 0;
        min-width: 30%;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
}

#block-residence-primary-local-tasks {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    overflow: auto;
    margin-bottom: 1em;
}

div[role=contentinfo] {
    width: 76%;
    margin-left: auto;
    margin-right: auto;
    background-color: #e0ffb0;
    line-height: 300%;
    border: solid 2px #c6d081;
    padding-left: 2%;
    padding-right: 2%;
    font-weight: bold;
    color: #859852;
}

div[role=contentinfo] a {
    color: #859852;
}

#block-residence-primary-local-tasks h2 {
    display: none;
}

#block-residence-primary-local-tasks ul {
    overflow: auto;
    overflow-y: none;
    margin: 0;
    padding: 0;
    height: 3.5em;
}

#block-residence-primary-local-tasks ul li {
    float: left;
    list-style-type: none;
}

#block-residence-primary-local-tasks ul li a {
    display: block;
    height: 3em;
    line-height: 3em;
    padding-left: 1em;
    padding-right: 1em;
    background-color: #eee;
    border-bottom: solid 2px #eee;
    text-decoration: none;
    color: #333;
    border: solid 1px #ddd;
}

#block-residence-primary-local-tasks ul li a:hover {
    border-bottom: solid 2px #12243e;
    background-color: #dfdfdf;
    color: #12243e;
}

@media (min-width: 1100px) {
    input[type=text],input[type=number],input[type=email],input[type=date],select {
        height:3em;
        clear: both;
        float: none;
        font-size: 1em;
        border: 1px solid #bcc2c7;
        border-radius: 10px;
        padding-left: 1em;
        width: 100%;
        padding-right: 1em;
    }

    textarea {
        height: 10em;
        clear: both;
        float: none;
        border: solid 1px #ddd;
        font-size: 1em;
        padding-left: 1em;
        padding-right: 1em;
        width: 100%;
    }

    input:focus {
        border: solid 2px #0f532e;
    }

    label {
        display: block;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

    form .description {
        font-size: 0.8em;
    }
}

@media (max-width: 1100px) {
    input[type=text],input[type=number],input[type=email],input[type=date],select {
        height:3em;
        clear: both;
        float: none;
        font-size: 1em;
        border: 1px solid #bcc2c7;
        border-radius: 10px;
        padding-left: 1em;
        width: 100%;
        padding-right: 1em;
    }

    textarea {
        height: 10em;
        clear: both;
        float: none;
        border: solid 1px #ddd;
        font-size: 1em;
        padding-left: 1em;
        padding-right: 1em;
        width: 100%;
    }

    input:focus {
        border: solid 2px #0f532e;
    }

    label {
        display: block;
        margin-bottom: 0.5em;
    }

    form .description {
        font-size: 0.8em;
    }
}

@media (min-width: 1000px) {
    h1 {
        font-size:2.5em;
        font-weight: normal;
        margin-top: 0;
    }

    h2 {
        font-size: 3em;
        font-weight: bold;
        margin-top: 0;
        margin-bottom: 0;
    }

    h3 {
        font-size: 2.7em;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 0;
    }

    h4 {
        font-size: 1.7em;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 0;
    }

    h5 {
        font-size: 1.4em;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 0;
    }

    h5 {
        font-size: 1.1em;
        font-weight: normal;
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 1000px) {
    h1 {
        font-size:2em;
        line-height: 120%;
        font-weight: normal;
        margin-top: 0;
    }

    h2 {
        font-size: 1.8em;
        line-height: 120%;
        font-weight: normal;
    }

    h3 {
        font-size: 1.6em;
        line-height: 120%;
        font-weight: normal;
    }

    h4 {
        font-size: 1.4em;
        line-height: 120%;
        font-weight: normal;
    }

    h5 {
        font-size: 1.3em;
        line-height: 120%;
        font-weight: normal;
    }

    h5 {
        font-size: 1.1em;
        line-height: 120%;
        font-weight: normal;
    }
}

@media (min-width: 1000px) {
    #block-residence-logo {
        width:50%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 600px) and (max-width:1000px) {
    #block-residence-logo {
        width:50%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    #block-residence-logo {
        width:70%;
        margin-left: auto;
        margin-right: auto;
    }
}

#block-residence-logo img {
    width:100%;
    height: auto;
}

article h3 {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 0.6em;
    margin-top: 1em;
    background-color: #472613;
    color: white;
    padding: 0.5em;
}

@media (min-width: 768px) {
    #block-residence-page-title {
        width:70%;
        font-family: Pacifico;
        font-weight: normal;
        line-height: 400%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 3em;
        margin-bottom: 3em;
        text-align: center;
        color: #472613;
        ;}
}

@media (max-width: 1000px) {
    #block-residence-page-title {
        width:90%;
        font-family: Pacifico;
        font-weight: normal;
        line-height: 400%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 3em;
        margin-bottom: 3em;
        text-align: center;
        color: black;
    }
}

#block-residence-branding img {
    width: 100%;
    float: left;
}

main[role=main] {
    width: 100%;
    margin-left: auto;
    margin-top: 0;
    margin-right: auto;
    border: 0;
    background-color: #000000;
}

@media (min-width: 1300px) {
    footer {
        clear:both;
        background-color: #2E2D09;
        padding-bottom: 2em;
        text-align: center;
        color: white;
        font-size: 1em;
        line-height: 2em;
        overflow: auto;
        padding-top: 2em;
        position: relative;
        padding-left: 15%;
        padding-right: 15%;
        background-repeat: no-repeat;
        background-position: center bottom;
    }
}

@media (max-width: 1300px) {
    footer {
        clear:both;
        background-color: #2E2D09;
        padding-bottom: 2em;
        text-align: center;
        color: white;
        font-size: 1em;
        line-height: 2em;
        overflow: auto;
        padding-top: 2em;
        position: relative;
        padding-left: 5%;
        padding-right: 5%;
        background-repeat: no-repeat;
        background-position: center bottom;
    }
}

@media (min-width: 900px) {
    #block-residence-paticka {
        width:70%;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.2em;
        color: #FAFBCE;
    }
}

@media (max-width: 900px) {
    #block-residence-paticka {
        width:90%;
        margin-left: auto;
        margin-right: auto;
    }
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: normal;
    font-family: Verdana;
}

footer a:hover {
    text-decoration: underline;
}

@media (min-width: 1000px) {
    #block-residence-webform .captcha {
        width:100%;
        margin-left: 0;
        margin-right: auto;
        margin-top: 1em;
        margin-bottom: 1em;
        border: 0px;
    }

    #block-residence-webform .captcha .recaptcha-processed div {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1000px) {
    #block-residence-webform .captcha {
        width:100%;
        margin-left: 0;
        margin-right: auto;
        margin-top: 1em;
        margin-bottom: 1em;
        border: 0px;
    }
}

#block-residence-webform .captcha .recaptcha-processed div {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
}

.img-button {
    text-decoration: none;
}

@media (min-width: 800px) {
    .img-button img {
        height:6em;
        width: auto;
        margin-right: 1em;
    }
}

@media (max-width: 800px) {
    .img-button img {
        height:3em;
        width: auto;
        margin-right: 1em;
    }
}

.layout-container {
    position: relative;
}

.messages {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
    color: black;
    font-weight: bold;
    background-color: #eef7c1;
    border: solid 1px #7cbf35;
}

article .button {
    display: inline-block;
    width: auto;
    background-color: #472613;
    padding-left: 1em;
    color: white;
    padding-right: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
}

article .button .views-field-field-odkaz a:hover {
    background-color: #5d3620;
}

.more-link a {
    display: block;
    width: 20%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    background-color: #e51a4b;
    line-height: 300%;
    color: white;
    height: auto;
    font-family: Verdana;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 3px 3px 3px #b7b7b7;
}

.more-link a:hover {
    background-color: #8f0123;
}

@media (min-width: 1000px) {
    #block-residence-webform,#block-residence-webform-2,#block-residence-webform-3 {
        width:100%;
        background: #ece4df;
        text-align: left;
        padding-left: 20%;
        padding-right: 20%;
        padding-top: 3em;
        padding-bottom: 3em;
        border-radius: 10px;
    }

    #block-residence-webform h2,#block-residence-webform-2 h2,#block-residence-webform-3 h2 {
        font-family: Pacifico;
        font-weight: normal !important;
        font-size: 2.5em;
        text-align: center;
        color: #472613;
    }
}

@media (max-width: 1000px) {
    #block-residence-webform,#block-residence-webform-2,#block-residence-webform-3 {
        width:100%;
        background: #ece4df;
        text-align: left;
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 3em;
        padding-bottom: 3em;
        border-radius: 10px;
    }

    #block-residence-webform h2,#block-residence-webform-2 h2,#block-residence-webform-3 h2 {
        font-family: Pacifico;
        font-weight: normal !important;
        font-size: 2.5em;
        text-align: center;
        color: #472613;
    }
}

#block-residence-webform .button,#block-residence-webform-2 .button,#block-residence-webform-3 .button {
    border-radius: 5px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    border: 0;
    -moz-box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.05);
    box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.05);
    white-space: nowrap;
    background: #472613;
    padding: 0 25px;
    font-size: 16px;
    line-height: 50px;
    height: 50px;
    text-decoration: none;
    text-transform: none;
}

#block-residence-webform .button:hover {
    text-decoration: none;
    color: #ffffff;
    background: #816859;
}

#block-residence-webform-2 .js-form-type-checkbox {
    width: 100%;
    margin-top: 1em;
    font-size: 0.9em;
    padding: 0;
}

#block-residence-webform .form-item-markup,#block-residence-webform-2 .form-item-markup {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    font-size: 0.9em;
}

.layout-sidebar-second {
    background-image: url("/themes/residence/images/top.png");
    background-size: auto 100%;
    padding-left: 15%;
    padding-right: 15%;
    color: white;
    width: 100%;
    min-height: 5em;
    height: auto;
}

.layout-sidebar-second ul {
    margin: 0;
    padding: 0;
}

@media (min-width: 1000px) {
    #block-residence-prepinacjazyka {
        line-height: 200%;
        width: 20%;
        float: right;
        padding-top: 0.3em;
    }

    #block-residence-prepinacjazyka .links {
        list-style-type: none;
        display: flex;
        justify-content: right;
    }

    #block-residence-prepinacjazyka .links li {
        display: list-item;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=en] {
        background-image: url("/themes/residence/images/en-flag.jpg");
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
        color: transparent;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=cs] {
        background-image: url("/themes/residence/images/cz-flag.jpg");
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
        color: transparent;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=de] {
        background-image: url("/themes/residence/images/ge-flag.jpg");
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
        color: transparent;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=cs]:hover, #block-residence-prepinacjazyka ul li a[hreflang=en]:hover {
        opacity: 0.5;
    }
}

@media (max-width: 1000px) {
    #block-residence-prepinacjazyka {
        margin-right: 0;
        line-height: 200%;
        width: 100%;
        float: none;
        text-align: center;
    }

    #block-residence-prepinacjazyka .links {
        list-style-type: none;
        display: flex;
        justify-content: center;
    }

    #block-residence-prepinacjazyka .links li {
        display: list-item;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=en] {
        background-image: url("/themes/residence/images/en-flag.jpg");
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
        color: transparent;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=cs] {
        background-image: url("/themes/residence/images/cz-flag.jpg");
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
        color: transparent;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=de] {
        background-image: url("/themes/residence/images/ge-flag.jpg");
        background-size: auto 100%;
        background-position: center center;
        background-repeat: no-repeat;
        color: transparent;
    }

    #block-residence-prepinacjazyka ul li a[hreflang=cs]:hover, #block-residence-prepinacjazyka ul li a[hreflang=en]:hover, #block-hamr-prepinacjazyka ul li a[hreflang=de]:hover {
        opacity: 0.5;
    }
}

@media (min-width: 1300px) {
    .banner {
        display: flex;
        align-items: center;
        padding-top: 3em;
        padding-bottom: 3em;
        background: #D5E378;
        background: linear-gradient(180deg,rgba(213, 227, 120, 1) 0%, rgba(104, 115, 4, 1) 100%);
        border-top: solid 5px #FAFBCE;
        border-bottom: solid 5px #FAFBCE;
        padding-left: 15%;
        padding-right: 15%;
    }
}

@media (min-width: 1000px) and (max-width:1300px) {
    .banner {
        display: flex;
        align-items: center;
        padding-top: 3em;
        padding-bottom: 3em;
        background: #D5E378;
        background: linear-gradient(180deg,rgba(213, 227, 120, 1) 0%, rgba(104, 115, 4, 1) 100%);
        border-top: solid 5px #FAFBCE;
        border-bottom: solid 5px #FAFBCE;
        padding-left: 10%;
        padding-right: 10%;
    }
}

@media (max-width: 1000px) {
    .banner {
        display: flex;
        align-items: center;
        padding-top: 3em;
        padding-bottom: 3em;
        background: #D5E378;
        background: linear-gradient(180deg,rgba(213, 227, 120, 1) 0%, rgba(104, 115, 4, 1) 100%);
        border-top: solid 5px #FAFBCE;
        border-bottom: solid 5px #FAFBCE;
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (min-width: 768px) {
    .banner .views-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1em;
        align-items: stretch;
    }

    .banner .views-row .views-field-field-text-v-horni-casti {
        grid-column: span 2;
        text-align: center;
        color: #454A17;
        font-weight: bold;
        font-size: 2em;
        font-weight: 900;
    font-stretch: 75%;
    }

    .banner .views-row .views-field-field-text-v-dolni-casti {
        grid-column: span 2;
        text-align: center;
        color: #FAFBCE;
        font-weight: bold;
        font-size: 2em;
    }

    .banner .views-field-field-mapa, .banner .views-field-field-mapa .field-content {
        height: 100%;
    }

    .banner [id^="leaflet-map-"] {
        height: 100% !important;
        min-height: 100%;
    }
}

@media (max-width: 768px) {
    .banner .views-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2em;
        align-items: stretch;
    }

    .banner .views-row .views-field-field-text-v-horni-casti {
        grid-column: 1;
        text-align: center;
        color: #454A17;
        font-size: 2em;
font-weight: 900;
    font-stretch: 75%;
       line-height: 100% !important;
        margin:0 !important;
        padding: 0 !important;
    }

        .banner .views-row .views-field-field-text-v-horni-casti p {
        margin:0 !important;
        padding: 0 !important;
    }

    .banner .views-row .views-field-field-text-v-dolni-casti {
        grid-column: 1;
        text-align: center;
        color: #FAFBCE;
        font-weight: bold;
        font-size: 2em;
    }

    .banner .views-row .views-field-field-text-v-dolni-casti p {
        margin:0 !important;
        padding: 0 !important;
    }
}

.banner .views-row .views-field-field-obrazek {
    width: 100%;
    overflow: hidden;
}

.banner .views-row .views-field-field-obrazek img {
    width: 100%;
}

.banner .views-field-field-obrazek {
    display: flex;
}

.banner .views-field-field-obrazek img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* důležité */
}

.banner .views-row .views-field-field-text-v-dolni-casti a {
    color: #FAFBCE;
}

.banner .views-row .views-field-field-text-v-dolni-casti a:hover {
    color: #D5E378;
}

@media (min-width: 1300px) {
    .rozcestnik {
        padding-left: 15%;
        padding-right: 15%;
        padding-top: 3em;
        padding-bottom: 3em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4em;
        color: white;
    }
}

@media (min-width: 1000px) and (max-width:1300px) {
    .rozcestnik {
        padding-left: 10%;
        padding-right: 10%;
        padding-top: 3em;
        padding-bottom: 3em;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4em;
        color: white;
    }
}

@media (max-width: 1000px) {
    .rozcestnik {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 3em;
        padding-bottom: 3em;
        display: grid;
        grid-template-columns: 1fr;
        gap: 4em;
        color: white;
    }
}

.rozcestnik .views-row {
    text-align: center;
    color: #FAFBCE;
}

.rozcestnik .views-row a {
    color: #FAFBCE;
}

.rozcestnik .views-row a:hover {
    color: #D5E378;
}

.rozcestnik .views-row .views-field-field-obrazek {
    overflow: hidden;
    width: 100%;
    border-top-left-radius: 4em;
    border-bottom-right-radius: 4em;
    margin-bottom: 1em;
}

.rozcestnik .views-row .views-field-field-obrazek img {
    width: 100%;
    height: 20em;
    object-fit: cover;
}

.rozcestnik .views-row .views-field-title {
    font-size: 2em;
    font-weight: 900;
    font-stretch: 75%;
}

.rozcestnik .views-row .views-field-body {
    font-size: 1.1em;
    padding-left: 4em;
    padding-right: 4em;
}

.rozcestnik .views-row .views-field-field-odkaz-obrazku a {
    display: inline-block;
    background: #D5E378;
    background: linear-gradient(180deg,rgba(213, 227, 120, 1) 0%, rgba(104, 115, 4, 1) 100%);
    font-size: 1.3em;
    font-weight: bold;
    line-height: 2.5em;
    padding-left: 2em;
    padding-right: 2em;
    border: solid 2px #BCCD50;
    text-decoration: none;
}

.rozcestnik .views-row .views-field-field-odkaz-obrazku a:hover {
    background: #D5E378;
    background: linear-gradient(0deg, rgba(213, 227, 120, 1) 0%, rgba(104, 115, 4, 1) 100%);
}
