﻿/* ================ The Timeline ================ */

.timeline {
  position: relative;
  width: 900px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 1em 0;
  list-style-type: none;
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0px;
  content: ' ';
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: #505050;
  /*background: -moz-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
  background: -webkit-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -o-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  background: -ms-linear-gradient(top, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%); */
  background: linear-gradient(to bottom, rgba(80,80,80,0) 0%, rgb(80,80,80) 8%, rgb(80,80,80) 92%, rgba(80,80,80,0) 100%);
  
  z-index: 5;
}

.timeline li {
  padding: 1em 0;
}

.timeline li:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.time-item-l {
  position: relative;
	width: 420px;
  float: left;
  text-align: right;
}

.time-item-r {
  position: relative;
	width: 420px;
  float: right;
}

/*.time-item-r:first-child {
  top : -100px;
}*/

.time-item-wrapper {
  position: relative;
  display: inline-block;
  
  text-align: center;
}

.time-item {
  position: relative;
  display: inline-block;
  background: rgb(248,248,248);
  padding: 15px;
  border-radius: 10px;
  font-weight: 400;
  text-align: left;
}

.time-item-l .time-item {
	border: 1px solid #505050;
  /*box-shadow: -1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);*/
}

.time-item-r .time-item {
	border: 1px solid #505050;
  /*box-shadow: 1px 1px 1px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.15);*/
}

.time-item-l .time-item:before,
.time-item-r .time-item:before {
  position: absolute;
  top: 50%;
  right: -46px;
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  background: #fff;
  border-radius: 15px;
  border: 4px solid rgb(80,200,80);
  z-index: 10;
}

.time-item-r .time-item:before {
  left: -46px;
}

.time-item-l .time-item:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  height: 6px;
  width: 21px;
  margin-top: 2px;
  /*border: solid transparent;
  border-color: rgb(0,0,0);
  border-width: 8px;*/
	background-color: #505050;
  pointer-events: none;
}

.time-item-r .time-item:after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  height: 6px;
  width: 21px;
  margin-top: 2px;
  /*border: solid transparent;
  border-right-color: rgb(248,248,248);
  border-width: 8px;*/
	background-color: #505050;
  pointer-events: none;
}


.time-item-description {
  margin: 1em 0.75em 0 0;
  
  font-size: 0.77777em;
  font-style: italic;
  line-height: 1.5em;
}

.time-item-r .time-item-description {
  margin: 1em 0 0 0.75em;
}

/* ================ Timeline Media Queries ================ */

/*@media screen and (max-width: 660px) {

.timeline {
 	width: 100%;
	padding: 4em 0 1em 0;
}

.timeline li {
	padding: 2em 0;
}

.time-item-l,
.time-item-r {
	float: none;
	width: 100%;

	text-align: center;
}

.time-item-wrapper {
	text-align: center;
}

.time-item {
	background: rgb(255,255,255);
	z-index: 15;
}

.time-item-l .time-item:before,
.time-item-r .time-item:before {
  position: absolute;
  top: -30px;
	left: 50%;
	content: ' ';
	display: block;
	width: 12px;
	height: 12px;
	margin-left: -9px;
	background: #fff;
	border-radius: 10px;
	border: 4px solid rgb(255,80,80);
	z-index: 10;
}

.time-item-l .time-item:after,
.time-item-r .time-item:after {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	height: 0;
	width: 0;
	margin-left: -8px;
	border: solid transparent;
	border-bottom-color: rgb(255,255,255);
	border-width: 8px;
	pointer-events: none;
}

.time-wrapper {
	display: block;
	position: relative;
	margin: 4px 0 0 0;
	z-index: 14;
}

.time-item-l .time-wrapper {
	float: none;
}

.time-item-r .time-wrapper {
	float: none;
}

.time-item-description {
	position: relative;
	margin: 1em 0 0 0;
	padding: 1em;
	background: rgb(245,245,245);
	-webkit-box-shadow: 0 0 1px rgba(0,0,0,0.20);
	-moz-box-shadow: 0 0 1px rgba(0,0,0,0.20);
	box-shadow: 0 0 1px rgba(0,0,0,0.20);
	
  z-index: 15;
}

.time-item-l .time-item-description,
.time-item-r .time-item-description {
	position: relative;
	margin: 1em 1em 0 1em;
	padding: 1em;
	
  z-index: 15;
}


@media screen and (min-width: 400px ?? max-width: 660px) {

.time-item-l .time-item-description,
.time-item-r .time-item-description {
	margin: 1em 4em 0 4em;
}*/
