@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Proza+Libre&display=swap');

html{
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
  margin: 0 auto;
  font-family: 'Roboto Slab', sans-serif;
}

a {
  text-decoration: none;
}

.links{
  margin: 5% auto;
}

.odkaz{
  display: block;
  padding: 10px;
  width: 200px;
  border: 1px solid #202020;
  color: #202020;
  margin: 1% auto;
  border-radius: 10px;
}

.odkaz:hover {
  background-color: #202020 !important;
  color: #fff;
}

.tel,
.email {
  display: block;
  border: 1px solid #0b7458;
  width: 400px;
  color: #0b7458;
  padding: 5px;
  margin: .5em auto;
  font-size: 18px;
  border-radius: 10px;
}

.tel:hover,
.email:hover {
  background-color: #006a42;
  color: #fff;
}

.akt-nadpis {
  border-bottom: 1px solid #ddd;
}

.institut {
  text-align: center;
  font-family: 'Proza Libre', sans-serif;
  width: 100vw;
  color: #fff;
  float: right;
  display: block;
  font-size: 30px;
  position: relative;
  margin-top: 30vh;
  z-index: 1111;
}
#background-video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 999;
  background-position: center;
}


.nadpis {
  font-size: 30px;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
}

.nadpis h1 {
  color: #fff;

}

.grid-box{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.section {
  height: 100vh;
}

.second-section {
  color: #2e2e2ef3;
  height: 100vh;
  padding: 10px;
  width: 90%;
  margin: 0 auto;
  z-index: 999;
  position: relative;
}

.boxes {
  width: 80%;
  margin: 2% auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.box.box2 {
  grid-column: 1 / span 2;
}

.box {
  display: block;
  border-radius: 20px;
  border: 1px solid #202020;
  padding: 5px;
  text-align: center;
  background-color: #fafafa;
}

.box h2 {
  text-align: center;
}

.pay{
  background-color: #373737;
  color: #fff;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  margin: 1% auto;
}

.pay:hover{
  background-color: #202020;
}


.qr-codes{
  font-weight: bold;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 60%;
  margin: 1% auto;
}

.qr-code{
  font-weight: bolder;
}

.qr{
  width: 200px;
  margin: 0 auto;
}

.scroll-down{
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: center;
  color: #fafafa;
  width: 100%;
  z-index: 1111;
}

.scroll-down a{
  text-decoration: none;
  color: #fff;
}

.scroll-down i{
  cursor: pointer;
  font-size: 28px;
  margin: 1% auto;
}
.scroll-down i:hover{
  font-size: 33px;
}

.nav-header{
  height: 80px;
  left: 0;
  width: 100%;
  box-shadow: inset 0 -1px 0 #edefef;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-content{
width: 100%;
text-align: center;
}

.name-link{
  text-decoration: none;
  color: #1b1d24;
}

.diary-box{
  width: 65vw;
  margin: 2% auto;
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid #565656;
  padding: 10px;
}

.diary-box .text{
  text-align: justify;
  padding: 10px;
  font-weight: lighter;
  color: #373737;
}

.diary-title{
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
}

.datum{
  padding: 5px;
  background-color: #565656;
  color: #fff;
  border-radius: 10px;
}

.images{
  display: flex;
  gap: 10px;
  margin: 1% auto;
}

.img{
  width: 300px;
  border-radius: 15px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.section-title{
  text-align: center;
}

.modal-target {
  width: 300px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-target:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  opacity: 1 !important;
  max-width: 1200px;
  border-radius: 10px;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1200px;
  text-align: center;
  color: white;
  font-weight: 700;
  font-size: 1em;
  margin-top: 32px;
}

.modal-content, .modal-caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-atransform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


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

  .nav-header{
    width: auto !important;
  }

  .left-menu{
    display: none;
  }

  .name{
    font-size: 12px;
  }

  .diary-box{
    width: 90vw !important;
    margin: 2% auto;
  }

  .images{
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
  }

  .img{
    width: 300px;
    margin: 0 auto;
  }

  .qr-codes{
    font-weight: bold;
    display: grid;
    grid-template-columns: 1fr;
    width: 90%;
    margin: 1% auto;
  }

  .qr{
    width: 150Px;
  }

  .section,
  .second-section {
    width: 100%;
  }

  .section{
    height: 50vh !important;
  }

  .second-section {
    height: 150vh !important;
  }

  .institut {
    width: 100vw;
    margin-top: 10px;
    font-size: 30px;
  }

  #background-video {
    width: 100vw;
    height: 45vh;
    left: 0 !important;
  }

  .nadpis {
    font-size: 24px;
  }

  .boxes {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .box {
    width: 90%;
    margin: 0 auto;
    background-color: #fafafa !important;
  }

  .box.box2 {
    grid-column: 1;
  }

  .second-section {
    height: 80vh;
    padding: 10px 0px 0px 0px;
  }

  .tel, .email{
    width: 90%;
  }
}

@media only screen and (max-width: 767px) {
  .nadpis {
    font-size: 22px;
  }

  .tel, .email{
    width: 90%;
  }

  .email{
    font-size: 16px;
  }

}

@media only screen and (max-width: 639px) {
  .nadpis {
    font-size: 18px;
  }

  .tel, .email{
    width: 90%;
  }

  .email{
    font-size: 12px;
  }
}

/*Animace*/

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animated.infinite {
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

@-webkit-keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }
}

.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}
@-webkit-keyframes slideInLeft {
  from {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes slideInLeft {
  from {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
.slideInLeft {
  -webkit-animation-name: slideInLeft;
  animation-name: slideInLeft;
}

@-webkit-keyframes zoomIn {
  from {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}
.zoomIn {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
}
