@import url("https://fonts.googleapis.com/css2?family=Amatic+SC&family=Inter:wght@400;600;700&family=Josefin+Sans:wght@300&family=Montserrat:wght@100&family=Noto+Sans:wght@100&family=Roboto+Slab:wght@100;200&family=Satisfy&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  width: 100vw;
  height: 100vh;
  display: flex;
  gap: 20px;
  background-color: beige;
  overflow-x: hidden;
}
.btn {
  position: absolute;
  bottom: 25px;
  right: 15px;
  z-index: 300;
  border: none;
  padding: 5px 10px;
  background-color: red;
  border-radius: 10px;
  display: none;
}
.btn:hover {
  cursor: pointer;
}
.listWrapper {
  width: 300px;
  height: 90vh;
  margin: 45px 0;
  border-right: 1px solid red;
}

.listWrapper a {
  text-decoration: none;
  color: red;
}
.listWrapper a:hover {
  color: black;
  text-decoration: underline;
}
.listWrapper ul {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  list-style: none;

  margin-top: 50px;
}
.listWrapper ul li {
  margin: 20px 0;
  font-size: 1.3rem;
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  font-weight: bolder;
}
.infoWrapper {
  width: 100%;
  height: 100vh;
  text-align: center;
}

.infoWrapper h1 {
  margin-top: 50px;
  margin-bottom: 50px;
  font-family: "Noto Sans", sans-serif;
  font-weight: bolder;
}
.imageWrapper {
  position: relative;
  min-width: 500px;
  align-items: center;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  transform-style: preserve-3d;
  perspective: 500px;
}
.item {
  position: relative;
  width: 500px;
  height: 150px;
  background-color: transparent;
  box-shadow: 2px 2px 2px 2px rgb(230, 85, 85);
  border-radius: 20px;
  transition: 0.5s;
  transition-delay: calc(var(--i) * 0.05s);
}
.item .opis h3 {
  font-family: "Noto Sans", sans-serif;
  font-weight: bold;
}
.item > div:nth-child(1) {
  margin-top: 20px;
}
.image {
  width: 200px;
  height: 150px;
}
.image img {
  width: 100%;
  height: 100%;
}
/*?CLASS FOR ZOOMING IMAGE*******************?*/
.zoom {
  position: fixed;
  top: -100px;
  left: -500px;
  width: 350px;
  height: 350px;
  cursor: zoom-out;
  z-index: 999;
  display: block;
}

.item:nth-child(1) {
  transform: translateY(20px) translateZ(-75px);
}
.item:nth-child(3) {
  transform: translateY(-40px) translateZ(75px);
}
.item:nth-child(4) {
  transform: translateY(-80px) translateZ(150px);
}
.imageWrapper:hover {
  cursor: pointer;
  gap: 30px;
}
.imageWrapper:hover .item {
  transform: translateY(0px) translateZ(0px);
}
@media screen and (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .imageWrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    perspective: none;
    overflow-x: hidden;
    width: 100%;
  }
  .imageWrapper:hover .btn {
    display: block;
  }
  .item {
    width: 270px;
    height: 150px;
  }
  .infoWrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
  }
  .infoWrapper p {
    margin-bottom: 20px;
  }
  .listWrapper {
    position: absolute;
    top: 20px;
    background-color: white;
    z-index: 10000;
    left: -300px;
  }
  .listWrapper ul li {
    font-size: 15px;
  }
}
