/* ================ The Timeline ================ */

.timeline li.listtitle {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.timeline li.listtitle .meMsg_MsgListCaption{
    width: 55px;
    height: 55px;
    background-color: #005B97;
    color: #EEEEEE;
    line-height: 21px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -15px;
    z-index: 10;
    margin: 20px 0;
}
.image-wrapper {
	z-index: 10;
	color:#EEE;
	//margin-top: 10px;
	width:100%;
	float: left;
	//border: 1px solid #d4d4d4;
	//border-radius: 2px;
	//padding: 2px 5px 10px 5px;
	position: relative;
	//-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
	//box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
	//background-color: white;
	text-align: left;
}

/*控制圖片大小*/
.imgg {
	z-index: 10;
	margin-top: 10px;
	width: inherit;
	height: inherit;
	border-radius: 2px;
}

.midLogo{
	position: absolute;
	left:49%;
	width: 13px;
	height: 13px;
	margin-top: 4%;
	//background-color:white;
	border-radius: 50%;
	//border: 1px solid black;
	z-index: 10;
}
.rightLogo{
    left: 31.8%;
}
.leftLogo{
    left: 62%;
    margin-top: -8px;
}
.midIcon{
    position: absolute;
		left:47%;
    content: ' ';
    display: block;
    width: 30px;
    height: 30px;
    margin-top: -10px;
    background: #fff;
    border-radius: 50%;
    border: 4px solid rgb(255, 80, 80);
    z-index: 1;
}
.rightIcon{
    left: 31.8%;
    margin-top: -8px;
}
.leftIcon{
    left: 62%;
    margin-top: -8px;
}
.timeline {
	position: relative;
	width: 800px;
	margin: 0 auto;
	margin-top: 20px;
	padding: 1em 0;
	list-style-type: none;
}
.rightTimeline {
	position: relative;
	width: 660px;
	margin: 0 auto;
	margin-top: 20px;
	padding: 1em 0;
	list-style-type: none;
}
.leftTimeline {
	position: relative;
	width: 660px;
	margin: 0 auto;
	margin-top: 20px;
	padding: 1em 0;
	list-style-type: none;
}

.timeline:before {
	position: absolute;
	left: 50%;
	top: 0;
	content: ' ';
	z-index: 0;
	display: block;
	width: 3px;
	height: 100%;
	margin-left: -3px;
	background: rgb(80, 80, 80);
	background: linear-gradient(
		to bottom,
		rgba(00, 00, 00, 0) 0%,
		rgb(00, 00, 00) 8%,
		rgb(00, 00, 00) 92%,
		rgba(00, 00, 00, 0) 100%
	);
	z-index: 5;
}
.rightTimeline:before {
	left: 35%;
}
.leftTimeline:before {
	left: 65%;
}

.timeline li {
	padding: 1em 0;
}
.timeline li:after {
	content: "";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.direction-l {
	position: relative;
	width: 370px;
	float: left;
	text-align: right;
	background-color:#005B97;
}
.direction-r {
	position: relative;
	width: 370px;
	float: right;
	background-color:#0075BE;
}

.imagewidth {
	width: 400px;
}
.directwidth {
	width: 400px;
}

.flag-wrapper {
	position: relative;
	display: block;
	z-index: 10;
	text-align: left;
	color:#CCC;
	margin: 10px 10px 0;
}
.flag {
	position: relative;
	display: inline;
	//background: rgb(248, 248, 248);
	//padding: 6px 10px;
	//border-radius: 5px;
	z-index: 10;
	font-weight: 600;
	text-align: left;
}

.direction-l .flag {
	//-webkit-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15),
		0 0 1px rgba(0, 0, 0, 0.15);
	-moz-box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
	//box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}
.direction-r .flag {
	//-webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15),
		0 0 1px rgba(0, 0, 0, 0.15);
	-moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
	//box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}
.direction-r .flag:before {
	left: -40px;
}
.direction-l .flag-wrapper:after {
	content: "";
	position: absolute;
	left: 102%;
	top: 70%;
	height: 0;
	width: 0;
	//margin-top: -8px;
	border: solid transparent;
	border-left-color: #005B97;
	border-width: 12px;
	pointer-events: none;
}
.direction-r .flag-wrapper:after {
	content: "";
	position: absolute;
	right: 102%;
	top: 70%;
	height: 0;
	width: 0;
	//margin-top: -8px;
	border: solid transparent;
	border-right-color: #0075BE;
	border-width: 12px;
	pointer-events: none;
}
.time-wrapper {
	display: inline;
	line-height: 1em;
	font-size: 13px;
	color: rgb(250, 80, 80);
	vertical-align: middle;
}
.direction-l .time-wrapper {
	float: left;
	display:none;
}
.direction-r .time-wrapper {
	float: right;
	display:none;
}
.direction-l > .image-wrapper {
	text-align: left;
}
.time {
	display: inline-block;
	padding: 6px 6px;
	background: rgb(248, 248, 248);
}
.desc {
	margin: 5px 10px 0;
	font-size: 14px;
	line-height: 150%;
}
.direction-r .desc {
	//margin: 1em 0 0 0.75em;
}

/* ================ Timeline Media Queries ================ */
@media screen and (max-width: 900px) {
	.timeline {
		width: 660px;
	}
	.direction-r{
    		width: 300px;
	}
	.direction-l{
    		width: 300px;
	}
	.midLogo{
		margin-top: 5%;
	}
}
@media screen and (max-width: 750px) {
	.timeline li.listtitle {
	    margin: -10px 0;
	}
	.image-wrapper {
		width: 100%;
	}
	.timeline {
		width: 100%;
		padding: 4em 0 1em 0;
	}
	.rightTimeline:before {
		left: 50%;
	}
	.leftTimeline:before {
		left: 50%;
	}
	.timeline li {
		padding: 2em 0;
	}
	.direction-l, .direction-r {
	 	margin-top: 10px;
		display: inline-block;
		float: none;
		width: 100%;
		text-align: center;
	}
	.flag-wrapper {
		//text-align: center;
	}
	.flag {
		//background: rgb(255, 255, 255);
		z-index: 15;
	}
	.time {
		margin-top: 10px;
	}
	.midIcon {
    left: 50%;
    position: absolute;
    content: ' ';
    margin-left: -9px;
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -30px;
    background: #fff;
    border-radius: 10px;
    border: 4px solid rgb(255, 80, 80);
    z-index: 10;
	}
	.midLogo {
    left: 50%;
    position: absolute;
    content: ' ';
    margin-left: -12px;
    display: block;
    width: 20px;
    height: 20px;
    margin-top: -30px;
    background: #fff;
    border-radius: 10px;
    z-index: 10;
	}
	.direction-l .flag-wrapper:after {
		content: "";
		position: absolute;
		left: 49%;
		top: -34px;
		height: 0;
		width: 0;
		margin-left: -8px;
		border: solid transparent;
		border-bottom-color: #005B97;
		border-width: 12px;
		pointer-events: none;
	}
	.direction-r .flag-wrapper:after {
		content: "";
		position: absolute;
		left: 49%;
		top: -34px;
		height: 0;
		width: 0;
		margin-left: -8px;
		border: solid transparent;
		border-bottom-color: #0075BE;
		border-width: 12px;
		pointer-events: none;
	}
	.imagewidth {
		width: 100%;
	}
	.directwidth {
		width: 100%;
	}
	.time-wrapper {
		display: block;
		position: relative;
		margin: 4px 0 0 0;
		z-index: 14;
	}
	.direction-l .time-wrapper {
		float: none;
	}
	.direction-r .time-wrapper {
		float: none;
		display:none;
	}
	.desc {
		position: relative;
		//margin: 1em 0 0 0;
		z-index: 15;
	}
	.direction-l .desc, .direction-r .desc {
		position: relative;
		//margin: 1em 1em 0 1em;
		z-index: 15;
	}
}
@media screen and (min-width: 400px ?? max-width: 750px) {
	.direction-l .desc, .direction-r .desc {
		//margin: 1em 4em 0 4em;
	}
}
.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.fadeIn {
	animation-name: fadeIn;
}
@keyframes fadeInLeft {
	from {
		z-index: 5;
		opacity: 0;
		transform: translate3d(-100%, 0, 0);
	}
	to {
		z-index: 5;
		opacity: 1;
		transform: none;
	}
}
.fadeInLeft {
	animation-name: fadeInLeft;
}
@keyframes fadeInRight {
	from {
		z-index: 5;
		opacity: 0;
		transform: translate3d(100%, 0, 0);
	}
	to {
		z-index: 5;
		opacity: 1;
		transform: none;
	}
}
.fadeInRight {
	animation-name: fadeInRight;
}

@keyframes fadeIn {
  from {
		z-index: 5;
    opacity: 0;
  }

  to {
		z-index: 5;
    opacity: 1;
  }
}

.fadeIn {
  animation-name: fadeIn;
}