/* External homepage styles */

.home-margin-top {
  margin-top: 60px;
}

.home-margin-bottom {
  margin-bottom: 60px;
}

.small-margin-top {
  margin-top: 20px;
}

.small-margin-bottom {
  margin-bottom: 20px;
}


/* Header */

/* Hide the navbar branding on large screens in favor of the large logo. */
@media (min-width: 768px) {
  a.navbar-brand {
    display: none;
  } 
}

/* Top bar notice when already logged in */

.logged-in-notice {
  color: #fff;
  background-color: #333;
  padding: 40px;
  text-align: center;
  font-size: 14px;
}

.logged-in-notice a {
  color: #fff;
  text-decoration: underline;
}

@media screen and (min-width: 400px) {
  .logged-in-notice {
    font-size: 18px;
  }
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-right: 15px;
  padding-left: 15px;
}

/* Custom page header */
.header {
  border-bottom: 1px solid #e5e5e5;
}

/* Make the masthead heading the same height as the navigation */
.header h3 {
  padding-bottom: 19px;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
}

.header-demo-link {
  margin-top: 20px;
}

.header-demo-link a {
  color: #fff;
  text-decoration: underline;
}



h1, .h1 {
  font-weight:300;
  font-size:2em;
  line-height:1.25em;
}

h2, .h2 {
  font-weight: 300;
  font-size: 1.9em;
  line-height: 1.25em;
}

.hero h4 {
  font-size: 14px;
}

@media screen and (min-width: 400px) {
  h1 {
    font-size:2.7em;
  }
  
  .hero h4 {
    font-size: 18px;
  }
}



/* --------------------------------- */
  
.hero {
  background-color: #379f7a;
  color: #fff;
}

.hero .nav > li > a {
  color: #fff;
  text-transform: uppercase;
  border-radius: 5px;
}

/* on desktop, hug top */
@media (min-width: 768px) {
  .hero .nav > li > a {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

.hero .nav li a.sign-up {
  background: rgba(0, 0, 0, 0.2);
}

.hero .nav li a:hover,
.hero .nav li a:focus {
  background: rgba(0, 0, 0, 0.4);
}

.hero .logo {
  margin-top: 20px;
}

.hero h2 {
  font-size: 20px;
}

.hero h4 {
  line-height: 1.5em;
}

.topo-bg {
  background-color: #379f7a;
}

/* ---- call to action button ---- */

.call-to-action {
  padding:16px 40px;
  background-color: #2c7f62;
  background-color: rgba(0, 0, 0, 0.6);
  
  border:0;
  font-size:1em;
  border-radius:5px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

@media (min-width: 400px) {
  .call-to-action {
    font-size:1.4em;
  }     
}

@media (min-width: 768px) {   
  .call-to-action {
    font-size:1.6em;
    background-color: rgba(0, 0, 0, 0.2);
  }
}

.call-to-action:hover,
.call-to-action:active,
.call-to-action:focus {
  text-decoration: none;
  color: #fff;
  outline: none;
  text-decoration: none;
}

.call-to-action:hover,
.call-to-action:focus {
  background-color: #274a33;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Hero demo screenshot */

.hero-screenshot {
  margin: 0 auto;
  text-align:center;
  overflow: hidden;
  margin-top: 60px;
  position: relative;
}

.hero-screenshot > a > div {
  display: inline-block;
  text-align: center;
  position: relative;
}

.hero-screenshot a div.text-block {
  position: absolute;
  top: 0;
  padding-top: 24%;
  width: 100%;
}

.hero-screenshot a .text-block span {
  font-size: 1em;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  cursor: pointer;
}

.hero-screenshot .img-wrapper-outer {
  max-width: 800px;
}

.hero-screenshot .img-wrapper-inner {
  height: 0;
  padding-bottom: 44.125%
}

.hero-screenshot img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 400px) {
  .hero-screenshot a .text-block span {
    font-size:1.4em;
  }
}

@media (min-width: 768px) {

  .hero-screenshot {
    margin-top: 30px;
  }

  .hero-screenshot a .hover-transform {
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }

  .hero-screenshot a div.text-block {
    top: 185px;
    padding-top: 0;
    transform: translateY(20px);
  }

  .hero-screenshot a:hover .hover-transform {
    transform: translateY(0);
  }

  .hero-screenshot a .text-block span {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.6em;
  }

  .hero-screenshot a:hover .text-block span {
    opacity: 1;
  }

}


/* Top features */

.top-features {
  text-align: center;
}

.top-features > div > h4,
.top-features > div > p {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.top-features h4 {
  color: #379f7a;
  font-weight: 700;
}

.top-features .img-circle {
  background:#d5d5d5;
  width:80px;
  height:80px;
  line-height:80px;
  margin: 0 auto;
  margin-bottom:20px;
  padding-top: 14px;
}

.top-features .img-circle i.fa {
  font-size: 3.5em;
}

.top-features .img-circle i.fa-line-chart {
  font-size: 2.5em;
  position: relative;
  top: -4px;
}


/* Client & Platform logos */

.logos {
  display: flex;
}

.logos svg {
  display: flex;
  flex-wrap: nowrap;
  height: 160px;
  margin-right: 100px;
  color: #666;
  flex: 0 0 auto;
}

#client-logos {
  animation: clientLogoScroll 100s linear infinite;
}

#platform-logos {
  animation: platformLogoScroll 100s linear infinite;
}


/* Analytics featurette */

.analytics-feature {
  margin: 0 auto;
  margin-bottom: 40px;
  max-width: 425px;
}

.analytics-feature:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .analytics-feature {
    margin-bottom: 20px;
  }
}   

#analytics-images {
  position:relative;max-width:425px;
}

.analytics-img {
  position:absolute;top:0;left:0;
  opacity: 0;
  
  -webkit-transition: all .9s  cubic-bezier(0.230, 1.000, 0.320, 1.000);
     -moz-transition: all .9s  cubic-bezier(0.230, 1.000, 0.320, 1.000);
       -o-transition: all .9s  cubic-bezier(0.230, 1.000, 0.320, 1.000);
          transition: all .9s  cubic-bezier(0.230, 1.000, 0.320, 1.000);
}

.analytics-img.active {
  opacity: 1;
}



/* Plans */

.plan-callout {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  color: #666;
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .plan-callout {
    margin-top: 60px;
    margin-bottom: 30px;
  }
}

.plans {
  background: #f7f7f7;
  text-align: center;
  padding-bottom: 30px;
}

.panel-plan {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 980px) {
  .plans .container {
    width: 980px;
  }
}

.plans .call-to-action {
  margin-top: 30px;
  margin-bottom: 30px;
  background-color: rgba(0,0,0,0.7);
}

.plans .call-to-action:hover {
  background-color: rgba(0,0,0,0.9);
}

.plans .pricing-offer {
  margin-bottom: 40px;
  font-size: 18px;
  background: rgba(255, 255, 0, 0.2);
  display: inline-block;
  padding: 5px 20px;
}

.plans .enterprise-notice {
  margin-top: 20px;
  font-size: 18px;
}


/* Marketing (long feature list) */


div.row.marketing div.col-md-3 {
  margin-bottom: 20px;
}

div.row.marketing div.home-margin-bottom {
  margin-bottom: 60px;
}


/* Customer quotes */

.home-quote {
  font-size: 1.35em;
  text-align: center;
  max-width: 600px;
  margin: auto;
  line-height: 1.75em;
  font-style: italic;
  color: white;
  font-weight: 300;
  position: relative;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .home-quote:before, .home-quote:after {
    font-size: 250px;
    color: #7e7c30;
    position: absolute;
    top: 120%;
    font-style: normal;
  }

  .home-quote:before {
    content: '\201C'; /* left double quote */
    left: -98px;
  }

  .home-quote:after {
    content: '\201D'; /* right double quote */
    right: -98px;
  }
}


/* Page footer */

.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  color: #999;
  text-align: center;
  background-color: #333;
}

.footer .logo {
  margin-bottom: 10px;
}

.footer a,
.footer a:active,
.footer a:hover,
.footer a:focus {
  color: #999;
  text-decoration: underline;
}

.footer small {
  display: block;
  margin-bottom: 5px;
}

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

  .footer .logo {
    text-align: right;
    padding-top: 2px;
  }

  .footer .text {
    text-align: left;
  }

  .footer small {
    margin: 0;
  }

}


/* ANIMATION */

@-webkit-keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50%);
            transform: translateY(50%);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50%);
            transform: translateY(50%);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fade-in,
.fade-in-up {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.fade-in {
  -webkit-animation-name: fadeIn;
          animation-name: fadeIn;
}

.fade-in-up {
  -webkit-animation-name: fadeInUp;
          animation-name: fadeInUp;
}

.delay-1 {
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;  
}