/* Timeline css fix */

.timeline_items h2{
margin:10px auto;
font-size:24px;
}
.timeline_items img{
width:240px;
}

.timeline_items_holder{
padding-bottom:10px;
}

/* -----------------------------------
 TIMELINE FLAT PORTFOLIO 
 ---------------------------------- */
.timeline{
	font-weight: normal;
  font-style: normal;
  
  }
  
.timeline.timelinePortfolio .item .read_more {
	margin-top:20px;
}

.timeline.timelinePortfolio .item,
.timeline.timelinePortfolio .item_open {
	height: 427px;
}

/* -----------------------------------
 TIMELINE FLAT BLOG 
 ---------------------------------- */
.timeline.timelineBlog .item,
.timeline.timelineBlog .item_open {
	height: 338px;
}

.timeline.timelineBlog .item .post_date {
	font-family: Montserrat;
	background: #dd5555;
	color: #ffffff;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	padding: 15px;
	text-align: center;
	font-size: 24px;
	line-height: 24px;
	margin: -34px 18px 0 0;
	float: right;
	position: relative;
	z-index: 2;
}

.timeline.timelineBlog .item .post_date span {
	display: block;
	width: auto;
	height: auto;
	font-size: 12px;
	line-height: 12px;
	margin: 0;
}


/* -----------------------------------
 TIMELINE FLAT BASE DESIGN
 ---------------------------------- */

.timeline {
	display:none;
	position:relative;
}
.timelineLoader {
	width:100%;
	text-align:center;
	padding:150px 0;
}


/* fixed line holder */
.timeline .timeline_line {
	margin-top:10px;
	margin-bottom:10px;
	
}


/* full (including months that are not shown) line holder */
.timeline .t_line_holder {
	padding: 10px 0 0 0;
	height:80px;
	background:url('../../images//line.jpg') repeat-x 0px 49px;
}

/* 2 months are stored in one view */
.timeline .t_line_view {
	height:20px;
	width:900px;
}



/* holder for 1 month (constist of nodes and month caption) - we use borders to separate months thats why it has width 2px less then 50% */
.timeline .t_line_m {
	margin-top:35px;
	height:10px;
	border-left:1px solid transparent;
	border-right:1px solid #b7b6b6;
	width:448px;
}

/* month on the right side - has left set at 459 so border would overlap border from first element (to evade duplicated borders) */
.timeline .t_line_m.right {
	left:449px;
	width:449px;
	border-left:1px solid #b7b6b6;
	border-right:1px solid transparent;
}

/* month caption */
.timeline h4.t_line_month {
	font-family: Montserrat;
	font-size: 12px;
	margin:-30px 0 0;
	color:#b7b6b6;
}


/* node on the timeline */
.timeline a.t_line_node {
	text-decoration:none;
	padding:38px 0 4px;
	font-family: Montserrat;
	height:10px;
	font-size:12px;
	top:-25px;
	position: relative;
	color:#b7b6b6;
}
.timeline a.t_line_node:after {
	content: "";
	border-radius: 22px;
	height: 15px;
	width: 15px;
	border: 2px solid #ffffff;
	position: absolute;
	top: 23px;
	left: 50%;
	margin: 0 0 0 -7px;
	background:#dd5555;
}
.timeline a.t_line_node.active {
	color:#dd5555;
}

.timeline a.t_line_node.active:after {
	border: 2px solid #b7b6b6;
}

/* node description */
.timeline .t_node_desc {
	color: #FFFFFF;
    display: inline-block !important;
    left: 50%;
    opacity: 0;
    position: relative;
    top: -50px;
    transition: top 200ms ease 0s, opacity 500ms ease 0s;
    white-space: normal !important;
	background-color:none!important;
}



.timeline a.t_line_node:hover .t_node_desc {
/*.timeline a.t_line_node .t_node_desc {*/
	top: -10px;
	opacity: 1;
	filter: alpha(opacity=100);
}

.timeline .t_node_desc span {
	background: none repeat scroll 0 0 #DD5555;
    border-radius: 3px!important;
    display: block !important;
    margin-left: -50%;
    margin-right: 50%;
    margin-top: -5px;
    padding: 0 8px;
    position: relative;
    white-space: nowrap;
}
.timeline .t_node_desc span:after {
	-moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: #DD5555 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    border-image: none;
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-style: solid;
    border-width: 5px;
    bottom: -10px;
    content: "";
    display: block;
    height: 0;
    left: 50%;
    margin-left: -5px;
    position: absolute;
    width: 0;
}


.timeline #t_line_left,
.timeline #t_line_right {
	display: inline-block;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	cursor:pointer;
	top:39px;
	width:14px;
	height:21px;
	font-size: 21px;
	color: #b7b6b6;
	position: relative;
}

.timeline #t_line_left:hover,
.timeline #t_line_right:hover {
	color: #dd5555;
}

/* line arrow left */
.timeline #t_line_left {
	left:-30px;
}
.timeline #t_line_left:after {
	content: "\f104";
	position: absolute;
	right: 0;
	top:0;
}


/* line arrow right */
.timeline #t_line_right {
	right:-30px;
}
.timeline #t_line_right:after {
	content: "\f105";
	position: absolute;
	left: 0;
	top:0;
}

.timeline {
	display:none;
}

.timeline_items_wrapper {
	position: relative;
	width: 100%;
	margin: 10px 0;
}

/* items container */
.timeline .timeline_items {
	padding:0;
}

/* single item (margines set from javascript) */
.timeline .item {
	width:410px;
	height:410px;
	background:#eaeaea; 
	color:#777777;
	font-size:14px;
	line-height:14px;
	position: relative;
}
.timeline .item.item_node_hover:before {
	content: "";
	position: absolute;
	height: 4px;
	background: #dd5555;
	width: 100%;
	z-index: 2;
	top:0;
	left:0;
}
.timeline .item.item_node_hover:after {
	content: "";
	position: absolute;
	height: 0;
	width: 0;
	z-index: 2;
	top:0;
	left:50%;
	margin: 4px 0 0 -6px;
	border: 6px solid transparent;
	border-top: 6px solid #dd5555;
	
}
/* ----- content - non-plugin elements ----- */
.timeline .item img {
	margin-top:0;
	width:100%;
}

.timeline .item h2 {
	font-family: Montserrat;
	padding: 20px 20px 10px;
	margin: 0;
	font-size:12px;
	line-height:12px;
	color: #dd5555;
	
}
.timeline .item span{
	display:block;
	margin:0px 20px 10px;
	height:75px;
}
.timeline .item .read_more {
	font-family: Montserrat;
	padding:10px;
	font-size:12px;
	line-height:12px;
	float:left;
	color:#ffffff;
	cursor:pointer;
	margin: 0 20px 20px;
	border-radius: 3px;
	background:#dd5555;
	transition:background-color 300ms;
	-webkit-transition: background-color 300ms;
	-moz-transition: background-color 300ms;
}
.timeline .item .read_more:hover {
	background:#f75f5f;
}
/* ----------------------------------------- */

/* item details (margines set from javascript) */
.timeline .item_open {
	width:410px;
	height:410px;
	background:#eaeaea; 
	position:relative;
	color:#777777;
	z-index:2; 
	
}

.timeline .item_open h2 {
	font-family: Montserrat;
	margin:0 0 10px;
	padding-top:0;
	font-size:12px;
	line-height:12px;
	color: #dd5555;
}

/* item details content wrapper (used for animation - shuld have same width as .item_open) */
.timeline .item_open_cwrapper {
	width:410px;
	height:100%;
}

.timeline .item_open_content {
	width:100%;
	height:100%;
	position:relative;
}

.timeline .item_open_content .ajaxloader {
	position:absolute;
	top:50%;
	left:50%;
	margin:-10px 0 0 -100px;
	
}

/* ----- content - non-plugin elements ----- */
.timeline .timeline_open_content {
	padding:20px;
}
.timeline .mCSB_container {
	margin-right: 16px;
}
.timeline .mCS-light-thin > .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar  {
	background: #dd5555;
}
.timeline .mCS-light-thin > .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
	color:#f75f5f;
}
.timeline .mCS-light-thin > .mCSB_scrollTools .mCSB_draggerRail {
	background: #aaaaaa;
}
.timeline .mCustomScrollBox > .mCSB_scrollTools {
	width: 8px;
}
.timeline .item_open .t_close {
	position:absolute;
	top:20px;
	right:16px;
	padding:0 2px 2px 2px;
	width: 12px;
	height: 12px;
	font-size:16px;
	line-height: 12px;
	color: #dd5555;
	cursor:pointer;
	z-index:2;
	text-align: center;
	transition:color 300ms;
	-webkit-transition: color 300ms;
	-moz-transition: color 300ms;
}
.timeline .item_open .t_close:hover {
	color:#f75f5f;
}
/* ----------------------------------------- */

/* left/right controles */
.timeline .t_controles {
	margin:0;
}

.timelineTouch.timeline .t_left,
.timelineTouch.timeline .t_right {
	display: none;
}

.timeline:hover .t_left,
.timeline:hover .t_right {
	opacity: 1;
	filter: alpha(opacity=100);	
}

.timeline .t_left,
.timeline .t_right {
	position: absolute;
	display:block;
	/*height:310px;*/
	height:55%;
	width:75px;
	margin:0;
	cursor:pointer;
	top:0;
	z-index: 10;
	opacity: 0;
	filter: alpha(opacity=0);	
	transition:background-color 300ms, opacity 300ms;
	-webkit-transition: background-color 300ms, opacity 300ms;
	-moz-transition: background-color 300ms, opacity 300ms;
}
.timeline .t_left,  
.timeline .t_left:hover:active {
	left:0;
    
	background: rgba(255,255,255, 0.5) url('../../images//blck-arrow-left.png') no-repeat center center;
}
.timeline .t_left:hover {
	background: rgba(255,255,255, 0.7) url('../../images//blck-arrow-left.png') no-repeat center center;
}

.timeline .t_right, 
.timeline .t_right:hover:active{
	right:0;
	background: rgba(255,255,255, 0.5) url('../../images//blck-arrow-right.png') no-repeat center center;
}

.timeline .t_right:hover {
	background: rgba(255,255,255, 0.7) url('../../images//blck-arrow-right.png') no-repeat center center;
}

/* -----------------------------------------------------------------------*/
/* ------------------------------ RESPONSIVE -----------------------------*/
/* -----------------------------------------------------------------------*/

.timeline .timeline_line {
		width:900px;
	}
	
	.timeline .t_line_view {
		width:900px;
	}
	
	.timeline .t_line_m {
		width: 400px;
	}
	.timeline .t_line_m.right {
		left: 400px;
		width: 400px;
	}


@media screen and (max-width:1020px) {
	.timeline .timeline_line {
		width:550px;
	}
	
	.timeline .t_line_view {
		width:300px;
	}
	
	.timeline .t_line_m {
		width: 300px;
	}
	.timeline .t_line_m.right {
		left: 300px;
		width: 300px;
	}
}


/* --- 610px --- */
@media screen and (max-width:768px) {
	
	.timeline .timeline_line {
		width:500px;
	}
	
	.timeline .t_line_view {
		width:1060px;
	}
	
	.timeline .t_line_m {
		width: 450px;
	}
	.timeline .t_line_m.right {
		left: 450px;
		width: 450px;
	}
	
	.timeline .t_line_node span {
		
	}
	.timeline .t_node_desc {
		font-size:8px;
	}
	.timeline .t_line_m.right .t_node_desc {
		right:auto;
		left:0;
	}
}


/* --- 300px --- */
@media screen and (max-width:609px) {
	.timeline .timeline_line {
		width:240px;
	}
	
	.timeline .t_line_view {
		width:480px;
	}
	
	.timeline .t_line_m {
		width: 238px;
	}
	.timeline .t_line_m.right {
		left: 240px;
		width: 238px;
	}
	
	.timeline .item_open {
		width:280px;
		height:390px;
	}
	.timeline .item_open img {
		max-width:280px;
	} 
	.timeline .item_open_cwrapper {
		width:280px;
	}
}