/*
 * StyleName:		timeline.css
 * Email:		trung.styles@gmail.com
 *
 */

#timeline {
	margin: 5px auto 2vw;
	padding: 3vw;
	background: rgba(255, 255, 255, .5);
	width: 90vw;
	max-width: 1200px;
	position: relative;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, .12),
		0 1px 2px rgba(0, 0, 0, .24);
}
#timeline abbr[data-tooltip] {
	cursor: help;
	text-decoration: underline;
	text-decoration: underline dotted;
	position: relative;
	z-index: 2;
}
#timeline abbr[data-tooltip]:before,
#timeline abbr[data-tooltip]:after {
	pointer-events: none;
	opacity: 0;
	transition: all .3s ease;
	visibility: hidden;
}
#timeline abbr[data-tooltip]:hover:before,
#timeline abbr[data-tooltip]:hover:after {
	opacity: 1;
	visibility: visible;
}
#timeline abbr[data-tooltip]:before {
	content: attr(data-tooltip);
	padding: 7.5px 5px;
	margin-bottom: 5px;
	color: #FEFEFE;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	background-color: rgba(0, 0, 0, .8);
	border-radius: 3px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
}
#timeline abbr[data-tooltip]:after {
	content: "";
	margin-left: -5px;
	font-size: 0;
	line-height: 0;
	width: 0;
	position: absolute;
	left: 50%;
	bottom: 100%;
	border-top: 5px solid rgba(0, 0, 0, .8);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
}
#timeline img {
	width: 100%;
	height: auto;
	max-width: 100%;
}
#timeline .main {
	color: #606060;
}
#timeline .entry {
	margin-left: 50px;
	padding: 0 50px;
	min-height: 60px;
	position: relative;
}
#timeline .entry + .entry {
	margin-top: 50px;
}
#timeline .entry.break {
	margin-top: 40px;
}
#timeline .content {
	display: inline-block;
	position: relative;
}
#timeline .entry:first-child .content,
#timeline .entry:last-child .content {
	text-align: center;
}
#timeline .content:before,
#timeline .content:after {
	content: "";
	margin: auto;
	background: #909090;
	width: 2px;
	border-radius: 5px;
	position: absolute;
	left: -50px;
}
#timeline .content:before {
	top: 20px;
	bottom: 0;
	transform: translateY(40px);
}
#timeline .entry.break .content:before {
	top: 5px;
}
#timeline .entry:not(.great) .content:before {
	top: 0;
	transform: translateY(40px);
}
#timeline .entry:first-child .content:before {
	display: none;
}
#timeline .entry:last-child .content:before {
	top: 0;
	bottom: 50%;
	transform: translateY(-35px);
}
#timeline .content:after {
	display: none;
}
#timeline .entry:first-child .content:after {
	display: block;
	top: 50%;
	bottom: -5px;
	transform: translateY(35px);
}
#timeline .entry:last-child .content:after {
}
#timeline .avatar {
	margin: auto;
	width: 150px;
}
#timeline .date {
	color: #455A64;
	font-size: 22px;
	font-weight: 600;
}
#timeline .entry:first-child .date,
#timeline .entry:last-child .date,
#timeline .entry.great .date {
	color: #2D3E50;
	font-size: 32px;
}
#timeline .entry.actual-work .date {
	font-weight: normal;
}
#timeline .desc {
	color: #263238;
	font-size: 18px;
}
#timeline .entry:first-child .desc,
#timeline .entry:last-child .desc,
#timeline .entry.great .desc {
	font-size: 24px;
}
#timeline .desc ul {
	margin: 0;
	padding-left: 20px;
}
#timeline .caption {
	padding: 3px 0;
	color: #607D8B;
	font-size: 16px;
}
#timeline .logo {
	padding: 10px 0;
	width: 100%;
	max-width: 200px;
}
#timeline .logo.w-ratio {
	max-width: 350px;
}
#timeline .logo.h-ratio {
	max-width: 125px;
}
#timeline .event-circle {
	margin: 30px 0;
	background: #007AF5;
	width: 20px;
	height: 20px;
	border-radius: 100%;
	position: absolute;
	top: -23px;
	left: -9px;
	box-shadow:
		inset 0 0 0 5px #007AF5,
		inset 0 0 0 10px #FEFEFE;
	z-index: 1;
}
#timeline .entry:first-child .event-circle,
#timeline .entry:last-child .event-circle,
#timeline .entry.great .event-circle {
	top: -15px;
}
#timeline .entry:not(.great):not(:first-child):not(:last-child) .event-circle {
	background: #FBBC05;
	width: 14px;
	height: 14px;
	left: -6px;
	box-shadow:
		inset 0 0 0 4px #FBBC05,
		inset 0 0 0 10px #FEFEFE;
}
#timeline .entry.break .event-circle {
	background: #F44336;
	box-shadow:
		inset 0 0 0 2px #F44336,
		inset 0 0 0 4px #FEFEFE;
}
#timeline .entry:first-child .event-circle,
#timeline .entry:last-child .event-circle {
	margin: auto;
	background: #607D8B;
	top: 0;
	bottom: 0;
}
#timeline .event-circle:before,
#timeline .event-circle:after {
	content: "";
	opacity: 0;
	margin: auto;
	width: 50px;
	height: 50px;
	border-radius: 100%;
	border: 1px solid #007AF5;
	position: absolute;
	top: 0;
	left: -20px;
	right: -20px;
	bottom: 0;
	transform: scale(0);
	animation: circle 2s linear infinite;
	z-index: -1;
}
#timeline .event-circle:before {
	width: 40px;
	height: 40px;
}
#timeline .entry:not(.great):not(:first-child):not(:last-child) .event-circle:before,
#timeline .entry:not(.great):not(:first-child):not(:last-child) .event-circle:after {
	width: 30px;
	height: 30px;
	border-color: #FBBC05;
	animation-duration: 1s;
}
#timeline .entry:first-child .event-circle:before,
#timeline .entry:last-child .event-circle:before,
#timeline .entry:first-child .event-circle:after,
#timeline .entry:last-child .event-circle:after {
	border-color: #607D8B;
}
#timeline .entry:not(.great):not(:first-child):not(:last-child) .event-circle:after {
	width: 26px;
	height: 26px;
	animation-delay: .75s;
}
#timeline .entry.great .event-circle:after {
	animation-delay: 1.75s;
}
#timeline .entry.break .event-circle:before,
#timeline .entry.break .event-circle:after {
	display: none;
}
#timeline .button {
	margin-top: 25px;
	padding: 25px;
	text-align: center;
	border-top: 1px dotted #DFDFDF;
}
#timeline .link {
	display: inline-block;
	margin: auto;
	padding: 10px;
	color: #FEFEFE;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	background: #007AF5;
	min-width: 200px;
	border-radius: 5px;
	transition: all .3s ease;
}
#timeline .link:hover {
	background: #2893FF;
}
#timeline a.link {
	text-decoration: none;
}
#timeline canvas {
	pointer-events: none;
	margin: auto;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 100%;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}



@keyframes circle {
	0% {
		opacity: 0;
		transform: scale(0);
	}
	25% {
		opacity: 1;
		transform: scale(.25);
	}
	100% {
		opacity: 0;
		transform: scale(1);
	}
}