* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Domki  */

.section-domki {
    background-color: #E9E4DA;
    text-align: center;
    /* margin-top: 110px; */
    height: auto;
  }

  .section-domki h2 {
    text-align: center;
    margin: 0 auto;
    padding-bottom: 20px;
  }

.flip-section-slider {
    overflow: hidden;
    overflow: scroll;
    scroll-behavior: smooth;
    margin: 100px 10px 0 10px;
}

.flip-sections-container {
    white-space: nowrap;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.domek-wrapper {
    display: grid;
    justify-content: center;
}

.domek-container {
    width: 260px;
    height: 390px;
   /* margin: 100px 10px 10px 10px; */
}

.domek-container-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.domek-container.active .domek-container-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 260px;
    height: 390px;
    backface-visibility: hidden;
}

.flip-card-back {
    width: 260px;
    height: 390px;
    background-color: white;
    color: black;
    transform: rotateY(180deg);
    overflow: hidden;    
    position: relative;
}

.flip-card-back img {
    width: 260px;
    height: 390px;
}


.flip-card-back p {
    position: absolute;
    color: #6C6948;
    font-weight: bold;
    font-size: 0.8em;
    line-height: 1.4em;
    top: 15px;
    left: 15px;
    text-wrap: wrap;
    margin: 40px 10px 40px 10px;
}

.fa-solid {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    padding: 7px;
    border-radius: 50%;
    opacity: 0.7;
    z-index: 999;
}

.flip-card-slider {
    position: relative;
    width: 260px;
    height: 390px;
    margin: auto;
    overflow: hidden;
}

.flip-card-slider img {
    width: 100%;
    display: none;
}

img.displaySlide {
    display: block;
    animation-name: fade;
    animation-duration: 1s;
}

.flip-card-slider button {
    position: absolute;
    bottom: 5%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: solid white 1px;
    background-color: transparent;
    cursor: pointer;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

@keyframes fade {
    from {opacity: .7
    }
    to {opacity: 1}
}




.domek-description-list p {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3em;
    text-transform: uppercase;
    margin: 20px 0 15px 0;
}

.domek-description-list li {
    font-family: inherit;
    font-size: 1.2em;
   text-align: left;
   margin-left: 30px;
   font-size: 1em;
   line-height: 2em;
}

.domek-description-list  {
    padding: 5px;
    margin-bottom: 20px;
}


@media (min-width: 1024px) {

    .section-domki {
        margin: 100px 0 0 0;
      }

    .flip-sections-container {
        white-space: nowrap;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin: 0 40px 0 40px;
    }

    .domek-container,  .flip-card-slider,  .flip-card-back,  .flip-card-back img {
        width: 300px;
        height: 428px;
    }
}

 @media (min-width: 1280px) {
    .flip-sections-container {
        margin: 0 50px 0 50px;
    }

    .domek-container,  .flip-card-slider,  .flip-card-back,  .flip-card-back img {
        width: 380px;
        height: 568px;
    }

    .flip-card-back p {
        
        font-size: 1.1em;
        line-height: 1.4em;
        
    }
} 
