/* -------------------------------- 

WordPress article background-color (for live website [20080] and Carlos local [17743])

-------------------------------- */
#post-20080,  #post-17743 {
	background-color: #eff8fe;
}

.cd-container {
	/* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
	margin: 0 auto;
	max-width: 1170px;
	width: 90%;
}
.cd-container::after {
	/* clearfix */
	clear: both;
	content: '';
	display: table;
}
.cd-container p {
	font-size: 16px!important;
}
.cd-container p a {
	color: #333333!important;
	text-decoration: underline!important;
}
.cd-container p a:hover {
	color: #555555!important;
	text-decoration: underline!important;
}

/* -------------------------------- 

Main components 

-------------------------------- */

#cd-timeline {
	margin-top: 2em;
	margin-bottom: 2em;
	padding: 2em 0;
	position: relative;
}
#cd-timeline::before {
	/* this is the vertical line */
	background: #d7e4ed;
	content: '';
	height: 100%;
	left: 18px;
	position: absolute;
	top: 0;
	width: 4px;
}
@media only screen and (min-width: 1170px) {
	#cd-timeline {
		margin-top: 3em;
		margin-bottom: 3em;
	}
	#cd-timeline::before {
		left: 50%;
		margin-left: -2px;
	}
}

/* ************************************************************ */

.cd-timeline-block {
	margin: 2em 0;
	position: relative;
}
.cd-timeline-block:after {
	content: "";
	clear: both;
	display: table;
}
.cd-timeline-block:first-child {
	margin-top: 0;
}
.cd-timeline-block:last-child {
	margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
	.cd-timeline-block {
		margin: 4em 0;
	}
	.cd-timeline-block:first-child {
		margin-top: 0;
	}
	.cd-timeline-block:last-child {
		margin-bottom: 0;
	}
}

/* ************************************************************ */

.cd-timeline-img {
	border-radius: 25%;
	height: 40px;
	left: 0;
	position: absolute;
	top: 0;
	width: 40px;
}
.cd-timeline-img img {
	display: block;
	height: 24px;
	left: 50%;
	margin-top: -12px;
	margin-left: -12px;
	position: relative;
	top: 50%;
	width: 24px;
}
.cd-timeline-img {
	background: #415065;
}
.cd-timeline-img.cd-person, .cd-timeline-img.cd-curriculum {
	box-shadow: 0 0 0 4px #8fd0b5, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img.cd-construction, .cd-timeline-img.cd-president {
	box-shadow: 0 0 0 4px #8eb5c3, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img.cd-student, .cd-timeline-img.cd-celebration {
	box-shadow: 0 0 0 4px #a3929b, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.cd-timeline-img.cd-legislature, .cd-timeline-img.cd-award {
	box-shadow: 0 0 0 4px #f7cb78, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}

@media only screen and (min-width: 1170px) {
	.cd-timeline-img {
		height: 80px;
		left: 50%;
		margin-left: -40px;
		width: 80px;
		/* Force Hardware Acceleration in WebKit */
		-webkit-transform: translateZ(0);
		-webkit-backface-visibility: hidden;
	}
	.cd-timeline-img img {
		display: block;
		height: 52px;
		left: 50%;
		margin-top: -26px;
		margin-left: -26px;
		position: relative;
		top: 50%;
		width: 52px;
	}
	.cssanimations .cd-timeline-img.is-hidden {
		visibility: hidden;
	}
	.cssanimations .cd-timeline-img.bounce-in {
		animation: cd-bounce-1 0.6s;
		visibility: visible;
		-webkit-animation: cd-bounce-1 0.6s;
		-moz-animation: cd-bounce-1 0.6s;
	}
}

/* ************************************************************ */

@-webkit-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
  }
}
@-moz-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -moz-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -moz-transform: scale(1.2);
  }

  100% {
    -moz-transform: scale(1);
  }
}
@keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    -ms-transform: scale(0.5);
    -o-transform: scale(0.5);
    transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}

/* ************************************************************ */

.cd-timeline-content {
	background: gray;
	border-radius: 0.25em;
	margin-left: 60px;
	padding: 1em;
	position: relative;
}
.cd-timeline-content h2 {
	font-size: 20px;
	font-weight: 500;
	margin-top: 0;
}
.cd-timeline-content p, .cd-timeline-content .cd-date {
	/*font-size: 13px;
	font-size: 0.8125rem;*/
}
.cd-timeline-content .cd-date {
	display: inline-block;
}
.cd-timeline-content p {
	line-height: 1.6;
	margin: 1em 0;
}
.cd-timeline-content img.alignleft {
	margin: 5px 20px 12px 0;
}
.cd-timeline-content .cd-date {
	float: left;
	opacity: .7;
	padding: 0;
}

/*  For a Person or Curriculum block without media */
.cd-timeline-content.content-person, .cd-timeline-content.content-curriculum {
	background-color: #8fd0b5;
}

/*  For a Person or Curriculum block with media */
.cd-timeline-content.content-person-media, .cd-timeline-content.content-curriculum-media {
	background-color: #ffffff;
	border-radius: 0;
	border-top: solid 10px #8fd0b5;
}

/*  For a Construction or President block without media */
.cd-timeline-content.content-construction, .cd-timeline-content.content-president {
	background-color: #8eb5c3;
}

/*  For a Construction or President block with media */
.cd-timeline-content.content-construction-media, .cd-timeline-content.content-president-media {
	background-color: #ffffff;
	border-radius: 0;
	border-top: solid 10px #8eb5c3;
}

/*  For a Student or Celebration block without media */
.cd-timeline-content.content-student, .cd-timeline-content.content-celebration {
	background-color: #a3929b;
}

/*  For a Student or Celebration block with media */
.cd-timeline-content.content-student-media, .cd-timeline-content.content-celebration-media {
	background-color: #ffffff;
	border-radius: 0;
	border-top: solid 10px #a3929b;
}

/*  For a Legislature or Award block without media */
.cd-timeline-content.content-legislature, .cd-timeline-content.content-award {
	background-color: #f7cb78;
}

/*  For a Legislature or Award block with media */
.cd-timeline-content.content-legislature-media, .cd-timeline-content.content-award-media {
	background-color: #ffffff;
	border-radius: 0;
	border-top: solid 10px #f7cb78;
}

/* ************************************************************ */

@media only screen and (min-width: 768px) {
  .cd-timeline-content h2 {
    /*font-size: 20px;
    font-size: 1.25rem;*/
  }
  .cd-timeline-content p {
    /*font-size: 16px;
    font-size: 1rem;*/
  }
  .cd-timeline-content .cd-date {
    /*font-size: 14px;
    font-size: 0.875rem;*/
  }
}
@media only screen and (min-width: 1170px) {
  .cd-timeline-content {
    margin-left: -50px;
    padding: 1.6em;
    width: 48%;
  }
  .cd-timeline-content .cd-date {
    position: absolute;
    width: 100%;
    left: 130%;
    top: 6px;
    font-size: 16px;
    /*font-size: 1rem;*/
  }
  .cd-timeline-block:nth-of-type(even) .cd-timeline-content {
    /*float: right;*/
    margin-left: 58%;
  }
  .cd-timeline-block:nth-of-type(even) .cd-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    /*border-color: transparent;
    border-right-color: gray;*/
  }
  .cd-timeline-block:nth-of-type(even) .cd-timeline-content .cd-date {
    left: auto;
    right: 130%;
    text-align: right;
  }
  .cssanimations .cd-timeline-content.is-hidden {
    visibility: hidden;
  }
  .cssanimations .cd-timeline-content.bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
    -moz-animation: cd-bounce-2 0.6s;
    animation: cd-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  /* inverse bounce effect on even content blocks */
  .cssanimations .cd-timeline-block:nth-of-type(even) .cd-timeline-content.bounce-in {
    -webkit-animation: cd-bounce-2-inverse 0.6s;
    -moz-animation: cd-bounce-2-inverse 0.6s;
    animation: cd-bounce-2-inverse 0.6s;
  }
}

/* ************************************************************ */

@-webkit-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -moz-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
    -moz-transform: translateX(-100px);
    -ms-transform: translateX(-100px);
    -o-transform: translateX(-100px);
    transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
    -ms-transform: translateX(20px);
    -o-transform: translateX(20px);
    transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}
@-webkit-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -moz-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(-20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
    -moz-transform: translateX(100px);
    -ms-transform: translateX(100px);
    -o-transform: translateX(100px);
    transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -o-transform: translateX(-20px);
    transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}
