/* OHF Plugin
------------------------------------------- 

Table of contents
	- Pipeline
	- Media Queries

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

/* Pipeline
------------------------------------------- */

.pipeline-headings {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.pipeline-headings-table {
	margin-bottom: 24px;
	width: 70%;
}

.pipeline-headings-table tbody tr {
	background-color: #fff;
}

.pipeline-headings-table td {
	border: 2px solid #fff;
	color: #fff;
	font-size: 14px;
	letter-spacing: 2px;
	text-align: center;
}

.pipeline-headings-table td.pipeline-heading-phase0 {
	background: #F47D31;
}

.pipeline-headings-table td.pipeline-heading-phase1 {
	background: #F15F3C;
}

.pipeline-headings-table td.pipeline-heading-phase2 {
	background: #EC1654;
}

.pipeline-headings-table td.pipeline-heading-phase3 {
	background: #4E907A;
}

.pipeline-headings-table td.pipeline-heading-phase4 {
	background: #027DC3;
}

.pipeline-headings-table td.pipeline-heading-phase5 {
	background: #0C4769;
}

.pipeline-title {
	background-color: #fff;
    border-bottom: 1px solid #D8D8D8;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.pipeline-title-wrap {
	padding: 24px 16px;
	width: 30%;
}

.pipeline-title-wrap {
	font-size: 14px;
}

.pipeline-title-wrap h3 {
	color: #33373A;
	font-family: gotham, sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 4px;
}

.pipeline-title-wrap h3 span {
	font-weight: 400;
}

.indication-subtitle {
	font-style: italic;
	margin-bottom: 0;
}

.pipeline-counter-container {
	display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
	-webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
	-webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

@keyframes pipelineGrow {
    0% {
    	width: 0%;
    }
    100% {
    	width: 100%;
    }
}

@-webkit-keyframes pipelineGrow {
    0% {
    	width: 0%;
    }
    100% {
    	width: 100%;
    }
}

.pipeline-counter-amount-wrap {
	-webkit-animation: pipelineGrow ease-in-out 3s;
	animation: pipelineGrow ease-in-out 3s;
	width: 100%;
}

.pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f15f3c 20%,#ec1654 40%,#4e907a 60%,#027dc3 80%,#0c4769 100%);
	height: 8px;
    position: relative;
}

.pipeline-counter-amount:after {
    background: #0C4769;
    border-radius: 50%;
    content: ' ';
    height: 24px;
    position: absolute;
    right: -16px;
    top: calc( 50% - 12px );
    width: 24px;
}

.discovery .pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f47d31 100%);
}

.preclinical .pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f15f3c 100%);
}

.phase-1 .pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f15f3c 20%,#ec1654 100%);
}

.phase-2 .pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f15f3c 20%,#ec1654 40%,#4e907a 100%);
}

.phase-3 .pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f15f3c 20%,#ec1654 40%,#4e907a 60%,#027dc3 100%);
}

.to-patients .pipeline-counter-amount {
	background: linear-gradient(to right, #f47d31 0%,#f15f3c 20%,#ec1654 40%,#4e907a 60%,#027dc3 80%,#0c4769 100%);
}

.discovery .pipeline-counter-amount:after {
    background: #f47d31;
}

.preclinical .pipeline-counter-amount:after {
    background: #f15f3c;
}

.phase-1 .pipeline-counter-amount:after {
    background: #ec1554;
}

.phase-2 .pipeline-counter-amount:after {
    background: #4e8f7a;
}

.phase-3 .pipeline-counter-amount:after {
    background: #017dc2;
}

.to-patients .pipeline-counter-amount:after {
    background: #0b4869;
}

/* Media Queries
------------------------------------------- */

@media only screen and (min-width: 961px) {

	/* Pipeline
	--------------------------------------- */

	.pipeline-phase {
		display: none;
	}

}

@media only screen and (max-width: 960px) {

    /* Pipeline
	--------------------------------------- */

    .pipeline-headings-table,
	.pipeline-counter-amount {
		display: none;
	}

	.pipeline-item:last-of-type .pipeline-title {
		border-bottom: none;
	}

	.pipeline-title-wrap {
		width: 50%; 
	}

	.pipeline-counter-container {
		border-left: 1px solid #d8d8d8;
	}

	.pipeline-counter-amount-wrap {
		animation: none;
	}
    
    .pipeline-phase {
    	color: #273791;
    	font-weight: 900;
    	margin-bottom: 0;
    	text-align: center;
    }

}

@media only screen and (max-width: 500px) {

    /* Pipeline
	--------------------------------------- */

	.pipeline-item:nth-of-type(odd) .pipeline-title {
		background-color: #F6F6F6;
	}
	
    .pipeline-title {
    	-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
    }

    .pipeline-title-wrap {
    	text-align: center;
		width: 100%; 
	}

	.pipeline-counter-container {
		border-left: none;
		border-right: none;
		padding: 0 0 16px;
	}

}