/* ----------------------- */
/* NIEBO - HOMESCREEN */
/* ----------------------- */

.spacer {
  height: 10vh;
  position: relative;
}

.niebo-container {
  height: 100vh;
}

/* ----------------------- */
/* HTML MAP */
/* ----------------------- */

.map-container {
  position: absolute;
  height: 100vh;
  width: 100vw;
  opacity: 100;
  z-index: 800;
  opacity: 0;
}

.fullscreen-map {
  width: 100%;
  height: 100%;
}

/* ----------------------- */
/* SLIDING TITLES */
/* ----------------------- */

#targetElementId {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 40vh;
  z-index: 100;
  transition: 0.5s ease;
}

#logo {
  height: 110px;
  transition: 0.5s cubic-bezier(0.06, 0.25, 0.4, 1);
}

.titleContainer {
  position: absolute;
  z-index: 400;
  height: 40vh;
  width: 100%;
  right: -100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: right 0.4s cubic-bezier(0, 0.99, 0.29, 1);
}

.titleText {
  align-items: center;
  justify-content: center;
  color: var(--basic-white);
}

/* ----------------------- */
/* 3D */
/* ----------------------- */

.wrapper {
  height: 100vh;
  width: 100vw;
  background-color: var(--basic-blue);
  overflow-x: hidden;
  overflow-y: scroll;
  perspective: 400px;
}

.parallax__group {
  position: relative;
  transform-style: preserve-3d;
}

.parallax__layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s ease;
  cursor: pointer;
    pointer-events: none;
}

/* ----------------------- */
/* ITEMS */
/* ----------------------- */

.bg-ground {
  background: url('img/bg-ground.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-600px) translateY(2px) scale(5);
  z-index: 1;
}

.wydarzenia {
  background: url('img/wydarzenia.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-600px) scale(2.6);
  z-index: 1;
}

.domek {
  background: url('img/domek.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-525px) scale(2.4);
  z-index: 2;
}

.browar {
  background: url('img/browar.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-300px) scale(2);
  z-index: 3;
}

.onas {
  background: url('img/o_nas.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-125px) scale(1.4167);
  z-index: 5;
}

.winnica {
  background: url('img/winnica.png') no-repeat center;
  background-size: cover;
  transform: translateZ(0) scale(1);
  margin-right: -1%;
  z-index: 6;
}

.niebo {
  background-size: cover;
  transform: translateZ(0) scale(1);
  z-index: 7;
}

/* ----------------------- */
/* MEDIA */
/* ----------------------- */

@media (max-width: 600px) {
  .spacer {
    position: relative;
  }
}
@media (min-width: 600px) {
  .spacer {
    position: absolute;
  }
}

@media (max-width: 600px) and (min-aspect-ratio: 2/3) and (max-aspect-ratio: 5/4) {
  /* ekran bliski kwadratu */
  .map-container {
    height: 60vh;
  }
  .niebo-container {
    height: 60vh;
    /* border: 3px solid red; */
  }
  .spacer {
    height: 30vh;
  }
}

@media (max-width: 600px) and (max-aspect-ratio: 2/3) {
  /* ekran pionowy */
  .map-container {
    height: 40vh;
  }
  .niebo-container {
    height: 40vh;
    /* border: 3px solid yellow; */
  }
  .spacer {
    height: 40vh;
  }
}
