@import url(variables.css);

.timeline {
	position: relative;
	background-color: var(--accent-color-dark);
  	box-shadow: var(--card-shadow-x) var(--card-shadow-y) var(--card-shadow-blur) var(--card-shadow-radius) var(--card-shadow-color);
	border-radius: var(--radius);
	border-width: 0;
	padding-bottom:1px
  }
  .timeline::before {
	content: '';
	background: #333333;
	width: 5px;
	height: 95%;
	position: absolute;
	left: 50%;
	opacity: 0.6;
	transform: translateX(-50%);
  }

  .timeline img {
	  border-radius: 0;
	  border-width: 0;
  }

  .timeline-item {
	width: 100%;
	margin-bottom: 70px;
  }
  .timeline-item:nth-child(even) .timeline-content {
	float: right;
	padding: 40px 30px 10px 30px;
  }
  .timeline-item:nth-child(even) .timeline-content .date {
	right: auto;
	left: 0;
  }
  .timeline-item:nth-child(even) .timeline-content::after {
	content: '';
	position: absolute;
	border-style: solid;
	width: 0;
	height: 0;
	top: 30px;
	left: -15px;
	border-width: 10px 15px 10px 0;
	border-color: transparent #f5f5f5 transparent transparent;
  }
  .timeline-item::after {
	content: '';
	display: block;
	clear: both;
  }

  .timeline-content {
	overflow: hidden;
	position: relative;
	width: 45%;
	padding: 10px 30px;
	border-radius: var(--radius);
	background-color: var(--card-background-color);
	border:0px solid #333333;
	box-shadow: 0 20px 25px -15px rgba(0, 0, 0, 0.3);
	margin-bottom:50px;
  }
  .timeline-content::after {
	content: '';
	position: absolute;
	border-style: solid;
	width: 0;
	height: 0;
	top: 30px;
	right: -15px;
	border-width: 10px 0 10px 15px;
	border-color: transparent transparent transparent #f5f5f5;
  }

  .timeline-img {
	width: 30px;
	height: 30px;
	background: black;
	border-radius: 50%;
	position: absolute;
	left: 50%;
	margin-top: 25px;
	margin-left: -15px;
  }

  .timeline a {
	background: #EB891B;
	color: #FFFFFF;
	padding: 8px 20px;
	text-transform: uppercase;
	font-size: 14px;
	margin-bottom: 20px;
	margin-top: 10px;
	display: inline-block;
	border-radius: 2px;
	box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.6);
  }
  .timeline a:hover, .timeline a:active, .timeline a:focus {
	background: #EB891B;
	color: #FFFFFF;
	text-decoration: none;
  }

  .timeline-card {
	padding: 0 !important;
  }
  .timeline-card p {
	padding: 0 20px;
  }
  .timeline-card a {
	margin-left: 20px;
  }

  .timeline-item .timeline-img-header-1 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2019/01/qi-gong-761095_1920-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-2 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2018/08/IMG_4103-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-3 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2018/08/IMG_4425-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-4 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2018/08/IMG_4476-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-5 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2018/08/IMG_5199-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-6 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2018/08/IMG_4523-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-7 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/2018/08/IMG_4136-400x260.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-item .timeline-img-header-8 {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4)), url("../img/cepb/divers/gouter.jpg") center center no-repeat;
	background-size: cover;
  }

  .timeline-img-header {
	height: 200px;
	position: relative;
	margin-bottom: 20px;
  }
  .timeline-img-header h2 {
	color: #FFFFFF;
	position: absolute;
	bottom: 5px;
	left: 20px;
  }

  blockquote {
	margin-top: 30px;
	color: #757575;
	border-left-color: #3F51B5;
	padding: 0 20px;
  }

  .timeline .date {
	background: black;
	display: inline-block;
	color: #FFFFFF;
	padding: 10px;
	position: absolute;
	top: 0;
	right: 0;
	overflow: hidden;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #333333;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #333333;
  }

  .timeline .corner-left {
	  border-bottom-left-radius: var(--radius);
  }
  .timeline .corner-right {
	border-bottom-right-radius: var(--radius);
}

  @media screen and (max-width: 768px) {
	.timeline::before {
	  left: 50px;
	}
	.timeline .timeline-img {
	  left: 50px;
	}
	.timeline .timeline-content {
	  max-width: 100%;
	  width: auto;
	  margin-left: 70px;
	}
	.timeline .timeline-item:nth-child(even) .timeline-content {
	  float: none;
	}
	.timeline .timeline-item:nth-child(odd) .timeline-content::after {
	  content: '';
	  position: absolute;
	  border-style: solid;
	  width: 0;
	  height: 0;
	  top: 30px;
	  left: -15px;
	  border-width: 10px 15px 10px 0;
	  border-color: transparent #f5f5f5 transparent transparent;
	}
  }