html,
body {
    padding: 0;
    margin: 0;
    font-family: 'Open Sans';
    box-sizing: border-box;

}

#objednatse {
max-width: 400px;
  position: relative;
  animation: linear infinite alternate;
  animation-name: run;
  animation-duration: 5s;
}
@-webkit-keyframes run {
    0% {
      left: 0;
      transform: translateX(0);
    }
    100% {
      left: 100%;
      transform: translateX(-100%);
    }
}

img.pref:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;	
}


img.nav_img:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;	
}

.specializace_background .container.specializace .specializace_item img:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}


.fotopic {
float: left;
	padding-right: 5px;
	padding-bottom: 20px;

}

.popisfoto {
	text-align: center;
	width: 280px;
}

.created {
width: 100%;
	color: white;
	float: right;
    background-color: black;
    text-align: right;
    padding-right: 20px;
    line-height: 40px;	
}

#menuvet {
}

.topnav {
  overflow: hidden;
}

.topnav a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  color: black;
}

.topnav a.active {
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* obecne */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

#pagesvet {
	background-image: url(logop2.png);
}


h1 {
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
}

.aktuality h1 {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
}

h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

p {
    line-height: 2rem;
    margin-block-start: 0;
    margin-block-end: 0;
}

button a {
	color: white;
}
button a:hover {
	color: #009141;
}


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

div.container.aktuality a {
    text-decoration: underline;
}

button {
    color: white;
    background-color: #009141;
    padding: 0.75rem 2rem;
    margin: 1rem 0;
    border-radius: 10px;
    border: solid 2px white;
    text-transform: uppercase;
    font-size: 1.2rem;
    cursor: pointer;
}

button:hover {
    color: #009141;
    background-color: white;
    border: solid 2px #009141;
}

/* menu */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    background-color: #f6f6f6;
    box-shadow: 0px 5px 5px #3b3b3b;
}

.nav_flexbox {
    display: flex;
}

.nav_img {
    height: 5rem;
    padding: 1rem;
}

.nav_img_fb {
    height: 2rem;
}

nav .container ul {
    align-self: center;
    position: relative;
    right: 0;
    padding: 10px;
    margin: 0 0 0 auto;
    text-align: right;
}

nav .container ul li {
    display: inline-block;
    list-style-type: none;
    vertical-align: middle;
}

nav .container ul li a {
    font-size: 1em;
    text-align: center;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.5s;
}

nav .container ul li a:hover {
    color: white;
    background-color: #009141;
}

nav .container ul li.fbold a:hover {
    color: white;
    background-color: transparent;
}

.mobile-nav-icon {
    display: none;
}

/* sekce */
.uvod {
    display: flex;
    padding: 3rem 0;
    align-items: center;
}

.uvod p {
    width: 100%;
}

.uvod_fotka img {
    height: 500px;
}

.aktuality {
    padding: 0;
    
}

.aktuality h1 {
    color: #009141;
}

.duvody_background {
    background-image: url(images/duvody_pozadi.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.duvody {
    color: white;
    padding: 3rem 0;
}

.duvody_text {
    padding: 2rem 0;
    width: 50%;
}

.duvody_fajfka {
    height: 1.2rem;
    padding-right: 0.5rem;
}

.duvody h3 {
    margin-block-start: 0;
    margin-block-end: 0;
}

.specializace_background {
    box-shadow: 0px 5px 5px #3b3b3b;
}

.specializace {
    padding: 3rem 0;
    display: flex;
    flex-wrap: wrap;
}

.specializace_item {
    width: calc(50% - 2rem);
    padding: 1rem;
}

.specializace_item p {
    margin-top: 1rem;
    width: 80%;
}

.prefooter {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background-color: #009141;
    position: relative;
    z-index: -1;
}

.prefooter_seda {
    background-color: #313632;
    height: 100px;
    transform: rotate(-2deg)scaleX(1.2);
    translate: 0 340px;
    box-shadow: 0px -5px 5px #202020;
}

.prefooter img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.footer_background {
    background-color: #313632;
}

.footer {
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 3rem 0;
}

.footer_texty {
    display: flex;
    gap: 50px;
}

.footer_texty td {
    padding: 10px 10px 10px 0;
}

.footer_loga {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
}

.footer_loga a img {
    width: 50px;
}

.footer_loga img {
    width: 80px;
}

/* media queries */
@media only screen and (max-width: 1200px) {
    .container {
        margin: 0 20px;
        width: calc(100% - 40px);
    }
}

@media only screen and (max-width: 900px) {
    .uvod {
        flex-direction: column;
    }


    .uvod_fotka img {
        width: 100%;
        object-fit: contain;
    }

    .prefooter_seda {
        translate: 0 600px;
    }

    nav .container ul li a {
        padding: 0.5rem 0.5rem;
    }
}

@media only screen and (max-width: 770px) {
    nav .container ul li a {
        padding: 0.3rem 0.3rem;
    }
}

@media only screen and (max-width: 720px) {
    .nav_img {
        height: 3rem;
    }

    .prefooter_seda {
        translate: 0 550px;
    }
}

@media only screen and (max-width: 650px) {

    .nav_flexbox {
        justify-content: space-between;
        align-items: center;
    }
    
.uvod {
    display: flex;
    padding: 0 0;
    align-items: center;
}    
    
}

@media only screen and (max-width: 600px) {

.uvod {
    display: flex;
    padding: 0 0;
    align-items: center;
}

    .duvody_background {
        background-position: left;
    }

    .duvody_text {
        width: 100%;
    }

    .specializace_item {
        width: 100%;
    }

    .footer {
        flex-direction: column;
    }

    .footer_texty {
        flex-direction: column;
    }

    .footer_loga {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
}

@media only screen and (max-width: 550px) {
    .prefooter_seda {
        translate: 0 500px;
    }
   
.uvod {
    display: flex;
    padding: 0 0;
    align-items: center;
}




}



