@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,800');

body, html {
  font-family: 'Open Sans', sans-serif;
}

/* NAV MUOKKAUS JOS TAUSTALLA TUMMAPOHJAINEN KUVA */
/*
@media only screen and (min-width : 990px){
  .navbar-default{
    margin-top: -20px;
    padding-top: 70px;
    background-color: rgba(255, 255, 255, 0.6)
  }
  #brand-anf{ margin-top: -20px!important; padding-bottom: 0px!important; }
}
*/

/* ******************************************************************* */
/* ******************************************************************* */
/* INTRO */
/* ******************************************************************* */
/* ******************************************************************* */

.avp_intro {
	background-image: url(../img/bg/avp/bg_avp_intro.jpg);
	background-size: cover;
	background-position: bottom left;
	background-repeat: none;
	height: auto;
	position: relative;
	margin-top: -100px;
	text-align: center;
	padding: 50% 0 0;	
}
.avp_intro_txt {
  position: absolute;
  top: 25%;
  left: 7%;
  width: 35%;
  text-align: center;
  color: #000;
}
.avp_intro_txt p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5; 
}

/* LOGO */
.avp_logo {
    display: block;
    margin-bottom: 50px;
    text-align: center;
}
.avp_logo img {
    margin: 40px auto 0px auto;
}

/* ******************************************************************* */
/* ******************************************************************* */
/* SOLUT */
/* ******************************************************************* */
/* ******************************************************************* */


.avp_cells {
  clear: both;
  background-image: url(../img/bg/avp/bg_avp_cells.jpg);
  background-size: cover;
  background-position: top left;
  background-repeat: none;
  height: auto;
  position: relative;
  margin-top: 10px;
  text-align: center;
  padding: 50% 0 0;	
}
.avp_cells_txt {
  position: absolute;
  top: 25%;
  right: 7%;
  width: 35%;
  text-align: center;
  color: #000;
}
.avp_cells_txt p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5; 
}

/* ******************************************************************* */
/* ******************************************************************* */
/* SOLUT: AIKAJANA */
/* ******************************************************************* */
/* ******************************************************************* */

.avp_celllife_intro {
    margin: 50px auto;
    width: 96%;
    text-align: center;
}
.avp_celllife_intro h1 {
	font-weight: 800; 
	font-size: 28px;
	text-transform: uppercase; 
	line-height: 1.2; 
}
.avp_celllife_intro p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5; 
}

#timeline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background-color: #FFF;
    background-image: url(../img/bg/avp/bg_avp_cells2.jpg);
    background-size: cover;
    background-position: top left;
    background-repeat: none;
    margin-top: 10px;
    color: #000;
}
#timeline:hover .tl-item {
  width: 25;
}

.tl-item {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  position: relative;
  width: 25%;
  height: 50vh;
  min-height: 400px;
  color: #000;
  overflow: hidden;
    border-right: 1px solid #ccc!important;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
}
.tl-item:before, .tl-item:after {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.tl-item:after {
  background: rgba(255, 255, 255, 0.80);
  opacity: 1;
  -webkit-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}
.tl-item:before {
  background: -webkit-linear-gradient(top, transparent 0%, white 75%);
  background: linear-gradient(to bottom, transparent 0%, white 75%);
  z-index: 1;
  opacity: 0;
  -webkit-transform: translate3d(0, 0, 0) translateY(50%);
          transform: translate3d(0, 0, 0) translateY(50%);
  -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
  transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition: opacity 0.5s ease, transform 0.5s ease, -webkit-transform 0.5s ease;
}
.tl-item:hover {
  width: 40% !important;
}
.tl-item:hover:after {
  opacity: 0;
}
.tl-item:hover:before {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0) translateY(0);
          transform: translate3d(0, 0, 0) translateY(0);
  -webkit-transition: opacity 1s ease, -webkit-transform 1s ease 0.25s;
  transition: opacity 1s ease, -webkit-transform 1s ease 0.25s;
  transition: opacity 1s ease, transform 1s ease 0.25s;
  transition: opacity 1s ease, transform 1s ease 0.25s, -webkit-transform 1s ease 0.25s;
}
.tl-item:hover .tl-content {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: all 0.75s ease 0.5s;
  transition: all 0.75s ease 0.5s;
}
.tl-item:hover .tl-bg {
  -webkit-filter: grayscale(0);
          filter: grayscale(0);
}

.tl-content {
  -webkit-transform: translate3d(0, 0, 0) translateY(25px);
          transform: translate3d(0, 0, 0) translateY(25px);
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 1.618em;
  top: 55%;
  opacity: 0;
  font-weight: 300;
  font-size: 1.2vw;
}
.tl-content h1 {
  text-transform: uppercase;
  color: #990000;
  font-size: 1.3vw;
  font-weight: normal;
}

.tl-year {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  border-bottom: 1px solid #990000;
}
.tl-year p {
    font-size: 1.6vw;
    line-height: 0;
    font-weight: 300;
    color: #000;
}

.tl-bg {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center center;
  -webkit-transition: -webkit-filter 0.5s ease;
  transition: -webkit-filter 0.5s ease;
  transition: filter 0.5s ease;
  transition: filter 0.5s ease, -webkit-filter 0.5s ease;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
}

/* ******************************************************************* */
/* ******************************************************************* */
/* AFTER 6 months */
/* ******************************************************************* */
/* ******************************************************************* */

.avp_celllife2 {
  margin: 50px auto;
  width: 96%;
  max-width: 600px;
  text-align: center;
}
.avp_celllife2 p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5; 
}


/* ******************************************************************* */
/* ******************************************************************* */
/* PUNASOLUTUTKIMUS */
/* ******************************************************************* */
/* ******************************************************************* */

.avp_test {
  clear: both;
	background-image: url(../img/bg/avp/bg_avp_test.jpg);
	background-size: cover;
	background-position: top left;
	background-repeat: none;
	height: auto;
	position: relative;
	margin-top: 10px;
	text-align: center;
	padding: 50% 0 0;	
}
.avp_test_txt {
  position: absolute;
  top: 30%;
  left: 10%;
  width: 40%;
  text-align: center;
  color: #000;
}
.avp_test_txt p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5; 
}


/* ******************************************************************* */
/* ******************************************************************* */
/* VIDEO */
/* ******************************************************************* */
/* ******************************************************************* */

.avp_video {
    background: #000;
	margin: 10px auto 0px auto;
	padding: 0px 0px 50px 0px;
	min-height: 450px;
	width: 100%;
	text-align: center;
	overflow: hidden;
    z-index: -101;
	font-weight: 300;
}

.avp_video_container  {
	display: block;
    position: relative;
	width: 100%;
	min-height: 400px;
	padding: 50% 0 0;	
	margin: 0 auto;
}


#introVideo {
    width:100%;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.avp_video_txt {
	position: absolute;
	background-color: rgb(0,0,0, 0.6);
	width: 100%;
	top: 0;
    padding-top: 25%;
    padding-bottom: 50%;
    overflow-y: hidden;
	left: 0;
}
.avp_video_txt p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5; 
  width: 40%;
  margin: 0 auto 20px auto;
  text-align: center;
  color: #FFF;
}

/* ******************************************************************* */
/* ******************************************************************* */
/* END */
/* ******************************************************************* */
/* ******************************************************************* */

.avp_end {
    width: 90%;
    margin: 50px auto;
    text-align: center;
}
.avp_end p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5; 
}
.avp_end .row {
    margin-top: 40px;
}
.avp_end h3 {
  font-size: 1.6vw;
/*  font-size: 18px;*/
    font-weight: 300;
    line-height: 1.4;
}

.btn-promo {
	border-radius: 0;
	background-color: rgba(0, 0, 0, 0.7);
	padding: 10px 20px;
	width: 150px;
	color: #FFF;
	text-transform: uppercase;
	margin: 10px 10px 10px 10px;
}
.btn-promo:hover { 
	background-color: rgba(0, 0, 0, 0.7);
  color: #fcaf17; 
}

/*
####################################################
M E D I A  Q U E R I E S
####################################################
*/
 

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {  
    
}
/* Large devices (desktops, smaller than 992px) */

@media (max-width: 992px) { 
  .avp_intro { margin-top: 0px; }
  .avp_intro_txt {
    top: 5%;
    width: 40%;
  }
  .avp_intro_txt p { font-size: 16px; }
  .avp_cells_txt {
    top: 15%;    
    width: 40%;
  }
  .avp_cells_txt p { font-size: 16px; }
  .avp_celllife_intro h1 { font-size: 18px; }
  .avp_celllife_intro p, .avp_celllife2 p { font-size: 16px; }
  #timeline { 
    display: block!important;
  }
  .mobclear { clear: both; }
  #timeline:hover .tl-item { width: 100%; height: auto!important; }
  .tl-item { 
    -webkit-transform: none;
    transform: none;
    -webkit-transition: none;
    transition:none;
    display: block;
    width: 100%;
    height:auto!important;
    margin: 0px 0 2px 0;
    min-height: 0;
    padding: 20px 40px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: none!important;
    }
    #timeline:hover .tl-item {
      width: 100;
    }
    .tl-item:before, .tl-item:after {
      -webkit-transform: none;
              transform: none;
      position: relative;
      width: 100%;
      height: auto!important;
    }
    .tl-item:after {
      background: rgba(255, 255, 255, 0.80);
      opacity: 1;
      -webkit-transition: none;
      transition: none;
    }
    .tl-item:before {
      background: -webkit-linear-gradient(top, transparent 0%, white 75%);
      background: linear-gradient(to bottom, transparent 0%, white 75%);
      z-index: 1;
      opacity: 0;
      -webkit-transform: none;
              transform: none;
      -webkit-transition: none;
      transition: none;
      transition: none;
      transition: none;
    }
    .tl-item:hover {
      width: 100%!important;
      height:auto!important  ;
    }
    .tl-item:hover:after {
      opacity: 0;
    }
    .tl-item:hover:before {
      opacity: 1;
      -webkit-transform: none;
              transform: none;
      -webkit-transition: none;
      transition: none;
      transition: none;
      transition: none;
    }
    .tl-item:hover .tl-content {
      opacity: 1;
      -webkit-transform: none;
              transform: none;
      -webkit-transition: none;
      transition: none;
    }
    .tl-item:hover .tl-bg {
      -webkit-filter:none;
              filter:none;
    }
    
    .tl-content {
      -webkit-transform: none;
              transform: none;
      position: relative;
      z-index: 1;
      text-align: center;
      margin: 0px auto;
      opacity: 1;
      font-size: 14px;
    }
    .tl-content h1 {
      text-transform: uppercase;
      color: #990000;
      font-size: 18px;
      font-weight: normal;
    }
    
    .tl-year {
      position: relative;
      margin: 20px auto;
      -webkit-transform: none;
              transform: none;
      z-index: 1;
      border: none;
    }
    .tl-year p { font-size: 16px; }
    
    .tl-bg {
      -webkit-transform: none;
              transform: none;
      position: relative;
      width: 100%;
      height:auto!important;
      background-size: cover;
      background-position: center center;
      -webkit-transition: none;
      transition: none;
      transition: none;
      transition: none;
      -webkit-filter: none;
              filter: none;
     border: 1px solid red;
    }
    .avp_test_txt { top: 25%;}
    .avp_test_txt p { font-size: 16px; }
    .avp_video_txt p { font-size: 16px; width: 50%; }
    .avp_end p { font-size: 16px; margin: 0 auto; max-width: 600px;  }
    .btn-promo { margin-top: 10px; }
    .avp_end h3 { font-size: 16px; }    
    
    }

/* Medium devices (tablets, smaller than 768px) */
@media (max-width: 768px) {  

}

/* Small devices (landscape phones, smaller than 576px) */
@media (max-width: 576px) {  
  .avp_intro { 
    background-position: bottom right;
    padding: 90% 0 0;	
  }
  .avp_intro_txt {
		top: 0;
		width: 90%;
		left: 5%;
		margin: 0;
		padding: 10px 20px;
		background: rgba(255, 255, 255, 0.7);
  }
  .avp_logo { margin-bottom: 30px; }
  .avp_logo img { width: 80%; }
  .avp_cells {
    padding: 90% 0 0;
  }
  .avp_cells_txt {
		top: 10%;
		width: 90%;
		left: 5%;
		margin: 0;
		padding: 20px 20px;
		background: rgba(255, 255, 255, 0.7);
  }
  .avp_test {
    background-position: top right;
    padding: 90% 0 0;	
  }

  .avp_test_txt {
		top: 10%;
		width: 90%;
		left: 5%;
		margin: 0;
		padding: 20px 20px;
		background: rgba(255, 255, 255, 0.7);
  }
  .avp_end p { font-size: 16px; margin: 0 auto;  padding-left: 40px; padding-right: 40px;  }
  .avp_celllife2 p {  padding-left: 40px; padding-right: 40px; }
  .avp_video, .avp_video_container  { min-height: 250px; }
  .avp_video_txt p { font-size: 16px; width: 80%; }

}

@media (max-width: 480px) { 
  .avp_intro { 
    padding: 110% 0 0;	
  }
  .avp_logo img { width: 80%; margin-top: 20px; }
  .avp_cells { padding: 120% 0 0; }
  .avp_cells_txt {top: 5%; }
 
}