/* https://www.w3schools.com/howto/howto_css_timeline.asp */

:root {
  --timeline-text-color: #ffffff;
  --timeline-card-color: #08154da8;
  --timeline-dot-color: rgb(228, 121, 21);
}

/* The actual timeline (the vertical ruler) */
.my-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.my-timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--timeline-card-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.my-timeline .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.my-timeline .container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--timeline-dot-color);
  border: 4px solid var(--timeline-card-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.my-timeline .left {
  left: 0;
  left: -25.5%;
}

/* Place the container to the right */
.my-timeline .right {
  left: 50%;
  left: 25.5%;
}

/* Add arrows to the left container (pointing right) */
.my-timeline .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--timeline-card-color);
}

/* Add arrows to the right container (pointing left) */
.my-timeline .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--timeline-card-color) transparent transparent;
}

/* Fix the circle for containers on the right side */
.my-timeline .right::after {
  left: -16px;
}





/* The actual content ---------------- COLORS CARDS ---------------- */
.my-timeline .content {
  padding: 20px 30px;
  background-color: var(--timeline-card-color);
  /* text color */
  color: var(--timeline-text-color);
  position: relative;
  border-radius: 6px;
}
/* define the actual ---------------- COLORS TEXTs ---------------- */
.my-timeline .content h2, .my-timeline .content p{
  color: var(--timeline-text-color);
  margin-bottom: 0px; /* Adjust this value to increase or decrease the space */
  margin-top: 0px;
}
.my-timeline .content p.year {
  color: var(--timeline-dot-color); /* Replace #yourColor with the color you want */
}





/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .my-timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .my-timeline .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .my-timeline .container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .my-timeline .left::after, .my-timeline .right::after {
    left: 15px;
  }

  /* Make all right containers behave like the left ones */
  .my-timeline .right {
    left: 0%;
  }
}