@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

html{
  scroll-behavior: smooth;
}

body {
  margin:0 auto;
  font-family: 'Open Sans', sans-serif;
  background-image: url(../img/papir.jpg);
}

header{
  height: 98vh;
  text-align: center;
}

.box {
  width: 300px;
  height: 300px;
  border-radius: 5px;
  box-shadow: 0 2px 30px rgba(black, .2);
  background: lighten(#f0f4c3, 10%);
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  margin: 3% auto;
}

.wave {
  opacity: .4;
  position: absolute;
  left: 50%;
  background: #0af;
  width: 500px;
  height: 450px;
  margin-left: -250px;
  margin-top: -250px;
  transform-origin: 50% 48%;
  border-radius: 43%;
  animation: drift 3000ms infinite linear;
}

.wave.-three {
  animation: drift 5000ms infinite linear;
}

.wave.-two {
  animation: drift 7000ms infinite linear;
  opacity: .1;
  background: yellow;
}

.box:after {
  content: '';
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(#e8a, 1), rgba(#def, 0) 80%, rgba(white, .5));
  z-index: 11;
  transform: translate3d(0, 0, 0);
}

.title {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1;
  text-align: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  text-shadow: 0 1px 0 rgba(black, .1);
}
@keyframes drift {
  from { transform: rotate(0deg); }
  from { transform: rotate(360deg); }
}


.cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 50%;
  margin: 0 auto;
  gap: 10px;
}

.card{
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  color: #353535;
  line-height: 6vh;
  height: 10vh;
  cursor: pointer;
  width: 90%;
}

.card h3{
  font-size: 17px;
}

.hvr-sweep-to-right {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  border-radius: 8px;
}
.hvr-sweep-to-right:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #60c9ee;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
  border-radius: 8px;
}
.hvr-sweep-to-right:hover, .hvr-sweep-to-right:focus, .hvr-sweep-to-right:active {
  color: white;
}
.hvr-sweep-to-right:hover:before, .hvr-sweep-to-right:focus:before, .hvr-sweep-to-right:active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.box-card{
  width: 30vw;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: justify;
  text-align: center;
}

main{
  width: 70%;
  margin: 0 auto;
}

.items{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 5% auto;
}


.box-card .text{
  padding: 10px;
  text-align: left;
  font-size: 15px;
}

.img{
  margin: 10% auto;
  width: 40vw;
  background-repeat: no-repeat;
  background-size: contain;
}

.hlubina{
  background-image: url(https://dnykrestanskerodiny.cz/2024/img/velrybicka.png);
}

.potapec{
  background-image: url(https://dnykrestanskerodiny.cz/2024/img/hlubina.png);
}

.cenik{
  color: #202020;
}


.ubytko h3{
  color: #202020;
}

.ubytko a{
  color: #fb9844;
}

.infotable{
  border: 1px solid #30160d;
border-collapse: collapse;
margin: 0 auto;
box-shadow: 2px 2px 6px rgba(0, 0, 0, .3);
background-color: white;
}

.infotable th,td{
  border: 1px solid #30160d;
padding: 5px;
}

.mapouter{margin: 3% auto;}
.gmap_canvas{border-radius: 10px;}

#kontakty{
  padding: 10px;
  text-align: left;
  width: 50vw !important;
  margin: 2% auto;
}

.photo-gallery{
  margin: 3% auto;
  text-align: center;
}

.image-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 600px;
  grid-gap: 0.5rem;
  margin: 0 auto;
}

.image-container .image {
  position: relative;
  padding-bottom: 100%;
}

.image-container .image a {
  display: block;
  height: 100%;
  width: 100%;
}

.image-container .image a img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  left: 0;
  position: absolute;
  top: 0;
}

.image-container .image a:nth-of-type(1) img {
  filter: grayscale(1) brightness(40%);
}

.image-container .image a:nth-of-type(2) img {
  -webkit-clip-path: var(--clip-start);
          clip-path: var(--clip-start);
  transition: -webkit-clip-path 0.5s;
  transition: clip-path 0.5s;
  transition: clip-path 0.5s, -webkit-clip-path 0.5s;
}

.image-container .image:hover a:nth-of-type(2) img {
  -webkit-clip-path: var(--clip-end);
          clip-path: var(--clip-end);
}


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

  .wrapper{
    position: relative !important;
    width: 90% !important;
    transform: none;
    left: 0;
    top: 0;
    margin: 0 auto;
    height: 50vh;
    text-align: center;
    color: #202020;
  }

  .cards{
    width: 90% !important;
  }
  
}
