/** Widgets: timeline **/

.ha-timeline-block {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	direction: ltr !important;
}

.ha-timeline-block, .ha-timeline-icon-box {
	position: relative;
	z-index: 1;
}

.ha-timeline-icon {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	align-items: center;
	-ms-flex-align: center;
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #34485d;
	will-change: transform;
}

.ha-timeline-block.ha-timeline-scroll-tree .ha-timeline-icon {
	background-color: #e2498a;
}

.ha-timeline-icon i {
	color: #fff;
}

.ha-timeline-icon svg {
	width: auto;
	height: .9em;
}

.ha-timeline-icon-box-vertical-align-top .ha-timeline-icon {
	position: relative;
}

.ha-timeline-icon-box-vertical-align-center .ha-timeline-icon {
	position: relative;
	top: 50%;
	margin-top: -30px;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.ha-timeline-icon-box-vertical-align-bottom .ha-timeline-block:last-child .ha-timeline-icon, .ha-timeline-icon-box-vertical-align-center .ha-timeline-block:last-child .ha-timeline-icon {
	margin-top: 0;
}

.ha-timeline-icon-box-vertical-align-center .ha-timeline-content.arrow::before {
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.ha-timeline-icon-box-vertical-align-bottom .ha-timeline-icon {
	position: relative;
	top: 100%;
	margin-top: -60px;
	-webkit-transform: translateY(-100%);
	-ms-transform: translateY(-100%);
	transform: translateY(-100%);
}

.ha-timeline-icon-box-vertical-align-bottom .ha-timeline-content.arrow::before {
	top: auto;
	bottom: 16px;
}

.ha-timeline-tree {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: -5;
	overflow: hidden;
	width: 1px;
	height: 100%;
	background: #34485d;
	-webkit-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
}

.ha-timeline-tree-inner {
	display: block;
	width: 1px;
	height: 0;
	background-color: #e2498a;
}

.ha-timeline-title {
	font-size: 24px;
}

.ha-timeline-images {
	display: block;
}

.ha-timeline-images img {
	margin-right: 10px;
	margin-bottom: 3px;
}

.ha-timeline-content {
	position: relative;
	-webkit-box-flex: 0;
	-webkit-flex-grow: 0;
	-ms-flex-positive: 0;
	flex-grow: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	margin: 0 0 60px;
	padding: 20px;
	width: 100%;
	border: 1px solid #dedede;
	border-radius: 5px;
	will-change: transform;
}

.ha-timeline-block:last-child .ha-timeline-content {
	margin-bottom: 0;
}

.ha-timeline-content.arrow::before {
	position: absolute;
	top: 16px;
	left: 100%;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left-color: #dedede;
	content: "";
}

.ha-timeline-date-desktop {
	display: block;
}

.ha-timeline-date-tablet {
	display: none;
}

.ha-timeline-date-desktop.ha-timeline-date {
	position: absolute;
	top: 50%;
	left: calc(100% + 30px);
	width: 100px;
	color: #818d98;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.ha-timeline-button, .ha-timeline-date-desktop.ha-timeline-date .date, .ha-timeline-date-desktop.ha-timeline-date .time, .ha-timeline-date-tablet.ha-timeline-date .date, .ha-timeline-date-tablet.ha-timeline-date .time {
	display: inline-block;
}

.ha-timeline-button {
	padding: 12px 20px;
	border-radius: 40px;
	background-color: #34485d;
	color: #fff;
	vertical-align: middle;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
	-webkit-transition: all .3s;
	transition: all .3s;
}

.ha-timeline-button:hover {
	background-color: #e2498a;
	color: #fff;
}

.ha-timeline-align-center .ha-timeline-icon-box {
	-webkit-box-ordinal-group: 2;
	-webkit-order: 1;
	-ms-flex-order: 1;
	order: 1;
	margin-left: 30px;
}

.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-icon-box {
	margin-right: 30px;
	margin-left: 0;
}

.ha-timeline-align-center .ha-timeline-content {
	width: calc(50% - 54px);
}

.ha-timeline-align-center .ha-timeline-block:nth-child(even) {
	-webkit-box-orient: horizontal;
	-webkit-box-direction: reverse;
	-webkit-flex-direction: row-reverse;
	-ms-flex-direction: row-reverse;
	flex-direction: row-reverse;
}

.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-date-desktop.ha-timeline-date {
	right: calc(100% + 30px);
	left: auto;
	text-align: right;
}

.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-content.arrow::before {
	right: 100%;
	left: auto;
	border: 8px solid transparent;
	border-right-color: #dedede;
}

.ha-timeline-align-left .ha-timeline-icon-box {
	-webkit-box-ordinal-group: 1;
	-webkit-order: 0;
	-ms-flex-order: 0;
	order: 0;
	margin-right: 30px;
	margin-left: 110px;
}

.ha-timeline-align-left .ha-timeline-date-desktop.ha-timeline-date {
	right: calc(100% + 30px);
	left: auto;
	text-align: right;
}

.ha-timeline-align-left .ha-timeline-block .ha-timeline-content {
	width: calc(100% - 188px);
}

.ha-timeline-align-left .ha-timeline-content.arrow::before {
	right: 100%;
	left: auto;
	border: 8px solid transparent;
	border-right-color: #dedede;
}

.ha-timeline-align-right .ha-timeline-block {
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	-webkit-justify-content: flex-end;
	justify-content: flex-end;
}

.ha-timeline-align-right .ha-timeline-icon-box {
	-webkit-box-ordinal-group: 2;
	-webkit-order: 1;
	-ms-flex-order: 1;
	order: 1;
	margin-right: 110px;
	margin-left: 30px;
}

.ha-timeline-align-right .ha-timeline-date-desktop.ha-timeline-date {
	right: auto;
	left: calc(100% + 30px);
	text-align: left;
}

.ha-timeline-align-right .ha-timeline-block .ha-timeline-content {
	width: calc(100% - 188px);
}

.ha-timeline-align-right .ha-timeline-content.arrow::before {
	right: auto;
	left: 100%;
	border: 8px solid transparent;
	border-left-color: #dedede;
}

@media (max-width:1024px) {
	.ha-timeline-align-center .ha-timeline-block, .ha-timeline-align-center .ha-timeline-block:nth-child(even) {
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		flex-direction: row;
	}
	
	.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-icon-box, .ha-timeline-align-center .ha-timeline-icon-box, .ha-timeline-align-left .ha-timeline-icon-box, .ha-timeline-align-right .ha-timeline-icon-box {
		-webkit-box-ordinal-group: 1;
		-webkit-order: 0;
		-ms-flex-order: 0;
		order: 0;
		margin-right: 30px;
		margin-left: 0;
	}
	
	.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-icon, .ha-timeline-align-center .ha-timeline-icon, .ha-timeline-align-left .ha-timeline-icon, .ha-timeline-align-right .ha-timeline-icon {
		width: 40px;
		height: 40px;
	}
	
	.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-date-desktop.ha-timeline-date, .ha-timeline-align-center .ha-timeline-date-desktop.ha-timeline-date, .ha-timeline-align-left .ha-timeline-date-desktop.ha-timeline-date, .ha-timeline-align-right .ha-timeline-date-desktop.ha-timeline-date {
		right: 120%;
		left: auto;
		text-align: left;
	}
	
	.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-content, .ha-timeline-align-center .ha-timeline-content, .ha-timeline-align-left .ha-timeline-block .ha-timeline-content, .ha-timeline-align-right .ha-timeline-block .ha-timeline-content {
		width: calc(100% - 75px);
	}
	
	.ha-timeline-align-center .ha-timeline-block:nth-child(even) .ha-timeline-content.arrow::before, .ha-timeline-align-center .ha-timeline-content.arrow::before, .ha-timeline-align-left .ha-timeline-content.arrow::before, .ha-timeline-align-right .ha-timeline-content.arrow::before {
		top: 12px;
		right: 100%;
		left: auto;
		border: 8px solid transparent;
		border-right-color: #dedede;
	}
	
	.ha-timeline-icon-box-vertical-align-center .ha-timeline-block:nth-child(even) .ha-timeline-content.arrow::before, .ha-timeline-icon-box-vertical-align-center .ha-timeline-content.arrow::before {
		top: 50%;
	}
	
	.ha-timeline-icon-box-vertical-align-bottom .ha-timeline-block:nth-child(even) .ha-timeline-content.arrow::before, .ha-timeline-icon-box-vertical-align-bottom .ha-timeline-content.arrow::before {
		top: auto;
		bottom: 16px;
	}
	
	.ha-timeline-date-desktop {
		display: none;
	}
	
	.ha-timeline-date-tablet {
		display: block;
	}
}

@media (max-width:767px) {
	.ha-timeline-date-desktop {
		display: none;
	}
	
	.ha-timeline-date-tablet {
		display: block;
	}
}
