*{
box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url(foggy-pine-forest-background-vector.jpg);
    text-align: center;
    /*
    background: linear-gradient(-45deg, #a59a39, #ad8b2e, #709629, #118133);
    background-size: 400% 400%;
    animation: gradient 30s ease infinite;
    height: 150vh;
    */
}
@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }

  50% {
      background-position: 100% 50%;
  }

  100% {
      background-position: 0% 50%;
  }
}

p{
 font-family:  Georgia, 'Times New Roman', Times, serif;
}

.nadpis{
  margin: auto;
  padding: 10px;
  color: #ffffff9c;
  font-size: 140px;
  transition: transform 330ms ease-in-out;
  font-family:Georgia, 'Times New Roman', Times, serif;
  letter-spacing: 40px;
}

.obsmed{
  font-size: medium;
}

.medojedosek{
  max-width: 100%;
  height: auto;
  border-radius: 2%;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 5%;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid black;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.right::after {
  left: -16px;
}

.content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
}

@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  .container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }
  
  .container::before {
  left: 60px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
  }

  .left::after, .right::after {
  left: 15px;
  }
  
  .right {
  left: 0%;
  }
}

.video{
  
  max-width: 100%;
  height: auto;
}

.medojedosek{
  max-width: 100%;
height: auto;
border-radius: 2%;
}

.cardBox {
  /*float: left;*/
  font-size: 1.2em;
  margin-left: 38%;
  perspective: 800px;
  transition: all 0.3s ease 0s;
  width: 23.7%;
  
}

.cardBox:hover .card {
  transform: rotateY( 180deg);
}

.card {
  background: #222222eb;
  cursor: default;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.7s ease 0s;
  width: 100%;
  -webkit-animation: giro 1s 1;
  animation: giro 1s 1;
  border-radius: 2%;
}

.card p {
  margin-bottom: 1.8em;
}

.card .front,
.card .back {
  backface-visibility: hidden;
  box-sizing: border-box;
  color: white;
  display: block;
  font-size: 1.2em;
  height: 100%;
  padding: 0.8em;
  position: absolute;
  text-align: center;
  width: 100%;
}

.card .front strong {
  background: #fff;
  border-radius: 100%;
  color: #222;
  font-size: 1.5em;
  line-height: 30px;
 /* padding: 0 7px 4px 6px; */
}

.card .back {
  transform: rotateY( 180deg);
}

.card .back a {
  padding: 0.3em 0.5em;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 1px;
  font-size: 0.9em;
  transition: all 0.2s ease 0s;
}

.card .back a:hover {
  background: #fff;
  color: #333;
  text-shadow: 0 0 1px #333;
}

.cardBox:nth-child(2) .card .back {
  background: orange;
}

.cardBox:nth-child(2) .card {
  -webkit-animation: giro 1.5s 1;
  animation: giro 1.5s 1;
}

@media screen and (max-width: 767px) {
  .cardBox {
    margin-left: 2.8%;
    margin-top: 3%;
    width: 46%;
  }
  .card {
    height: 285px;
  }
  .cardBox:last-child {
    margin-bottom: 3%;
  }
}

@media screen and (max-width: 480px) {
  .cardBox {
    width: 94.5%;
  }
  .card {
    height: 260px;
  }
}

.mapa{
    
    margin: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}
 
.footer {
    background: rgba(231, 231, 231, 0.6);
    padding: 10px;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-top: 15%;
    font-size: medium;
    font-weight: bold;

}
  
  @media (max-width: 600px) {
    .row {
      -webkit-flex-direction: column;
      flex-direction: column;
    }
  }