html {
    font-size: 18px;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: black;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

@media only screen and (max-width:600px){
    html{
        font-size: 15px;
    }
    
    .service_paragraph{
        font-size: 1rem;
    }
}


a{
    font-weight: bold;
    text-decoration: none;
}

a[href^=tel] {
text-decoration:inherit;
color: inherit;
}

.bold {
    font-weight: 700;
    color: white;
}

.red {
    color: rgb(218, 8, 0);
    
}

.nav_wrap {
    width:100%;
    height:auto;
    display: block;
    padding:1rem 2rem;
}

.nav_leftitem {
    display: inline-block;
    font-size: 0.75rem;
    padding:1rem;
}

.nav_leftitem>img{
    display: inline-block;
    position: relative;
    top:5px;
    height: 1rem;
    width: auto;
    padding-right: 0.75rem;
}

.nav{
    display: inline-block;
    float: right;
}

.nav_item{
    display: inline-block;
    font-size: 0.75rem;
    padding:1rem;
    text-transform: uppercase;
    -webkit-transition: color 0.2s;
    transition: color 0.2s
}

.nav_item:hover {
    color: rgb(219,8,0);
}

.nav_item>img{
    display: inline-block;
    position: relative;
    top: 3px;
    height: 1rem;
    width: auto;
    padding: 0;
   -webkit-transition: -webkit-transform 0.3s;
   transition: -webkit-transform 0.3s;
   transition: transform 0.3s;
   transition: transform 0.3s, -webkit-transform 0.3s;
    
}

.nav_item>img:hover{
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

label {
    display: none;
    font-size: 1rem;
    padding:1rem 0rem 1rem 0rem;
}

#toggle {
    display:none;
}

/*--------------Media Queries--------------*/

@media only screen and (max-width:1100px){
    label {
        display:inline-block;
        
        text-transform: uppercase;
        font-weight: 700;
        font-size: 0.75rem;
    }
    
    .nav_wrap{
      text-align: right;
    }
    
    .nav{
        display: none;
    }
    
    .nav_item{
        display:block;
        text-align: right;
        border-top: 1px solid black;
    }
    
    .nav_leftitem{
        display: none;
    }
    
    #toggle:checked + .nav {
        display: block;
        width: 100%;
        overflow: auto;
        float: none;
    }
}

/*--------------Konec menu--------------*/

.carousel {
    position: relative;
    display: block;
    width: 100%;
    min-height: 22rem;
    background-color: red;
    overflow: hidden;
}

.carousel_item {
    position: absolute;
    width: 100%;
    height: 100%;
    padding:3rem 2rem 2rem 2rem;
    text-align: center;
}

#carousel_item2 {
    background-image: url("../img/ruce.jpg");
    background-size: cover;
    background-position: center; 
    right: 0%;
     -webkit-animation: item2 20s cubic-bezier(.43, 0, .55, 1) 10s infinite ;
    animation: item2 20s cubic-bezier(.43, 0, .55, 1) 10s infinite ;
    }

@-webkit-keyframes item2 {
    0% {right:0%;}
    10% {right:100%;}
    50% {right:100%;}
    60% {right:0%;}
    100% {right:0%;}
}

@keyframes item2 {
     0% {right:0%;}
    10% {right:100%;}
    60% {right:100%;}
    70% {right:0%;}
    100% {right:0%;}
}

#carousel_item1 {
    background-image: url("../img/fake_ordinace.jpg");
    background-size: cover;
    background-position: center; 
    right: -100%;
     -webkit-animation: item1 20s cubic-bezier(.43, 0, .55, 1) 10s infinite ;
    animation: item1 20s cubic-bezier(.43, 0, .55, 1) 10s infinite ;
    }
}

@-webkit-keyframes item1 {
    0% {right:-100%;}
    10% {right:0%;}
    50% {right:0%;}
    60% {right:-100%;}
    100% {right:-100%;}
}

@keyframes item1 {
     0% {right:-100%;}
    10% {right:0%;}
    60% {right:0%;}
    70% {right:-100%;}
    100% {right:-100%;}
}


.logo {
    max-width: 17rem;
    height: auto;
    display: inline-block;
    padding: 0rem 1rem 0rem 1rem;
}

.carousel_item_text {
    text-align: center;
    color: white;
    max-width: 38rem;
    padding: 2rem 1rem 3rem 1rem;
    margin: auto;
    line-height: 1.75rem;
}

@media only screen and (max-width:480px) {
    .carousel {
        min-height: 27rem;
    }
}

/*--------------Konec carouselu--------------*/

.container {
    display: block;
    overflow: hidden;
    text-align: center;
    width: 100%;
    height: auto;
    padding: 4rem 2rem;
    }

h1 {
    display:block;
    font-size: 2rem;
    color: black;
    text-align: center;
    margin: 0;
    padding:0 0 1.2rem 0;
}

h2 {
    text-align: center;
    display: block;
    margin: auto;
    max-width: 50rem;
    color: rgb(90, 90, 90);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75rem;
    padding-bottom: 3rem
}

.service_wrap{
    max-width: 65rem;
    margin: auto;
    height: auto;
    padding:0 0 2rem 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack:distribute;
    justify-content:space-around;
  
}

.service_item{
    max-width: 20rem;
    padding:2rem 2rem 2rem 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    
}

.service_item img{
    width: 3rem;
    height:auto;
    }


h3 {
    display: block;
    font-size: 0.85rem;
    padding:1rem 0;
    text-transform: uppercase;
    text-align: left;
}

.service_paragraph{
    font-size:0.85rem;
    line-height: 1.5rem;
    color: rgb(90, 90, 90);
    text-align: left;
}

.button_red {
    display: inline-block;
    margin: auto;
    height: auto;
    width: auto;
    color: white;
    padding: 1rem 1rem 1rem 1.625rem;
    border-radius: 3rem;
    background-color: rgba(218,8,0,1);
    font-size: 1.125rem;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}
.button_red img {
    height: 1rem;
    vertical-align:text-bottom;
    padding: 0 0.5rem; 
    position: relative;
    top: -3px;
}


.button_red:hover{
    -webkit-box-shadow: 0px 0px 13px 0px #adadad;
    box-shadow: 0px 0px 13px 0px #adadad;
}

@media only screen and (max-width:800px){
  
    
    .service_item{
    max-width:28rem;   
    padding:2rem 2rem 2rem 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: center;
    
}
    .service_item img{
    width: 4rem;
    }
    
    .service_paragraph{
        
        text-align: center;
        line-height: 1.75rem;
    }
    
    h3{
        
        text-align: center
    }
    
    
}

/*-------------Konec služeb------------*/

.cat_friendly {
    background-color: orange;
    background-image: url(../img/kocka2.jpg);
    background-repeat: repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position:right;
}

.white{
    color: white;
}

.button_white {
    display: inline-block;
    margin: auto;
    height: auto;
    width: auto;
    color: white;
    padding: 1rem 1rem 1rem 1.625rem;
    border-radius: 3rem;
    font-size: 1.125rem;
    border: 2px solid white;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    -webkit-box-shadow: 0px 0px 10px 1px darkorange;
    box-shadow: 0px 0px 10px 0px darkorange;
}
.button_white img {
    height: 1rem;
    vertical-align:text-bottom;
    padding: 0 0.5rem; 
    position: relative;
    top: -3px;
}

.button_white:hover{
    background-color: white;
    color: orange;
    
}

/*-------------Konec cat firendly------------*/

.contact{
    max-width: 50rem;
    position: relative;
    display:-webkit-box;
    display:-ms-flexbox;
    display:flex;
    height: auto;
    margin:4rem auto;
    -webkit-box-shadow: 0px 0px 40px 0px #b2b2b2;
    box-shadow: 0px 0px 40px 0px #b2b2b2;
    background: #ad1f15;
    background: linear-gradient(135deg, #ad1f15 0%,#d6220e 100%); 
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ad1f15', endColorstr='#d6220e',GradientType=1 ); 
    border-radius: 5px;
    text-align: left;
}

.contact::after{
    content: url(../img/pero-21.png);
    position: absolute;
    top: -14rem;
    right: -20rem;
    display: block;
    -webkit-transform: scale(0.6,0.6);
    transform: scale(0.6,0.6);
    z-index: -1;    
}

.two_columns{
    max-width: 50rem;
    display: flex;
    justify-content: center;
    margin: auto;
}

.column_left, .column_right {
    flex-wrap: nowrap;
    font-size: 0.85rem;
    width: 20rem;
    text-align: center;
    color: rgb(90,90,90);
    line-height: 1.5rem;
}


.column_left{
    padding-right: 3rem;
    text-align: right;
}

.column_right {
    padding-left: 3rem;
    text-align: left;
    border-left: 1px solid #e2e2e2;
}

h4{
    text-transform:uppercase;
    padding-bottom:0.5rem; 
    font-size: 0.85rem;
}


.column_button{
    display: inline-block;
    border-radius: 2rem;
    background-color:rgb(218,8,0);
    padding: 0.3rem 1.5rem;
    margin-top:1rem;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
     -webkit-transition: 0.3s;
    transition: 0.3s;
}

.column_button:hover{
    -webkit-box-shadow: 0px 0px 13px 0px #adadad;
    box-shadow: 0px 0px 13px 0px #adadad;
}


.map {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    height: 25rem;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    
}

form {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    height: 25rem;
    padding: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

input, textarea{
    font-size: 0.825rem;
    color: white;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    resize: none;
    outline: none;
}

input {
   padding:0.75rem; 
}

textarea{
    height:7rem;
    line-height: 1.25rem;
    padding:0.75rem;
}

[type=text]{
    background-image: url(../img/otaznik-40.svg);
    background-size: 1.5rem auto;
    background-attachment: scroll;
    background-position: 4% 50%;
    background-repeat: no-repeat;
    padding-left: 3rem;
}

[type=email]{
    background-image: url(../img/obalka-39.svg);
    background-size: 1.3rem auto;
    background-attachment: scroll;
    background-position: 4% 50%;
    background-repeat: no-repeat;
    padding-left: 3rem;
}

[name=telefon]{
    background-image: url(../img/mobil-01.svg);
    background-size: 1.5rem auto;
    background-attachment: scroll;
    background-position: 4% 50%;
    background-repeat: no-repeat;
    padding-left: 3rem;
}

[value=Odeslat]:hover{
    cursor: pointer;
    background-color: white;
    color: #ad1f15;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder
{
    color: rgba(255, 255, 255, 0.7);
}



input:-ms-input-placeholder, textarea:-ms-input-placeholder
{
    color: rgba(255, 255, 255, 0.7);
}



input::placeholder, textarea::placeholder
{
    color: rgba(255, 255, 255, 0.7);
}

input:focus, textarea:focus {
    border:1px solid white;
    
}

@media only screen and (max-width:800px){
    
    .contact{
        max-width: 30rem;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
        margin: 2rem auto;
    }
    
    .contact::after{
        display: none;
    }
    
    .map{
        border-radius: 0 0 5px 5px;
        height: 15rem;
    }
}

@media only screen and (max-width:500px) {
    .two_columns {
        flex-direction: column;
        align-items: center;
    }
    
    
    .column_left, .column_right {
    width: 80%;
    text-align: center;
    padding: 1rem;
    border: none;
    
    }
}

/*-------------Konec contacf form------------*/

.addons {
    background-color: rgb(218,8,0);
    background-image: url(../img/ruce.jpg);
    background-repeat: repeat;
    background-size: cover;
    background-attachment:scroll;
    background-position:right;
}

.addons_icons {
    max-width: 50rem;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
   -webkit-box-pack: justify;
   -ms-flex-pack: justify;
   justify-content: space-between;
    }

.addons_icons>img {
    padding:0 2rem;
    max-width:30%;    
}

.wobble-hor-bottom {
-webkit-animation: wobble-hor-bottom 4s ease-out 1s infinite  ;
animation: wobble-hor-bottom 4s ease-out 1s infinite ;
}

.delay_one{
    -webkit-animation-delay: 1.5s;
    animation-delay: 1.5s;
}

.delay_two{
    -webkit-animation-delay: 2s;
    animation-delay: 2s;
}


@-webkit-keyframes wobble-hor-bottom {
  0%,
  25% {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  4% {
    -webkit-transform: translateX(-30px) rotate(-6deg);
            transform: translateX(-30px) rotate(-6deg);
  }
  8% {
    -webkit-transform: translateX(15px) rotate(6deg);
            transform: translateX(15px) rotate(6deg);
  }
  12% {
    -webkit-transform: translateX(-15px) rotate(-3.6deg);
            transform: translateX(-15px) rotate(-3.6deg);
  }
  16% {
    -webkit-transform: translateX(9px) rotate(2.4deg);
            transform: translateX(9px) rotate(2.4deg);
  }
  20% {
    -webkit-transform: translateX(-6px) rotate(-1.2deg);
            transform: translateX(-6px) rotate(-1.2deg);
  }
}
@keyframes wobble-hor-bottom {
  0%,
  25% {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  4% {
    -webkit-transform: translateX(-30px) rotate(-6deg);
            transform: translateX(-30px) rotate(-6deg);
  }
  8% {
    -webkit-transform: translateX(15px) rotate(6deg);
            transform: translateX(15px) rotate(6deg);
  }
  12% {
    -webkit-transform: translateX(-15px) rotate(-3.6deg);
            transform: translateX(-15px) rotate(-3.6deg);
  }
  16% {
    -webkit-transform: translateX(9px) rotate(2.4deg);
            transform: translateX(9px) rotate(2.4deg);
  }
  20% {
    -webkit-transform: translateX(-6px) rotate(-1.2deg);
            transform: translateX(-6px) rotate(-1.2deg);
  }
}

@media only screen and (max-width:800px){
   
    .addons_icons {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .addons_icons>img {
    padding:0 2rem;
    max-width: auto;
        min-width: 12rem;
        
    } 
    
   
}


/*-----------Konec Addons------------*/

footer{
    background-color: black;
    color:white;
    position: relative;
    overflow: visible;
    background-color: black;
    padding:2rem 2rem;
}

.footer_leftitem{
    display: block;
    font-size: 0.75rem;
    padding:0.25rem 2rem;
    color: white;
}

.footer_leftitem>img{
    display: inline-block;
    position: relative;
    top:5px;
    height: 1rem;
    width: auto;
    padding-right: 0.75rem;
}

.button_up {
   width: 3rem;
    display: block;
    height: auto;
    position: absolute;
    top: -1.5rem;
    right: 3rem;
    z-index: 99;
    -webkit-transition: 0.3s cubic-bezier(.35, .01, .25, 1);
    transition: 0.3s cubic-bezier(.35, .01, .25, 1);
}

.button_up:hover{
    -webkit-transform: scale(1.2,1.2);
    transform: scale(1.2,1.2)
}
.footer_wrap{
    max-width: 55rem;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: space-around;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.footer_itemwrap {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        flex-direction: column;
    }

.logo_footer{
    height: 100%;
    width: auto;
}

@media only screen and (max-width:1059px){
    
    .footer_itemwrap {
        display:block;
    }
}

/*------------suzby----------*/

.grey {
    background-color: rgb(247,247,247);
    }
.grey::before {
    content: url("../img/pes.png");
    position: absolute;
    right: 0;
    top: 16rem;
}

.service_wrap_detail{
    max-width: 50rem;
    margin: auto;
    padding-bottom: 2rem;
}

.service_item_detail{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 2rem 2rem 2rem 6rem;
    position: relative;
}


.service_item_detail h3,.service_item_detail p {
    text-align: left;
}

.service_item_detail img{
    width: 3rem;
    height:auto;
    position: absolute;
    top: 3rem;
    left: 1rem;
}

@media only screen and (max-width:1200px){
    .grey::before {
        display: none;
    } 
}

@media only screen and (max-width:600px){
  .service_item_detail img{
    width: 3rem;
    height:auto;
    position: relative;
    top: 0;
    left: 0;    
  }
    
    .service_item_detail{
    padding: 2rem;
    }
    
}

/*--------------kontaky---------------*/
.contact_wrap{
    max-width: 50rem;
    margin: auto;
}


.contact_item{
    display: inline-block;
    width: 24%;
    font-size:1rem;
    padding:1rem;
    text-align: center;
    color:rgb(90, 90, 90);
}

.contact_item>img{
    display: block;
    margin:1rem auto;
    height: 1.5rem;
    width: auto;
}

@media only screen and (max-width:900px){
    .contact_item{
        width: 47%;
    } 
}
/*--------------Onas---------------*/

.uvozovky{
    height: 3rem;
    margin-bottom: 2rem;
}

.about_wrap{
    max-width: 50rem;
    margin: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 3rem;
}

.about_name{
    text-align: left;
    font-size: 1.5rem;
    text-transform: none;
    padding-bottom:0.3rem;
}

.about_text{
    display: block;
    max-width: 34rem;
    padding-left:3rem;
}

.about_paragraph{
    font-size:0.85rem;
    line-height: 1.5rem;
    color: rgb(90, 90, 90);
    text-align: left;
    padding-top: 1rem;
}

.profile_photo{
    display:block;
   height: 16rem;
    width: auto;
}

.funkce{
    text-align: left;
    color: rgb(218, 8, 0);
    font-size: 0.825rem;
}


@media only screen and (max-width:900px){
   .profile_photo{
    display:block;
    height: 10rem;
    width: auto;
    } 
    
    .about_text{
        padding-left: 1rem;
    }
}

@media only screen and (max-width:600px){
    .about_wrap{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        }
    
    .profile_photo{
        display:block;
        height: auto;
        width: 7rem;
    }
    
    .about_text{
        padding-left: 0rem;
    }
    
    .about_name{
        text-align: center;
    }
    
    .funkce{
        text-align: center;
    }
}   

/*--------------Galerie---------------*/

.galerie{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.prostory, .pacienti {
    display: block;
    width:50vw;
    height: calc(100vh - 15rem);
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    text-transform: capitalize;
    vertical-align: middle;
    line-height: calc(100vh - 15rem);
    position: relative;
  }

.prostory {
    background-image: url(../img/prostory.jpg);
}

.pacienti {
    background-image: url(../img/pacienti.jpg);
}

.galerie_overlay{
    display: block;
    position: absolute;
    top:0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.82);
    color: white;
    font-size:1.125rem;
    -webkit-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
}

.galerie_overlay:hover{
    background-color: rgba(145, 0, 0, 0.94);
    mix-blend-mode: multiply;
    }