/* Styles for the animated quote */
.quoteImage {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /*font-weight: bold;*/
  height: 40em;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
  /*text-shadow: 0 0 1em #fff;*/
}

.quote {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
/*  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;*/
  /*font-weight: bold;*/
  /*height: 12em;*/
/*  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;*/
  position: relative;
  /*text-shadow: 0 0 1em #fff;*/
}

.quote:after {

}

/* This is a lovely trick for getting content to go full width in a container */
.full-width {
    left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
    right: 50%;
  width: 100vw;
}
.quoteImage > p{
  display: inline-block;
  font-size: 2em;
  opacity: 0;
  position: absolute;
  text-align: center; 
  background-color: rgba(57, 39, 121, .8); 
  text-shadow: 3px 3px 9px rgba(0, 0, 0, 0.8);
  color: white;
  z-index: 1;
  padding: .5em .5em;
  margin:0;
  bottom: 1em;
}
.quote p {

  margin:0;
  width: 100%;
  font-size: 2em;
  padding: .5em .5em;
  opacity: 0;
  position: relative;
  text-align: center; background-color: rgba(57, 39, 121, 1); color: white;
  z-index: 1;
}

.quote .source {
  font-style: italic;
  opacity: .8;
}

.quoteImage .background {
  background: url(../img/image_1.jpg) no-repeat;
  background-size: cover;
  background-position: center;
    bottom: -20%;
    left: 0;
  opacity: 0;
  position: absolute;
    right: 0;
    top: 0;
  /*-webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;*/
  z-index: 0;
}
.quoteImage .background2 {
  background: url(../img/image_2.jpg) no-repeat;
  background-size: cover;
  background-position: center;
    bottom: 0;
    left: 0;
  opacity: 0;
  position: absolute;
    right: 0;
    top: 0;
/*  -webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;*/
  z-index: 0;
}
.quoteImage .background3a {
  background: url(../img/image_3a.jpg) no-repeat;
  left: -100px;
  background-size: cover;
  background-position: center;
    width: 50%;
    height: 100%;
  opacity: 0;
  position: relative;
    
/*  -webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;*/
  z-index: 0;
  
}
.quoteImage .background3b {
  background: url(../img/image_3b.jpg) no-repeat;
  right: -100px;
  background-size: cover;
  background-position: center;
    width: 50%;
    height: 100%;
  opacity: 0;
  position: relative;
    
/*  -webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;*/
  z-index: 0;
  
}
.quoteImage .background4 {
  background: url(../img/image_4.jpg) no-repeat;
  background-size: cover;
  background-position: center;
    bottom: 0;
    left: 0;
  opacity: 0;
  position: absolute;
    right: -20%;
    top: 0;
  -webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;
  z-index: 0;
}
.quoteImage .background5 {
  background: url(../img/image_5.jpg) no-repeat;
  background-size: cover;
  background-position: center;
    left: -100px;
    width: 50%;
    height: 100%;
  opacity: 0;
  position: absolute;
  -webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;
  z-index: 0;
}
.quoteImage .background6 {
  background: url(../img/image_6.jpg) no-repeat;
  background-size: cover;
  background-position: center;
    right: -100px;
    width: 50%;
    height: 100%;
  opacity: 0;
  position: absolute;
  -webkit-transform: translateX(-10%);
          transform: translateX(-10%);
  -webkit-transition: none;
  transition: none;
  z-index: 0;
}
.quoteImage.is-visible .background, 
.quoteImage.is-visible .background2, 
.quoteImage.is-visible .background3a, 
.quoteImage.is-visible .background3b,
.quoteImage.is-visible .background4,  
.quoteImage.is-visible .background5, 
.quoteImage.is-visible .background6, 
.quote.is-visible p, .quoteImage.is-visible p {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}


.quoteImage.is-visible .background2, 
.quoteImage.is-visible .background4
{
  -webkit-transition: opacity 3s .4s ease-out,
              -webkit-transform 2s .4s cubic-bezier(0,1,.3,1);
  transition: opacity 3s .4s ease-out,
              -webkit-transform 2s .4s cubic-bezier(0,1,.3,1);
  transition: transform 2s .4s cubic-bezier(0,1,.3,1),
              opacity 3s .4s ease-out;
  transition: transform 2s .4s cubic-bezier(0,1,.3,1),
              opacity 3s .4s ease-out,
              -webkit-transform 2s .4s cubic-bezier(0,1,.3,1);
}


.quote.is-visible p {
  -webkit-transition: opacity 4s ease-out,
              -webkit-transform 2s cubic-bezier(0,1,.2,1.1);
  transition: opacity 4s ease-out,
              -webkit-transform 2s cubic-bezier(0,1,.2,1.1);
  transition: transform 2s cubic-bezier(0,1,.2,1.1),
              opacity 4s ease-out;
  transition: transform 2s cubic-bezier(0,1,.2,1.1),
              opacity 4s ease-out,
              -webkit-transform 2s cubic-bezier(0,1,.2,1.1);
}

/* New Style NSK */
.scale-bg-top {
  -webkit-animation: scale-bg-top 5s ease-out both;
          animation: scale-bg-top 5s ease-out both;
}
.flip-horizontal-bottom {
  -webkit-animation: flip-horizontal-bottom 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
          animation: flip-horizontal-bottom 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}
.quoteImage.is-visible .background, .slide-top {
  -webkit-animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.slide-right {
  -webkit-animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.slide-left {
  -webkit-animation: slide-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.quoteImage.is-visible .background3a, .quoteImage.is-visible .background5, .slide-right {
  -webkit-animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.quoteImage.is-visible .background3b, .quoteImage.is-visible .background6, .slide-left {
  -webkit-animation: slide-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.slide-bottom {
  -webkit-animation: slide-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
          animation: slide-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.tracking-in-contract {
  -webkit-animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 1s both;
          animation: tracking-in-contract 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 1s both;
}
.quoteImage.is-visible p, .text-focus-in {
  -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
          animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1s both;
}
/*.yettodecide{
  -webkit-animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
          animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}*/
/**
 * ----------------------------------------
 * animation scale-bg-top
 * ----------------------------------------
 */
@-webkit-keyframes scale-bg-top {
  0% {
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
    -webkit-transform-origin: 50% 16%;
            transform-origin: 50% 16%;
  }
  100% {
    -webkit-transform: scale(1.15) translateY(-15px);
            transform: scale(1.15) translateY(-15px);
    -webkit-transform-origin: top;
            transform-origin: top;
  }
}
@keyframes scale-bg-top {
  0% {
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
    -webkit-transform-origin: 50% 16%;
            transform-origin: 50% 16%;
  }
  100% {
    -webkit-transform: scale(1.15) translateY(-15px);
            transform: scale(1.15) translateY(-15px);
    -webkit-transform-origin: top;
            transform-origin: top;
  }
}

/**
 * ----------------------------------------
 * animation flip-horizontal-bottom
 * ----------------------------------------
 */
@-webkit-keyframes flip-horizontal-bottom {
  0% {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  100% {
    -webkit-transform: rotateX(-180deg);
            transform: rotateX(-180deg);
  }
}
@keyframes flip-horizontal-bottom {
  0% {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
  }
  100% {
    -webkit-transform: rotateX(-180deg);
            transform: rotateX(-180deg);
  }
}

/**
 * ----------------------------------------
 * animation slide-top
 * ----------------------------------------
 */
@-webkit-keyframes slide-top {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-100px);
            transform: translateY(-100px);
  }
}
@keyframes slide-top {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-100px);
            transform: translateY(-100px);
  }
}

/**
 * ----------------------------------------
 * animation slide-right
 * ----------------------------------------
 */
@-webkit-keyframes slide-right {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
            opacity: 0;
  }
  100% {
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
            opacity: 1;
  }
}
@keyframes slide-right {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
            opacity: 0;
  }
  100% {
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
            opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation slide-bottom
 * ----------------------------------------
 */
@-webkit-keyframes slide-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(100px);
            transform: translateY(100px);
  }
}
@keyframes slide-bottom {
  0% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(100px);
            transform: translateY(100px);
  }
}

/**
 * ----------------------------------------
 * animation slide-left
 * ----------------------------------------
 */
@-webkit-keyframes slide-left {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
            opacity: 0;
  }
  100% {
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
            opacity: 1;
  }
}
@keyframes slide-left {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
            opacity: 0;
  }
  100% {
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
            opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation tracking-in-contract
 * ----------------------------------------
 */
@-webkit-keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}
@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation text-focus-in
 * ----------------------------------------
 */
@-webkit-keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}
@keyframes text-focus-in {
  0% {
    -webkit-filter: blur(12px);
            filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}
