.timeline {
  box-sizing: border-box; }
  .timeline::before {
    box-sizing: border-box; }
  .timeline * {
    box-sizing: border-box; }
    .timeline *::before {
      box-sizing: border-box; }

/* Main logic */
.timeline {
  position: relative;
  font-size: 1em;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow-y: hidden;
  margin-top: 0; }
  .timeline .timeline-block {
    margin: 40px 0; }
  .timeline .timeline-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    left: 50%;
    margin-left: -16px;
    margin-top: -2px;
    border: 4px solid #015949;
    border-radius: 100%;
    background-color: white;
    text-align: center; }
    .timeline .timeline-icon.timeline-icon-hide-border {
      border: 0; }
      .timeline .timeline-icon.timeline-icon-hide-border i.fa, .timeline .timeline-icon.timeline-icon-hide-border img {
        margin-left: 0;
        margin-top: 0; }
    .timeline .timeline-icon i.fa, .timeline .timeline-icon img {
      display: inline-block;
      width: 32px;
      height: 32px;
      margin-left: -4px;
      margin-top: -4px;
      vertical-align: bottom;
      line-height: 32px;
      text-align: center;
      font-size: 30px; }
    .timeline .timeline-icon img {
      border-radius: 100%; }
  .timeline .timeline-content {
    position: relative;
    width: 45%;
    padding: 12px;
    background-color: #EEE;
    border: 1px solid #e5e5e5;
    line-height: 20px;
    min-height: 64px; }
  .timeline .timeline-date {
    position: absolute;
    width: auto;
    top: 0;
    left: 118%;
    font-size: 80%; }

.timeline::before {
  position: absolute;
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  margin-left: -1px;
  /* Half of width */
  background-color: #CFCFC4;
  content: ""; }

@media screen and (min-width: 800px) {
  .timeline.timeline-alternating:not(.timeline-left) .timeline-block:nth-of-type(2n) .timeline-content {
    left: 55%; }
  .timeline.timeline-alternating:not(.timeline-left) .timeline-block:nth-of-type(2n) .timeline-date {
    left: auto;
    right: 118%;
    margin-left: -400px; } }

@media screen and (max-width: 800px) {
  .timeline.timeline-collapsing::before {
    left: auto;
    margin-left: 100px; }
  .timeline.timeline-collapsing .timeline-block {
    margin-left: 134px;
    margin-right: 10px; }
  .timeline.timeline-collapsing .timeline-icon {
    left: auto;
    margin-left: -49px; }
  .timeline.timeline-collapsing .timeline-content {
    width: auto; }
  .timeline.timeline-collapsing .timeline-date {
    width: auto;
    left: 0;
    margin-left: -130px;
    text-align: right; } }

/* Left based logic */
.timeline.timeline-left::before {
  left: auto;
  margin-left: 100px; }

.timeline.timeline-left .timeline-block {
  margin-left: 134px;
  margin-right: 10px; }

.timeline.timeline-left .timeline-icon {
  left: auto;
  margin-left: -49px; }

.timeline.timeline-left .timeline-content {
  width: auto; }

.timeline.timeline-left .timeline-date {
  width: auto;
  left: 0;
  margin-left: -130px;
  text-align: right; }


