/* 
Theme Name:		 rezidentione
Theme URI:		 http://childtheme-generator.com/
Description:	 rezidentione is a child theme of Twenty Nineteen, created by ChildTheme-Generator.com
Author:			 Vojtech Parkan
Author URI:		 http://childtheme-generator.com/
Template:		 twentynineteen
Version:		 1.0.54
Text Domain:	 rezidentione
*/

/* =========================================================
   HERO
   ========================================================= */

.hero {
    width: 100%;
    display: flex;
    gap: 30px;
    box-sizing: border-box;
    background-color: #B5DAE7;
    padding: 0.6em;
    margin-top: 2em;
    margin-bottom: 2em;
}


/* =========================================================
   HERO BOX
   ========================================================= */

.hero__box {
    width: calc((100% - 60px) / 2);
    box-sizing: border-box;
}


/* =========================================================
   IMAGE
   ========================================================= */

.hero .image {
    overflow: hidden;
}

.hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   VIDEO
   ========================================================= */

.hero__box--video {
    overflow: hidden;
}

.hero__box--video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   CTA
   ========================================================= */

.hero__box--cta {
    padding: 0.25em;
    display: flex;
    align-items: stretch;
}

.hero-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   CTA HEADING
   ========================================================= */

.hero-cta__heading {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'steelfishregular';
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 3.2em;
    margin-top: .3em;
}

.hero-cta__heading::before {
    content: '';
    display: none;
}

.hero-cta__subheading {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    padding-top: .5em;
    margin-bottom: 1.5em;
}

/* =========================================================
   CTA BUTTONS
   ========================================================= */

.hero-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
}

.hero-cta__button, a.hero-cta__button:visited {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: white;
    font-family: 'steelfishregular';
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.5em;
    text-align: center;
}

.hero-cta__button--2 {
    background: #E81E2C;
}

.hero-cta__button--1 {
    background: #128AB1;
}

a.hero-cta__button:hover {
    color: white;
    text-decoration: underline;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

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

    .hero__box {
        width: 100%;
    }

    .hero__box--image img {
        height: auto;
    }

    .hero-cta__button, a.hero-cta__button:visited {
        width: 100%;
    }

}

/* HERO end */


/* =========================================================
  BLOCK SECTION
  ========================================================= */

   .block-section {
       width: 100%;

       display: grid;

       /*
        * Four columns:
        *
        * 1. Left spacing
        * 2. Content
        * 3. Content
        * 4. Right spacing
        */
       grid-template-columns:
        1fr
        minmax(0, 2fr)
        minmax(0, 2fr)
        1fr;

       gap: 30px;

       box-sizing: border-box;
       margin-bottom: 4em;
   }


/* =========================================================
   SIDE SPACING
   ========================================================= */

.block-section__side {
    min-width: 0;
}


/* =========================================================
   CENTRAL COLUMNS
   ========================================================= */

.block-section__column {
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 1em;
    gap: 30px;
}


/* =========================================================
   WIDGET
   ========================================================= */

.block-widget {
    width: 100%;
    flex: 1;
    min-width: 0;

    box-sizing: border-box;
}


/* =========================================================
   BLOCK CTA
   ========================================================= */

.block-cta {
    width: 100%;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 200px;
}

h2.block-section__title_cta::before {
    content: '';
    display: none;
}

h2.block-section__title_cta {
    font-family: 'steelfishregular';
    letter-spacing: 2px;
    font-weight: 400;
    color: #128AB1;
    margin-bottom: 1em;
    text-align: center;
}

.block-cta__heading {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'steelfishregular';
    letter-spacing: normal;
    font-weight: 400;
    font-size: 1.9em;
    color: white;
    text-transform: uppercase;
}

.block-cta__heading::before {
    content: '';
    display: none;
}

.block-cta__button-wrapper {
    margin-top: auto;
}


.block-cta__button, a.block-cta__button:visited {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    background: white;
    color: black;
    font-family: 'steelfishregular';
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: .8em;
    width: 100%;
    text-align: center;
}

a.block-cta__button:hover {
    color: black;
    text-decoration: underline;
}

.block-section__column.block-section__column--right {
    background: #E81E2C;
}

.block-section__column.block-section__column--left {
    background: #128AB1;
}

.block-section__column > .block-cta:last-child .block-cta__heading {
    font-family: 'gothambold';
    text-align: right;
    text-transform: uppercase;
    font-size: 1.5em;
}

.block-section__column > .block-cta:first-child .block-cta__heading::after {
    content: ' ';
    width: 1.8em;
    display: block;
    height: 3px;
    background: white;
    margin-top: .3em;
}

.block-section__column > .block-cta:last-child .block-cta__heading::first-letter,
.block-section__column > .block-cta:last-child .block-cta__heading::last-letter {
    font-size: 1.2em;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1200px) and (min-width: 768px) {
    .block-section {
        grid-template-columns: .5fr minmax(0, 3fr) minmax(0, 3fr) .5fr;
    }
}

@media (max-width: 768px) {

    .block-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /*
     * Hide the two empty spacing columns.
     */
    .block-section__side {
        display: none;
    }

    .block-section__column {
        gap: 10px;
        padding: .5em;
    }

}


/*
    Add your custom styles here
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap');
@font-face {
    font-family: 'steelfishregular';
    src: url('./font/steelfishrg-regular-webfont.woff2') format('woff2'),
        url('./font/steelfishrg-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'gothambold';
    src: url('./font/gotham-bold1-webfont.woff2') format('woff2'),
        url('./font/gotham-bold1-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/* margins */

@media only screen and (min-width: 768px) {
    .home .entry .entry-header, .archive .page-header {
        margin: calc(3 * 1rem) calc(14% + 60px) 1rem; 
    }
    .post-type-archive-candidates .page-header h1.page-title {
        display: block;
        padding-top: 1.5em;
        padding-bottom: 0;

    }
    .home .entry .entry-content,
    .post-type-archive-candidates .entry .entry-content,
    .post-type-archive-candidates .entry .entry-summary,
    .home .entry .entry-summary {
        margin: 0 0 0 14%;
    }
}

/*logo*/

.site-title {
    text-indent: -4488em;
    display: inline-block;
    background-image: url(https://rezidenti.cz/wp-content/themes/rezidentione/images/rezidenti-logo-big-web.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 412px;
    height: 120px;
    max-width: 90%;
}

/* animation */
.animation {
    position: absolute;
    z-index: -1;
}


/* backgrounds */

.site-content {
    background: url(./images/bg_box.png) no-repeat;
    background-size: 12%;
    background-position: 0 3em;
    padding-top: 3em;
}

.logo_compact {
    position: absolute;
    left: 50%;
    top: auto;
    transform: translate(-30%, -30%);
    margin-top: -0.5em;
    width: calc(140px * 1.2);
    height: calc(197px * 1.2);
    transition: all .5s linear;
}

@media screen and (min-width: 768px) {
    .logo_compact:hover {
        width: calc(140px * 1.25);
        height: calc(197px * 1.25);
    }
    
}

body {
    background: url(./images/bg_footer.png) no-repeat bottom right;
    background-repeat: no-repeat;
    
}

p.site-title a {
    font-family: 'gothambold';
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #0194bc !important;
    font-size: 2.5em;
    font-weight: 400;
    position: relative;
}

span.candidateNumber {
    display: inline-block;
    margin-right: .5em;
    background-color: #eb2026;
    color: #fff;
    border-radius: 2em;
    width: 1.5em;
    height: 1.5em;
    text-align: center;
    line-height: 1.5em;
}

.site-description {
    visibility: hidden;
}

.site-logo .custom-logo-link:hover {
    box-shadow: none;
}

.main-navigation {
    position: absolute;
    top: 6px;
    left: 80px;
    width: calc(100% - 80px);
}

.main-navigation .menu-hlavni-menu-container ul.main-menu>li {
    margin-right: .5em;
}
.main-navigation .menu-hlavni-menu-container ul.main-menu>li a {
    padding-right: 0.5em;
    white-space: nowrap;
}

.main-navigation .menu-hlavni-menu-container ul.main-menu>li::after {
    content: '\2022';
    color: black;
    font-weight: 400;
    font-size: .8em;
}

.main-navigation .menu-hlavni-menu-container ul.main-menu>li:last-child:after {
    content: '';
}

.archive .page-header .page-title,
.search .page-header .page-title,
.error404 .page-header .page-title {
    font-family: steelfishregular;
    font-size: 2em;
    font-weight: 600;
    color: #0194bc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-meta {
    display: none;
}

.pageClaim1, .pageClaim2 {
    background: #0094BC;
    display: inline-block;
    padding: 0 0.5em;
    font-size: 2.6em;
    font-family: steelfishregular;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.4em;
    z-index: -1;
}

.pageClaim2 {
    background: #EC2127;
    margin-top: 5px;
}

.main-navigation .main-menu>li>a {
    font-weight: 400;
    color: black;
    font-size: .8em;
}

footer .site-info {
    visibility: hidden;
}

.footer-navigation {
    display: block;
    margin-top: 2em;
    visibility: visible;
}

.site-info>a {
    display: block;
    text-indent: 0;
}

h1.mailpoet-heading:not(.site-title):before {
    display: none !important;
}

#mailpoet_form_1,
#mailpoet_form_1 .mailpoet_paragraph.last {
    border-radius: .7em !important;
}

body {
    font-family: Roboto, sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

.site-logo {
    right: auto;
    position: static;
}

/* categories */
.image-filters-enabled .entry.type-post .post-thumbnail {
    max-width: 50%;
    border-radius: 0%;
}

/* FB image frame  profileform */

#fileToUpload {
    font-family: sans-serif;
}

.stage.hidden {
    display: none;
}

.clearfix {
    clear: both;
    display: block;
}

a.next-stage {
    clear: both;
}

.fbimageframe form label.image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: block;
    width: 200px;
    height: 200px;
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
    cursor: pointer;
}

.fbimageframe label.addtomaplabel {
    padding: 1em;
    display: block;
    border: 1px solid;
    border-radius: 0.3em;
    margin-bottom: 1em;
}

div#st-3, div#st-2 {
    border: 1px solid lightgrey;
    border-radius: 4px;
    padding: 6em;
    background: #fafafa;
    color: #1d1d1d;
    font-family: sans-serif;
}

.addmetomap {
    border-bottom: 1px solid;
    margin-bottom: 1em;
}

.addmetomap label {
    display: block;
}

.addmetomap select {
    display: block;
    margin-bottom: 1em;
    padding: 0.6em;
    font-family: sans-serif;
}

.addmetomap input#suppaddr {
    width: 100%;
}

.addmetomap input {
    display: block;
    margin-bottom: 1em;
}

.fbimageframe input[type=radio] {
    position: absolute;
    top: 0;
    left: 0;
}

.fbimageframe input[type=radio]:checked+label {
    border: 1px solid #EC2127;
}

.fbimageframe input[type=radio]:checked {
    top: 50%;
}

.fbimageframe form label img {
    width: 200px;
    height: auto;
}

.fbimageframe form label img.frame {
    position: absolute;
    left: 0;
    top: 0;
}

.fbimageframe {
    padding-bottom: 8em;
}

/* mapa */

.error {
    padding: 1em;
    background: #eb2026;
    color: white;
}

.page .entry .entry-content, .single .entry .entry-content {
    min-height: 600px;
}

.post-type-archive-candidates .entry .entry-content,
.post-type-archive-candidates .entry .entry-summary {
    min-height: auto;
}

.page-podporovatele .entry .entry-content,
.page-podporovatele .entry .entry-summary {
    max-width: 75%;
}

/* accordion */
h2.c-accordion__title {
    font-size: 1em;
}

/* candidates */

.image-filters-enabled .entry .post-thumbnail .post-thumbnail-inner {
    filter: none;
}

.image-filters-enabled .entry .post-thumbnail::after, 
.image-filters-enabled .entry .post-thumbnail::before {
    display: none;
}
@media screen and (min-width: 1161px) {
    body:not(.home) .logo_compact {
        right: 10%;
    }
}
@media screen and (min-width: 868px) {
    
 
    body:not(.home) .logo_compact {
        right: 0;
        left: auto;
        position: fixed;
    }
    .post-type-archive-candidates .entry .entry-title {
        margin: 0;
        width: calc(100% - 250px);
        float: right;
    }
}

.post-type-archive-candidates .site-content {
    margin-right: 25%;
}
.post-type-archive-candidates .entry-content {
    clear: both;
}
.post-type-archive-candidates .entry-footer::after {
    content: "";
    display: block;
    border-bottom: 1px dashed grey;
}

.post-type-archive-candidates aside.sidebar {
 display: none;
}
.candidate img {
    max-width: 200px;
    border-radius: 50%;
}
.image-filters-enabled .entry .post-thumbnail {
    position: relative;
    display: block;
    max-width: 200px;
    border-radius: 50%;
    overflow: hidden;
}
/*

.site-title,
.site-description {
    height: 0;
    width: 0;
    display: block;
    overflow: hidden;
}



.site-header {
    position: absolute;
    left: 0;
    top: 1em;
}
*/
.entry .entry-title:before {
    background: transparent;
}

ol {
    padding-left: 0.5em;

    list-style-type: none;
    counter-reset: item;
}

ol>li {
    margin: 0;
    padding: 1em 0 0 0;
    text-indent: -1em;
    list-style-type: none;
    counter-increment: item;
}

ol>li:before {
    display: inline-block;
    width: 1em;
    padding-right: 0.5em;
    font-weight: bold;
    text-align: right;
    content: counter(item) ".";
}

/* sidebar */

aside.sidebar {
    float: right;
    width: 20%;
    margin-right: 10%;
    position: relative;
    padding-top: 400px;
    top: -3em;
    border-radius: 5px;
    padding-bottom: 200px;
}

aside.sidebar .candidate::before {
    content: " ";
    width: 1px;
    border: 1px solid;
    height: 100%;
    z-index: -1;
    position: absolute;
    left: 50%;
    transform: translateX(-350%);
    top: 0;
}

aside.sidebar .candidate:last-child::before {
    border: 0;
}

.candidate::after {
    content: " ";
    background-image: url(./images/kolicek.png);
    display: block;
    position: absolute;
    width: 4em;
    height: 1.5em;
    top: 0;
    left: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-21%, -72%);
}

aside.sidebar h2::before {
    display: none;
}

aside.sidebar h2 {
    font-size: 1em;
    margin: 0;
}

aside.sidebar .candidate {
    text-align: center;
    position: relative;
    padding-bottom: 1.5em;
}

aside.sidebar h3, aside.sidebar h4 {
    font-size: .7em;
    display: inline-block;
    margin: 0 0 0.5em 0;
    background-color: #fff;
    padding: 0.4em;
    font-weight: 400;
    white-space: nowrap;
    -webkit-box-shadow: 0px 0px 13px 1px rgba(202, 198, 202);
    -moz-box-shadow: 0px 0px 13px 1px rgb(202, 198, 202);
    box-shadow: 0px 0px 13px 1px rgba(202, 198, 202);
}

img.baloons {
    width: 388px;
    max-width: 388px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-42%);    
}

/* flipping card */

.card {
    width: 200px;
    height: 200px;
    position: relative;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.card img {
    box-shadow: 4px 5px 15px 0px;
    border-radius: 50%;
}

.card-container {
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -o-perspective: 1000;
    perspective: 1000;
    position: relative;
    width: 200px;
    height: 200px;
    position: absolute;
    width: 200px;
    height: 200px;
    left: 50%;
    transform: translateX(-52%);
}

.front,
.back {
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: -webkit-transform 300ms;
    transition: -webkit-transform 300ms;
    transition: transform 300ms;
    transition: transform 300ms, -webkit-transform 300ms;
    -webkit-transition-timing-function: linear;
    transition-timing-function: linear;
    -webkit-transform-origin: center top;
    transform-origin: center top;
}

.card .front {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.card .back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.card:hover .front,
.card.hover .front {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.card:hover .back,
.card.hover .back {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

/*menu dropdown*/

.main-navigation .main-menu>li.menu-item-has-children .submenu-expand.main-menu-more-toggle svg {
    top: -0.18rem;
    vertical-align: text-bottom;
    left: -0.15em;
    zoom: 1.1;
}

body .main-navigation .main-menu>li {
    color: #0194bc;
}

body .main-navigation .sub-menu {
    background-color: #0194bc;
}

.main-navigation .main-menu>li.menu-item-has-children .submenu-expand.main-menu-more-toggle {
    border: 7px solid;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
}

/* medie queries */

@media screen and (max-width: 1491px) {
    .site-content {
        background-size: 150px;
        background-position: -30px 2em;
    }
    .footer-navigation .footer-menu li {
        display: inline-block;
        margin-right: 1rem;
        margin-bottom: 1em;
    }

    footer#colophon .site-info a {
        background-color: white;
        padding: 0.5em;
    }
}

@media screen and (max-width: 1400px) and (min-width: 767px) {
    .post-type-archive-candidates .site-content {
        margin-right: 10%;
    }
    .logo_compact {
        width: calc(140px * 1.2);
        height: calc(197px * 1.2);
    }
    .logo_compact:hover {
        width: calc(140px * 1.25);
        height: calc(197px * 1.25);
    }
}

@media screen and (min-width: 1260px) {
    body {
        background-size: 600px;
    }
    .logo_compact {
        right: 5%;
    }
}

@media screen and (max-width: 1160px) {
    .logo_compact {
        width: calc(140px * 1);
        height: calc(197px * 1);
    }
}

@media screen and (max-width: 1025px) {
    .candidate img {
            max-width: 150px;
        }
    body, html {
        overflow-x: hidden;
    }
    .logo_compact {
        position: absolute;
        left: 50%;
        top: 27%;
        transform: translateX(-20%);
        margin-top: -0.5em;
    }
    
    .card, .card-container {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 767px) {
    body {
            background-position: bottom center;
        }
    #fileToUpload {
        font-size: .5em;
        width: 100%;
        min-height: 100vh;
    }
    .page-co-chceme-zmenit #fileToUpload {
        min-height: 5em;
    }
    div#st-3, div#st-2 {
        padding: 1em;
        min-height: 100vh;
    }
    .page-podporovatele .entry .entry-content,
    .page-podporovatele .entry .entry-summary {
        max-width: 100%;
    }
    .site-content {
        margin-bottom: 3em;
    }
    #colophon.site-footer {
        position: relative;
        margin-top: 138px;
    }
    #colophon .site-info {
        margin-bottom: 0;
    }
    .candidate img {
        max-width: 100px;
    }
    .footer-navigation {
        margin-top: 0;
        position: absolute;
        top: 0;
        transform: translateY(-100%);
        padding-right: 2em;
        word-break: keep-all;
        hyphens: none;
    }
    aside.sidebar h3,
    aside.sidebar h4 {
        font-size: .6em;
        display: inline-block;
        margin: 0.5em;
        background-color: #fff;
        padding: 0.5em;
        font-weight: 400;
        -webkit-box-shadow: 0px 0px 8px 1px rgb(202 198 202);
        -moz-box-shadow: 0px 0px 8px 1px rgb(202, 198, 202);
        box-shadow: 0px 0px 8px 1px rgb(202 198 202);
        border-radius: 5px;
    }
    .logo_compact {
        display: block;
        transform: none;
        margin: 0;
        top: -1.5em;
        left: auto;
    }
    .pageClaim1,
    .pageClaim2 {
        font-size: 2em;
        z-index: 1000000;
        position: relative;
        margin-top: -0.5em;
    }
    .pageClaim2 {
        margin-top: 0.1em;
    }

    /* background */
    .site-content {
        background: none;
    }
    .wp-block-spacer.spacerBox {
        height: 50px !important;
    }

    .logo_compact {
        position: relative;
    }
    .single-candidates .logo_compact {
        top: 0;
    }
   
    ol {
        padding-left: 1em;
    }

    ol>li {
        padding-left: 1em;
        text-indent: -1em;
    }

    p.site-title a {
        font-size: 1.5em;
    }

    p.site-title a::after {
        top: 3px;
    }
    img.baloons {
        margin-bottom: -0.35em;
    }
    aside.sidebar {
        float: none;
        width: auto;
        margin-right: 0;
        position: relative;
        top: auto;
        border-radius: 0;
    }
    aside.sidebar h3,
    aside.sidebar h4 {
        white-space: normal;
    }
    .main-navigation .menu-hlavni-menu-container ul.main-menu>li a {
        padding-right: 0;
    }
    .main-navigation .menu-hlavni-menu-container ul.main-menu>li {
        margin-right: 0;
    }
    .main-navigation .menu-hlavni-menu-container ul.main-menu>li::after {
        display: none;
    }
    .post-type-archive-candidates .site-content {
        margin-right: 0;
    }
    .post-type-archive-candidates .entry .entry-title {
        font-size: 1em;
    }
}

@media screen and (max-width: 670px) {
    body {
        background-size: contain;
    }
}

@media screen and (max-width: 500px) {
    .pageClaim1,
    .pageClaim2 {
        font-size: 1.5em;
        letter-spacing: -1px;
    }
}
