.tabs {
  width: 100%;
}
.tab-header {
  display: flex;

  position: relative;
  z-index: 1;
}
.tab-header > div {
  font: 400 1.125rem/150% "Nunito Sans", sans-serif;
  width: calc(100%/3);
  text-align: center;
  cursor: pointer;

  /* position: relative; */
  z-index: 1;
  align-self: center;
  padding: 0.5rem;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}
.tab-header > div.tab-active {
  font: 700 1.125rem/150% "Nunito Sans", sans-serif;
  color: #4923b5;
}

/* small screens overflow prevention*/
@media (max-width: 576px) {
  .tab-header > div {
    font-size: 3.5vw;
  }
  .tab-header > div.tab-active {
    font-size: 3.5vw;
  }
}

.tab-indicator {
  width: calc(100%/3);
  left: 0;
  border-radius: 5px;
  transition: all 500ms ease-in-out;

  position: absolute;
  border: 2px solid #afacd3;
  background: #f8f7fc;
  border-radius: 24px 24px 0 0;
  top: 0px;
  height: calc(100% + 2px);
  z-index: 1;
  border-bottom: 0;
}
.tab-body {
  position: relative;
  height: calc(100% - 60px);

  z-index: 0;
  background: #f8f7fc;
  border: 2px solid #afacd3;
  border-top-left-radius: 0;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  padding-top: 24px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* sadly, we're required to set at least the container height explicitly */
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 1rem;
  transition: all 0.3s ease-out;
}
.tab-body > div {
  opacity: 0;
  transform: scale(0.9);

  z-index: 2;
  max-height: 0px;

  transition: opacity 0.3s ease-out, transform 0.3s ease-out;

  overflow: hidden;
}

/* musi byc div.tab-active, nie moze byc samo .tab-active, Nobla dla tego kto odpowie dlaczego */
div.tab-active {
  opacity: 1;
  transform: scale(1);
  max-height: max-content;
}

@media (max-width: 992px) {
  .tab-1::after {
    content: "Badania";
  }
  .tab-2::after {
    content: "Projekty";
  }
  .tab-3::after {
    content: "UX Writing";
  }
}

@media (min-width: 992px) {
  .tab-1::after {
    content: "Rzetelne badania UX";
  }
  .tab-2::after {
    content: "Projekty UX & UI";
  }
  .tab-3::after {
    content: "UX Writing";
  }
}

/* content */
.tab-body > div {
  display: flex;
  justify-content: space-around;
}
.tab-image {
  align-self: center;
  margin-left: 1rem;
}
.tab-paragraph {
  align-self: center;
  max-width: 75ch;
}

@media (max-width: 992px) {
  .tab-body > div {
    flex-direction: column;
  }
  .tab-image {
    width: 20ch;
  }
}
