@import url("https://fonts.googleapis.com/css?family=Barlow+Condensed:200,300,400,500,600,700,800,900|Roboto:300,400,500,700,900|Satisfy&display=swap");
:root {
  --primary-color: #212121;
  --background-color: #fff;
  --font: sans-serif;
}


/* Timeline Container */
.timeline {
  margin: 20px auto;
  padding: 20px;
  transition: .3s;
}

/* Card container */
.timeline_card {
  position: relative;
  max-width: 100%;
  transition: .3s;
  border: none;
}

/* setting padding based on even or odd */
.timeline_card:nth-child(odd) {
  padding: 30px 0 30px 30px;
}
.timeline_card:nth-child(even) {
  padding: 30px 30px 30px 0;
}
/* Global ::before */
.timeline_card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: 50px solid orangered;
}

/* Setting the border of top, bottom, left */
.timeline_card:nth-child(odd)::before {
  left: 0px;
  top: -5.1px;
  bottom: -4.8px;
  border-width: 5px 0 5px 5px;
  border-radius: 40px 0 0 40px;
  z-index: 1;
}

/* Setting the border of top, bottom, right */
.timeline_card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 40px 40px 0;
}

/* Removing the border if it is the first card */
.timeline_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 */
.timeline_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 */
.timeline_card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

/* Information about the timeline */
.timeline_card .info {
  display: flex;
  flex-direction: column;
  background: rgb(246, 235, 224);
  color: gray;
  border-radius: 5px;
  padding: 10px;
  transition: .3s;
}

/* Title of the card */
.timeline_card  .title {
  color: rgb(35, 28, 26);
  cursor: pointer;
  font-family: Verdana;
  font-weight: 500;
  z-index: 3;
  font-size: 20px;
  position: relative;
}
.timeline_card  .text {
  display: none;
  transition: .3s;
}

/* Timeline dot  */
.timeline_card .title::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 99px;
  z-index: 2;
  border: 5px solid orangered;
}

/* text right if the card is even  */
.timeline_card:nth-child(even) > .info > .title {
  text-align: right;
}

/* setting dot to the left if the card is odd */
.timeline_card:nth-child(odd) > .info > .title::before {
  left: -45px;
}

/* setting dot to the right if the card is odd */
.timeline_card:nth-child(even) > .info > .title::before {
  right: -45px;
}