timline-body {
  background: #fff;
  font-family:sans-serif;
  display: flex;
  justify-content: center;
}

/* Timeline Container */
.timeline {
  background: #fff;
  margin: 20px auto;
  padding: 20px;
}

/* Card container */
.tlcard {
  position: relative;
  max-width: 600px;
}

/* setting padding based on even or odd */
.tlcard:nth-child(odd) {
  padding: 30px 0 30px 30px;
}
.tlcard:nth-child(even) {
  padding: 30px 30px 30px 0;
}
/* Global ::before */
.tlcard::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid #4ccdef;
}

/* Setting the border of top, bottom, left */
.tlcard:nth-child(odd)::before {
  left: 0px;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}

/* Setting the border of top, bottom, right */
.tlcard: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 */
.tlcard:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.tlcard: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 */
.tlcard: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: #272e4f;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
}

/* Title of the card */
.title {
  color: #fff;
  position: relative;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 999px;
  border: 3px solid #272e4f;
}

/* text right if the card is even  */
.tlcard:nth-child(even) > .info > .title {
  text-align: right;
}

/* setting dot to the left if the card is odd */
.tlcard:nth-child(odd) > .info > .title::before {
  left: -45px;
}

/* setting dot to the right if the card is odd */
.tlcard:nth-child(even) > .info > .title::before {
  right: -45px;
}
