#portfolio > p {
  text-align: center;
}
.wrapper {
  position: relative;
  display: block;
  margin: 0 45px;
  height: 240px;
  text-align: center;
}
.line-area {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  width: 100%;
  height: 7px;
  background: #16171a;
  border-radius: 10px;
}
.single-item {
  display: block;
  width: 6%;
  height: 100%;
  transition: all 0.8s linear;
  z-index: 1;
}
.single-item > p {
  margin-left: 3%;
  margin-right: 3%;
  padding: 5px 10px;
  width: 170px;
  height: fit-content;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #000;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(00, 00, 00, 0.4);
}

.single-item:nth-child(6n) > p {
  margin: 132px auto 5px;
}
.single-item:nth-child(6n + 3) > p {
  margin: 21px auto 5px;
}

.single-item:nth-child(6n + 2) > p,
.single-item:nth-child(6n + 5) > p {
  margin: 58px auto 5px;
}
.single-item:nth-child(6n + 1) > p,
.single-item:nth-child(6n + 4) > p {
  margin: 95px auto 5px;
}

.single-item > p:after {
  content: "";
  display: block;
  width: 3px;
  background: #000;
}
.single-item:nth-child(6n) > p:after {
  height: 140px;
  margin: -146px auto 5px;
}
.single-item:nth-child(6n + 3) > p:after {
  height: 35px;
  margin: -41px auto 5px;
}
.single-item:nth-child(6n + 2) > p:after,
.single-item:nth-child(6n + 5) > p:after {
  height: 70px;
  margin: -75px auto 5px;
}
.single-item:nth-child(6n + 1) > p:after,
.single-item:nth-child(6n + 4) > p:after {
  height: 110px;
  margin: -115px auto 5px;
}

/* AFTER ACTIVE */

.single-item.active:nth-child(6n) > p:after {
  margin: -146px 86px 5px;
}
.single-item.active:nth-child(6n + 3) > p:after {
  margin: -41px 86px 5px;
}
.single-item.active:nth-child(6n + 2) > p:after,
.single-item.active:nth-child(6n + 5) > p:after {
  margin: -75px 86px 5px;
}
.single-item.active:nth-child(6n + 1) > p:after,
.single-item.active:nth-child(6n + 4) > p:after {
  margin: -115px 86px 5px;
}

/* BEFORE */

.single-item > p:before {
  content: "";
  display: block;
  margin-left: 5px;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
}

.single-item:nth-child(6n) > p:before {
  margin: -142px auto 126px;
}
.single-item:nth-child(6n + 3) > p:before {
  margin: -32px auto 16px;
}
.single-item:nth-child(6n + 1) > p:before,
.single-item:nth-child(6n + 4) > p:before {
  margin: -106px auto 90px;
}
.single-item:nth-child(6n + 2) > p:before,
.single-item:nth-child(6n + 5) > p:before {
  margin: -69px auto 53px;
}

.single-item.active > p {
  font-weight: 600;
  color: #fac011;
  transition: 0.2s ease-in;
}
.single-item.active > p:before {
  border-radius: 50%;
  margin-left: 80px;
  transform: scale(1.5, 1.5);
  transform-origin: center;
  transition: 0.2s ease-in;
}

.content-area {
  display: none;
  position: absolute;
  top: 170px;
  left: 1px;
  width: 90%;
}
.content-area a {
  display: block;
  width: 100%;
  height: 100%;
}
.content {
  position: absolute;
  display: table;
  margin: auto;
  padding: 15px;
  left: 0;
  right: 0;
  width: 905px;
  height: 500px;
  text-decoration: none;
  color: #fff;
  background: #16171a;
  box-shadow: 0 3px 5px rgba(00, 00, 00, 0.2);
  border-radius: 20px;
}
.content h3 {
  padding: 20px;
  color: #14aaad;
}
.content-description {
  display: flex;
  justify-content: space-between;
  padding: 25px;
}
.content-description p {
  text-align: justify;
  padding-bottom: 10px;
}
.content-description ul {
  margin-top: 10px;
  text-align: left;
  list-style: none;
}
.content-description li {
  text-align: justify;
  padding-top: 5px;
}
.content-description li::before {
  content: "";
  display: inline-block;
  margin: 0 auto -3px;
  height: 16px;
  width: 20px;
  background-image: url(../img/chevron-right-solid-orange.svg);
  background-repeat: no-repeat;
}
.content img {
  width: 250px;
  max-height: 390px;
  height: fit-content;
  margin-left: 30px;
}

.single-item.active {
  width: 7%;
  margin-left: 5%;
  margin-right: 5%;
  transition: all 0.8s linear;
}
.single-item.active .content-area {
  display: block;
}

@media (max-width: 480px) {
  .wrapper {
    margin: 0 5px;
  }
}
