

/* ====================================================================================================================
 * RESETS
 * ====================================================================================================================*/
 .flex-container a:hover,
 .flex-slider a:hover {
  outline: none;
}
.slides,
.slides > li,
.flex-control-nav,
.flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;  
}
.slides,
.slides > li{height: 100%;}
.flex-pauseplay span {
  text-transform: capitalize;
}
/* ====================================================================================================================
 * BASE STYLES
 * ====================================================================================================================*/
 .flexslider {
  margin: 0;
  padding: 0;
  position: relative
}
.flexslider .slides > li {
  display: none;
  -webkit-backface-visibility: hidden;
}
.flexslider .slides img {
  width: 100%;
  display: block;

}
.flexslider .slides:after {
  content: "\0020";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
html[xmlns] .flexslider .slides {
  display: block;
}
* html .flexslider .slides {
  height: 1%;
}
.no-js .flexslider .slides > li:first-child {
  display: block;
}
/* ====================================================================================================================
 * DEFAULT THEME
 * ====================================================================================================================*/
 .flexslider {
  margin: 0px;
  background: transparent;  
  position: relative;
  zoom: 1;  
  overflow: hidden;
}

.flexslider .slides {
  zoom: 1;
}
.flexslider .slides img {
  -moz-user-select: none;

}
.flex-viewport {
  max-height: 2000px;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.loading .flex-viewport {
  max-height: 400px;
}

.carousel li {
  margin: 0 5px;
  float: left;
  display: block;
}
.flex-direction-nav {
  *height: 0;
}
.carousel .flex-direction-nav a 
{
  display: none;
}
.flex-direction-nav a {

  top: 50%;
  z-index: 999;
  cursor: pointer;
  text-indent: -9999px;
  opacity: 1;
  text-decoration: none;
  width: 30px;
  height: 40px;
  margin: -20px 0 0;
  position: absolute;
  background: rgba(255, 255, 255, 0.2) url('../images/slider-arrows.png') no-repeat 0 0; 
  background-size: cover;
  cursor: pointer;  
  text-indent: -9999px;
  color: transparent;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.flex-direction-nav a:hover
{  
  background-color:#FF111A;
}

.flex-direction-nav .flex-prev {
  left: 0px;

}
.flex-direction-nav .flex-next {
  right: 0px;
  text-align: right;
  background-position: 100% 0;
  
}

.flex-control-nav {
  position: absolute;
  bottom: -5px;
  left: 8%;
  text-align: center;
  z-index: 99;
}
.flex-control-nav li {
  margin: 0px 3px;
  display: inline-block;
  zoom: 1;
  *display: inline;
}
.flex-control-paging li a {
 width: 15px;
 height: 20px;
 display: block;
 border-radius: 0px;
 background: #fff;
 cursor: pointer;  
 text-indent: -9999px;
 z-index: 99;
 position: relative;
 border-left: 0;
 box-shadow: 0 0 5px RGBA(51, 51, 51, 0.29);
 transition: all .8s ease-in-out;
 -webkit-transition: all .8s ease-in-out;
 transform: skew(-45deg);
 -webkit-transform: skew(-45deg);
}
.flex-control-paging li a:hover {
  background:#e8561f;

  transition: all .8s ease-in-out;
  -webkit-transition: all .8s ease-in-out;
}
.flex-control-paging li a.flex-active {

  background:#e8561f;
  cursor: default;
  
  transition: all .8s ease-in-out;
  -webkit-transition: all .8s ease-in-out;
}
.flex-control-thumbs {
  margin: 5px 0 0;
  position: static;
  overflow: hidden;
}
.flex-control-thumbs li {
  width: 25%;
  float: left;
  margin: 0;
}
.flex-control-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  opacity: .7;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
.flex-control-thumbs img:hover {
  opacity: 1;
}
.flex-control-thumbs .flex-active {
  opacity: 1;
  cursor: default;
}
.slides h2
{
 padding: 0px 0px;
 margin: 0;  
 color: #fff;  
 font-size: 16px;
 font-weight: 500;
 letter-spacing: 1px;
 /*  font-family: 'Montserrat'; */
 position: relative;
 z-index: 999;
}
.slides span {
  position: absolute;
  top: 45%;  
  width: 100%;
  transform: translate(0%,-50%);
  -webkit-transform: translate(0%,-50%);
  display: block;
  overflow: hidden;
  z-index: 9999;
  text-align: center;
  color: #FFF;
  font-size: 3rem;  
  font-family: opificio;
  line-height: 3em;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow:4px 5px 5px RGBA(0, 0, 0, 0.3);
}
.slides .st1
{
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: 45%;
  display: block;
  overflow: hidden;
  z-index: 9999;
  text-align: center;
}

/* ----------animation----------- */
.flex-active-slide  .st1 {
  animation: bounceInUp 2.5s ease-in-out;
}

@-webkit-keyframes bounceInUp {
  0%, 60%, 75%, 90%, to {
    -webkit-animation-timing-function: cubic-bezier(.215, .61, .355, 1);
    animation-timing-function: cubic-bezier(.215, .61, .355, 1)
  }
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 3000px, 0);
    transform: translate3d(0, 3000px, 0)
  }
  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0)
  }
  75% {
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0)
  }
  90% {
    -webkit-transform: translate3d(0, -5px, 0);
    transform: translate3d(0, -5px, 0)
  }
  to {
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}
@keyframes bounceInUp {
  0%, 60%, 75%, 90%, to {
    -webkit-animation-timing-function: cubic-bezier(.215, .61, .355, 1);
    animation-timing-function: cubic-bezier(.215, .61, .355, 1)
  }
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 3000px, 0);
    transform: translate3d(0, 3000px, 0)
  }
  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0)
  }
  75% {
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0)
  }
  90% {
    -webkit-transform: translate3d(0, -5px, 0);
    transform: translate3d(0, -5px, 0)
  }
  to {
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}
.flex-active-slide  span{
 animation: zoomIn 1000ms ease-in-out;
}
@-webkit-keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3)
  }
  50% {
    opacity: 1
  }
}
@keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(.3, .3, .3);
    transform: scale3d(.3, .3, .3)
  }
  50% {
    opacity: 1
  }
}
/* ====================================================================================================================
 * RESPONSIVE
 * ====================================================================================================================*/
 @media screen and (max-width: 960px) {
  .flex-direction-nav .flex-prev {
    opacity: 1;
    left: 0px;
  }
  .flex-direction-nav .flex-next {
    opacity: 1;
    right: 0px;
  }
}

