/**
 * @package   JMZ Timeline for Joomla!
 * @author    jumazi.com
 * @copyright (C) Jumazi - All rights reserved
 * @license   GNU General Public License version 2 or later; see LICENSE
 */

.jmz-container * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.jmz-container *, .jmz-container *:after, .jmz-container *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.jmz-container {
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
}

.jmz-container::after {
  content: '';
  display: table;
  clear: both;
}

#jmz-timeline {
  position: relative;
  padding: 2em 0;
  margin-top: 2em;
  margin-bottom: 2em;
}
#jmz-timeline::before {
  /* this is the vertical line */
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
}

.jmz-timeline-block .jmz-timeline-img .jmz-timeline-icon{
    font-size: 22px;
    left: 35%;
    position: relative;
    top: 32%;
  }

@media only screen and (max-width: 1169px) {
  .jmz-timeline-block .jmz-timeline-img .jmz-timeline-icon{
    font-size: 18px;
    left: 30%;
    top: 28%;
  }
}  


@media only screen and (min-width: 1170px) {
  #jmz-timeline {
    margin-top: 3em;
    margin-bottom: 3em;
  }
  #jmz-timeline::before {
    left: 50%;
    margin-left: -2px;
  }
}

.jmz-timeline-block {
  position: relative;
  margin: 2em 0;
}
.jmz-timeline-block:after {
  content: "";
  display: table;
  clear: both;
}
.jmz-timeline-block:first-child {
  margin-top: 0;
}
.jmz-timeline-block:last-child {
  margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
  .jmz-timeline-block {
    margin: 4em 0;
  }
  .jmz-timeline-block:first-child {
    margin-top: 0;
  }
  .jmz-timeline-block:last-child {
    margin-bottom: 0;
  }
}

.jmz-timeline-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.jmz-timeline-img img {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  left: 50%;
  top: 50%;
  margin-left: -12px;
  margin-top: -12px;
}

.jmz-timeline-img.jmz-movie {
  background: #c03b44;
}
.jmz-timeline-img.jmz-location {
  background: #f0ca45;
}

.jmz-main-image{
  border-radius: 50%;
  padding:5px;
  float: left;
}

.jmz-timeline-subtitle{
  float: left; 
}




@media only screen and (min-width: 1170px) {
  .jmz-timeline-img {
    width: 60px;
    height: 60px;
    left: 50%;
    margin-left: -30px;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
  .cssanimations .jmz-timeline-img.is-hidden {
    visibility: hidden;
  }
  .cssanimations .jmz-timeline-img.bounce-in {
    visibility: visible;
    -webkit-animation: jmz-bounce-1 0.6s;
    -moz-animation: jmz-bounce-1 0.6s;
    animation: jmz-bounce-1 0.6s;
  }
}


@-webkit-keyframes jmz-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 jmz-bounce-1 {
  0% {
    opacity: 0;
    -moz-transform: scale(0.5);
  }

  60% {
    opacity: 1;
    -moz-transform: scale(1.2);
  }

  100% {
    -moz-transform: scale(1);
  }
}
@keyframes jmz-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);
  }
}
.jmz-timeline-content {
  position: relative;
  margin-left: 60px;
  background: white;
  padding: 1em;
}
.jmz-timeline-content:after {
  content: "";
  display: table;
  clear: both;
}
.jmz-timeline-content h2 {
  color: #303e49;
  margin-top: 0px;
}
.jmz-timeline-content p, .jmz-timeline-content .jmz-read-more, .jmz-timeline-content .jmz-date {
  font-size: 13px;
  font-size: 0.8125rem;
}
.jmz-timeline-content .jmz-read-more, .jmz-timeline-content .jmz-date {
  display: inline-block;
}
.jmz-timeline-content p {
  margin-top: 10px;
  line-height: 1.6;
}
.jmz-timeline-content .jmz-read-more {
  float: right;
  padding: .4em 0.5em;
  border-radius: 0.25em;
  margin-top:5px;
}
.no-touch .jmz-timeline-content .jmz-read-more:hover {
  background-color: #bac4cb;
  text-decoration: none;
  opacity:0.8;
}
.jmz-timeline-content .jmz-date {
  float: left;
  padding: .8em 0;
  opacity: .7;
}
.jmz-timeline-content::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid white;
}
@media only screen and (min-width: 768px) {
  .jmz-timeline-content h2 {
    font-size: 20px;
    font-size: 1.25rem;
  }
  .jmz-timeline-content p {
    font-size: inherit;
	
  }
  .jmz-timeline-content .jmz-read-more, .jmz-timeline-content .jmz-date {
    font-size: 14px;
  }
}
@media only screen and (min-width: 1170px) {
  .jmz-timeline-content {
    margin-left: 0;
    padding: 1.2em;
    width: 45%;
  }
  .jmz-timeline-content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: white;
  }
  .jmz-timeline-content .jmz-read-more {
    float: left;
  }
  .jmz-timeline-content .jmz-date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: inherit;
  }
  .jmz-timeline-block:nth-child(even) .jmz-timeline-content {
    float: right;
  }
  .jmz-timeline-block:nth-child(even) .jmz-timeline-content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: white;
  }
  .jmz-timeline-block:nth-child(even) .jmz-timeline-content .jmz-read-more {
    float: right;
  }
  .jmz-timeline-block:nth-child(even) .jmz-timeline-content .jmz-date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .cssanimations .jmz-timeline-content.is-hidden {
    visibility: hidden;
  }
  .cssanimations .jmz-timeline-content.bounce-in {
    visibility: visible;
    -webkit-animation: jmz-bounce-2 0.6s;
    -moz-animation: jmz-bounce-2 0.6s;
    animation: jmz-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  /* inverse bounce effect on even content blocks */
  .cssanimations .jmz-timeline-block:nth-child(even) .jmz-timeline-content.bounce-in {
    -webkit-animation: jmz-bounce-2-inverse 0.6s;
    -moz-animation: jmz-bounce-2-inverse 0.6s;
    animation: jmz-bounce-2-inverse 0.6s;
  }
}



@media (max-width: 768px){
	.jmz-timeline-content p, 
	.jmz-timeline-content .jmz-read-more, 
	.jmz-timeline-content .jmz-date {
		font-size:inherit;
	}
}

@media (max-width: 480px){
	.jmz-main-image {
	  width: 200px;
	}	

}

@media (max-width: 320px){
	
	.jmz-main-image {
	  width: 150px;
	}	
}



@-webkit-keyframes jmz-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes jmz-bounce-2 {
  0% {
    opacity: 0;
    -moz-transform: translateX(-100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes jmz-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 jmz-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
  }

  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes jmz-bounce-2-inverse {
  0% {
    opacity: 0;
    -moz-transform: translateX(100px);
  }

  60% {
    opacity: 1;
    -moz-transform: translateX(-20px);
  }

  100% {
    -moz-transform: translateX(0);
  }
}
@keyframes jmz-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);
  }
}
