/**
  Time line
  
  CSS File for styling time line elements
  for position :
  
  vertical on center with both left and right direction
  vertical on the left side
  vertical on the right side.
  horizontal mode

  **/

/**
  Generic styling applied to both
  vertical and horizontal mode
  **/
/** End and major styling **/
#page .timeline-main-wrapper .timeline-end,
#page .timeline-main-wrapper .timeline-major {
  border-radius: 120px;
  width: 120px;
  padding: 0;
  box-shadow: none !important;
}


#page .timeline-main-wrapper .timeline-end > .timeline-end-wrapper,
#page .timeline-main-wrapper .timeline-major > .timeline-major-wrapper {
  display: table-cell;
  width: 120px;
  height: 120px;
  text-align: center;
  vertical-align: middle;
  padding: 20px;
  box-shadow: none !important;
  border-color: inherit;
  position: relative;
}

#page .timeline-main-wrapper .timeline-end > .timeline-end-wrapper:after,
#page .timeline-main-wrapper .timeline-major > .timeline-major-wrapper:after {
  content: '';
  border-radius: 73px;
  border-width: 3px;
  border-style: solid;
  border-color: inherit;
  position: absolute;
  top: -13px;
  left: -13px;
  bottom: -13px;
  right: -13px;
}

/** Icon styling **/
#page .timeline-main-wrapper .timeline-icon > .fa {
  font-size: 26px;
  border-width: 6px;
  border-style: none;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  line-height: 60px;
  vertical-align: middle;
  padding: 0;
}

#page .timeline-main-wrapper .timeline-icon > .fa:after {
  content: '';
  width: 76px;
  height: 76px;
  border-width: 3px;
  border-style: solid;
  border-color: inherit;
  border-radius: 38px;
  position: absolute;
  top: -38px;
  left: -38px;
}

#page .timeline-title {
  color: inherit;
  font-size: 18px;
  font-weight: bold;
}

/**
  Horizontal Mode
  **/

.timeline-main-wrapper[data-layout="horizontal"] [data-type="end"] {
  margin-right: 0;
}

/** Item positioning and sizing **/
.timeline-main-wrapper[data-layout="horizontal"] .timeline-items {
  padding-left: 30px;
  padding-right: 30px;
  width: 180px;
}

.timeline-main-wrapper[data-layout="horizontal"] .timeline > .timeline-items:last-child {
  padding-left: 46px;
  padding-right: 14px;
}

.timeline-main-wrapper[data-layout="horizontal"] .timeline > .timeline-items:first-child {
  padding-left: 14px;
  padding-right: 46px;
}


/**
  Timeline bar
  **/
#page .timeline-main-wrapper[data-layout="horizontal"] .timeline-bar {
  height: 20px;
  margin-top: -10px;
  left: 16px;
  right: 16px;
}
/** Event adjustment **/
.timeline-main-wrapper[data-layout="horizontal"] .timeline-items[data-type="event"] {
  width: 200px;
}

.timeline-main-wrapper[data-layout="horizontal"] .timeline-events {
  padding: 60px 0;
  text-align: center;
}

.timeline-main-wrapper[data-layout="horizontal"] .timeline-events > * {
  padding: 10px 0;
}

#page .timeline-main-wrapper[data-layout="horizontal"] .timeline-icon > .fa {
  margin-left: -30px;
  margin-top: -30px;
}

/** date styling **/
#page .timeline-main-wrapper[data-layout="horizontal"] .timeline-time {
  margin: 10px auto 30px;
  display: inline-block;
}

#page .timeline-main-wrapper[data-layout="horizontal"] [data-direction="top"] .timeline-time:after,
#page .timeline-main-wrapper[data-layout="horizontal"] [data-direction="top"] .timeline-time:before {
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  top: -16px;
  left: 50%;
  margin-left: -8px;
}

#page .timeline-main-wrapper[data-layout="horizontal"] [data-direction="top"] .timeline-time:after {
  top: -13px !important;
}

#page .timeline-main-wrapper[data-layout="horizontal"] [data-direction="bottom"] .timeline-time:after,
#page .timeline-main-wrapper[data-layout="horizontal"] [data-direction="bottom"] .timeline-time:before {
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  bottom: -16px;
  left: 50%;
  margin-left: -8px;
}

#page .timeline-main-wrapper[data-layout="horizontal"] [data-direction="bottom"] .timeline-time:after {
  bottom: -13px;
  top: auto !important;
}


/*****************************/


/** Custom scrollbar **/
.timeline-main-wrapper.scrollable.timeline-skin[data-layout="horizontal"] .scroll-bar.horizontal {
  height: 10px !important;
  background-color: #a9a9a9;
  border-radius: 5px;
  margin: 0 auto;
}

.timeline-main-wrapper.scrollable.timeline-skin[data-layout="horizontal"] .thumb {
  width: 48px !important;
  height: 24px !important;
  margin-top: -7px;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #f7504c;
  border-radius: 12px;
}


/**
  Vertical Styling
  **/
.timeline-main-wrapper[data-layout="vertical"] [data-type="end"] {
  margin-bottom: 0;
}

/** Time line bars **/
#page .timeline-main-wrapper[data-layout="vertical"] .timeline-bar {
  width: 20px;
  margin-left: -10px;
}

#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="bottom"] .timeline-events,
#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="right"] .timeline-events {
  padding-left: 80px;
}

#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="center"] .timeline-events,
#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="top"] .timeline-events,
#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="left"] .timeline-events {
  padding-right: 80px;
}

#page .timeline-main-wrapper[data-layout="vertical"] .timeline-icon {
  top: 16px;
}

/**
  Vertical mode
  on left alignment
**/
#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"] [data-timeline="bar"] {
  left: 64px;
  margin-left: -32px;
}


#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"] .timeline-events {
  padding-left: 140px;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"] .timeline-icon {
  left: 64px;
}

/**
  Vertical mode
  on right alignment
**/
#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] [data-timeline="bar"] {
  right: 48px;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] .timeline-events {
  padding-right: 140px;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] .timeline-icon {
  right: -3px;
}

/**
  Timeline dates
  **/
#page .timeline-time {
  border-width: 2px;
  border-style: solid;
  border-radius: 8px;
  padding: 5px 10px;
  position: relative;
  margin-bottom: 20px;
}

#page .timeline-time:after,
#page .timeline-time:before {
  content: '';
  display: block;
  position: absolute;
  width: 8px;
  height: 12px;
  border-width: 8px;
  border-style: solid;
}

#page .timeline-time span {
  float: none;
  font-size: 16px;
  display: inline-block;
  margin: 0 10px 0 0;
  line-height: 18px;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] .timeline-time:after,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] .timeline-time:before,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="center"] [data-direction="left"] .timeline-time:before,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="center"] [data-direction="left"] .timeline-time:after {
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  right: -16px;
  top: 50%;
  margin-top: -8px;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] .timeline-time:after,
#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="left"] .timeline-time:after {
  right: -13px !important;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"] .timeline-time:before,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"] .timeline-time:after,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="center"] [data-direction="right"] .timeline-time:after,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="center"] [data-direction="right"] .timeline-time:before {
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-color: transparent;
  left: -16px;
  top: 50%;
  margin-top: -8px;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"]  .timeline-time:after,
#page .timeline-main-wrapper[data-layout="vertical"] [data-direction="right"] .timeline-time:after {
  left: -13px !important;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="right"] .timeline-time,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="center"] [data-direction="left"] .timeline-time {
  float: right;
}

#page .timeline-main-wrapper[data-layout="vertical"][data-align="left"] .timeline-time,
#page .timeline-main-wrapper[data-layout="vertical"][data-align="center"] [data-direction="right"] .timeline-time {
  float: left;
}

#page .timeline-main-wrapper[data-layout="vertical"] .timeline-title,
#page .timeline-main-wrapper[data-layout="vertical"] .timeline-content {
  clear: both;
}


/** For small mobile phone and iPhone < version 4 **/

@media (max-width: 480px) {

  .timeline-main-wrapper[data-layout="vertical"] .timeline-events .timeline-icon.faplus,
  .timeline-main-wrapper[data-layout="vertical"] .timeline-time:after, 
  .timeline-main-wrapper[data-layout="vertical"] .timeline-time:before,
  .timeline-main-wrapper[data-layout="vertical"] .timeline-bar {
    display: none !important;
  }
  
  .timeline-main-wrapper[data-layout="vertical"] .timeline-time {
    float: none !important;
    display: table;
    margin-left: auto;
    margin-right: auto;
  }

  #page .timeline-main-wrapper[data-layout="vertical"] .timeline-events {
    padding: 0 !important;
    margin: 0;
    display: block !important;
    width: 100% !important;
    text-align: center !important
  }
  
  .timeline-main-wrapper[data-layout="vertical"] .timeline-end,
  .timeline-main-wrapper[data-layout="vertical"] .timeline-major {
    float: none;
  }
}