/* Timeline Container */
.timeline {
  background: var(--primary-color);
  margin: 0px auto;
  padding: 0px 20px;
}

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

/* setting padding based on even or odd */
.card:nth-child(odd) {
  padding: 30px 0 30px 30px;
}
.card:nth-child(even) {
  padding: 30px 30px 30px 0;
}
/* Global ::before */
.card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid #3c362a;
}

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

.card-line::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 0px 2px 2px 0;
  border-radius: 0 0px 50px 0;
  content: "";
  position: absolute;
  width: 50%;
  border-color: #3c362a;
}

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

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

/* 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: gray;
  border-radius: 10px;
  padding: 10px;
}

/* Title of the card */
.title {
  color: orangered;
  position: relative;
}

/* 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::before {
  left: -45px;
}

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

.f-card::after {
  content: url("/static/images/cicon-1.3d9331e601ab.png");
  position: absolute;
  right: 100%;
  top: 33.333%;
  transform-origin: center;
}

/* sm: { max: "599px" } */
@media only screen and (max-width: 599px) {
  .f-card::after {
    right: 68%;
    transform: scale(0.3);
  }
}

/* lg: { max: "1050px" } */
@media only screen and (max-width: 1050px) {
  .f-card::after {
    right: 85%;
    transform: scale(0.5);
  }
}

@media only screen and (max-width: 1240px) {
  .card:nth-child(odd)::before {
    top: -2px;
    bottom: -2px;
  }
  .card:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0px;
    border-width: 2px 2px 2px 0;
    border-radius: 0 50px 50px 0;
  }
}
@media only screen and (max-width: 1150px) {
  .card:nth-child(odd)::before {
    top: -2px;
    bottom: -2px;
  }
  .card:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0px;
    border-width: 2px 2px 2px 0;
    border-radius: 0 50px 50px 0;
  }
}
/* 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: -2px;
    bottom: -2px;
  }
  .card {
    position: relative;
    max-width: 220px;
  }
}
