/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: -15px !important;
}
  
/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 2%;
    margin-left: -3px;
}
  
/* Container around content */
.tm-container {
    padding: 10px 20px;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.tm-container.circle-white{
    height: 45px;
}

.tm-container.left-icon-up{ 
    padding-top: 0px;
    padding-bottom: 0px;
}
  
/* The circles on the timeline */
.tm-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #ddd;
    top: 18px;
    border-radius: 50%;
    z-index: 1;
}

.tm-container.left-icon-up::after {
    top: -18px;
}

.tm-icon{
    position: relative;
    top: 10px;
    left: -31px;
    height: 0;
    width: 20px;
    z-index: 10;
    color: white;
}

.tm-icon.minus{
    top: 11px;
    left: -29px;
}

.tm-icon.plus{
    top: 11px;
    left: -29px;
}

.tm-container.left-icon-up .tm-icon.plus{ 
    top:-15px;
}

.tm-icon.edit{
    height: 0;
    top: 11px;
    left: -30px;
    color: #ddd;
}

.tm-icon.times{
    top: 10px;
    left: -29px;
}

/* The circles on the timeline */
.tm-container.circle-white::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    top: 18px;
    border-radius: 50%;
    z-index: 1;
    background-color: white !important;
    border: 2px #ddd solid;
}

/* Place the container to the right */
.tm-right {
    left: 2.1%;
    border-right-color: red;
    border-right-color: rgba(0,0,0,.25);
    border-left-width: 0;
}

/* Place the container to the right */
.tm-left {
    left: 0;
}
  
/* Add arrows to the right container (pointing left) */
.tm-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 20px;
    width: 0;
    z-index: 1;
    left: 10px;
    border: medium solid black;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f7f7f7 transparent transparent;
}

.tm-right.b-none::before {
    border: none;
}
  
/* Fix the circle for containers on the right side */
.tm-right::after {
    left: -16px;
}
/* Add arrows to the left container (pointing right) */
.tm-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;
}

/* The actual content */
.tm-content {
    top: 0;
    left: 0;
    max-width: 276px;
    padding: 1px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    word-wrap: normal;
    white-space: normal;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 6px;
    line-break: auto;
    position: relative;
    display: block;
    max-width: 1000px !important;
}
  
/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    /* 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 white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
  
    /* Make sure all circles are at the same spot */
    .tm-left::after, .tm-right::after {
        left: 15px;
    }
  
    /* Make all right containers behave like the left ones */
    .tm-right {
        left: 0%;
    }
}
