/* The actual timeline (the vertical ruler) */

*{
   box-sizing: border-box;
 }

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

/* The circles on the timeline */
.tm_container::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  right: -10px;
  background: white url("img/ashok_chakra_small.png") center;
  border: 4px solid #FF9F55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Container around content */
.tm_container_cl {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}         
              
/* The circles on the timeline */
.tm_container_cl::after {
  content: '';
  position: absolute;
  width: 26px;  
  height: 26px; 
  right: -10px;
  background-color: yellow;
  border: 4px solid #FF9F55;
  top: 15px;  
  border-radius: 50%;
  z-index: 1;
}


/* Place the tm_container to the left */
.left {
  right: 25%;
}

/* Place the tm_container to the right */
.right {
  left: 25%;
}

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

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

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

/* The actual tm_content */
.tm_content {
  padding: 20px 30px;
  position: relative;
  text-align: left;
  border: 2px solid #0000FF;
  border-radius: 8px 8px 8px 8px;
  background-image: linear-gradient(orange, white, green);
  /* background: transparent url("img/indian_flag.gif") no-repeat fixed center; */
}

.tm_content img {
  background: transparent url("img/ashok_chakra_small.png") no-repeat fixed center;
  max-height: 100%;
    max-width: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    opacity: 0.3;
}
.tm_content h2 {
    padding: 8px;
    margin: 0 0px;
    font-size: 32px;
    text-align: center;
    border-radius: 5px 5px 0 0;
    color: #FFFFFF;
    color: #FF0000;
    text-shadow: 2px 2px 2px #000000;
}

.tm_content.li {
  text-align: left;
  color: red;
}


/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 680px) {
  /* Place the timelime to the left */
  .timeline::after {
  left: 31px;
  }
  
  /* Full-width containers */
  .tm_container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }
  
  /* Make sure that all arrows are pointing leftwards */
  .tm_container::before {
  left: 60px;
  border: medium solid blue;
  border-width: 10px 10px 10px 0;
  border-color: transparent blue transparent transparent;
  }
  .left {
    right: 0;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
    left: 15px;
  }
  
  /* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  }
}
