
/* Timeline Container */
.timeline-curves {
  /* background: var(--primary-color); */
  margin: 20px auto;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  /* background-color: rgba(0, 0, 0, 0.7); */
}

/* Card container */
.card {
  position: relative;
  max-width: 500px;
}

.timeline-curves p {
  line-height: 1.4;
  font-size: 1rem;
  margin: 0;
}

/* setting padding based on even or odd */
.card:nth-child(odd) {
  padding: 30px 0 30px 30px;
  background-color: transparent;
  border: 0;
}
.card:nth-child(even) {
  padding: 30px 30px 30px 0;
  background-color: transparent;
  border: 0;
}
/* Global ::before */
.card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid rgb(255, 255, 255);
}

/* Setting the border of top, bottom, left */
.card:nth-child(odd)::before {
  left: 0px;
  top: -5px;
  bottom: -5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}

/* Setting the border of top, bottom, right */
.card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.card:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.card:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

/* Information about the timeline */
.info {
  display: flex;
  flex-direction: column;
  background: #333;
  color: rgb(219, 219, 219);
  border-radius: 10px;
  padding: 20px;
  font-weight: 200;
}

/* Title of the card */
.title {
  color: rgb(255, 255, 255);
  position: relative;
}

.timeline-curves h4 {
  font-size: 1.1rem;
  color: rgb(255, 255, 255);
  font-weight: 500;
  padding-bottom: 1.5rem;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 999px;
  border: 3px solid rgb(255, 255, 255);
}

/* text right if the card is even  */
.card:nth-child(even) > .info > .title {
  text-align: right;
}

/* setting dot to the left if the card is odd */
.card:nth-child(odd) > .info > .title.dot-1::before {
  left: -58px;
  top: -60px;
}

/* setting dot to the left if the card is odd */
.card:nth-child(even) > .info > .title.dot-2::before {
  top: 40px;
}

/* setting dot to the left if the card is odd */
.card:nth-child(odd) > .info > .title.dot-5::before {
  left: -58px;
  top: 245px;
}

/* setting dot to the left if the card is odd */
.card:nth-child(odd) > .info > .title::before {
  left: -58px;
  top: 110px;
}

/* setting dot to the left if the card is odd TU RETRATO QUE MARCA */
.page-trqm .card:nth-child(odd) > .info > .title.dot-3::before {
  top: 60px;
}


/* setting dot to the right if the card is odd */
.card:nth-child(even) > .info > .title::before {
  right: -58px;
  top: 110px;
}
/* setting dot to the right if the card is odd TU RETRATO QUE MARCA */
.page-trqm .card:nth-child(even) > .info > .title.dot-4::before {
  right: -58px;
  top: 170px;
}


/* Setting the top and bottom to "-5px" because earlier it was out of a pixel in mobile devices */
@media only screen and (max-width: 400px) {
  .card:nth-child(odd)::before {
    top: -5px;
    bottom: -5px;
  }
}

@media only screen and (min-width: 768px) {
  .timeline-curves p {
    font-size: 1.4rem;
  }
  /* setting dot to the left if the card is odd */
.card:nth-child(odd) > .info > .title.dot-5::before {
  top: 280px;
}
}