/* General CSS (not specific to a section of the page)*/

#landingPage p {
  color: #545454;
  font-size: 16px;
  line-height: 1.63;
  margin: 0px;
}

#landingPage .container {
  margin-right: auto;
  margin-left: auto;
  padding: 0px 30px;
  text-align: center;
}

.ctaButton {
  border: 0px;
  font-size: 18px;
  min-height: 50px;
  min-width: 280px;
}

.mainBodyCTA {
  display: flex;
  margin: 20px 0px;
  border-radius: 8px;
}

.spacer {
  margin: 0px;
  border: none;
}

.image {
  /* for images using background-image's instead of <img>
     this technique prevents images from being loaded if they are hidden
  */
  background-size: contain;
  background-repeat: no-repeat;
}

.xsOnly {
  display: none;
}

.no-padding {
  padding: 0;
}

@media (max-width: 768px) {
  h1, h2 {
    text-align: center;
  }
  #landingPage p {
    font-size: 14px;
    line-height: 1.57;
    margin: 5px 0px;
  }

  .ctaButton {
    min-width: 250px;
    white-space: normal;
  }

  .xsOnly {
    display: initial;
  }

  .nonXsOnly {
    display: none;
  }
}

@media (min-width: 1920px) {
  #landingPage .row {
    margin-right: auto;
    margin-left: auto;
    max-width: 1920px;
    padding: 0px;
  }
}


/* Section specific CSS, in order of their appearance */

/* Intro Section */
.office-image-background {
  background-image: url("/static/images/landing/header.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 769px) {
  .office-image-background > * {
    height: 100%;
  }
}

.cambly-image-background {
  background-image: url("/static/images/landing/expheader.jpg");
  background-size: cover;
  background-position: center;
}

@media(min-width: 769px) {
  #intro-section-exp {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    padding-left: 10%;
    height: 90vh;
    min-height: 500px;
  }

  #heading {
    max-width: 40%;
  }
}


@media(max-width: 768px) {
  .cambly-image-background {
    background-image: url("/static/images/landing/expHeaderMobile.jpg");
  }
  #intro-section-exp {
    height: 90vh;
    overflow: hidden;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
  }
}

@media(max-width: 479px) {
  #intro-section-exp {
    padding-top: 25px;
  }
  #intro-section-exp h1 {
    font-size: 30px;
    margin-top: 0px;
    line-height: 1.2;
  }
}

@media(max-width: 350px) {
  #intro-section-exp {
    padding-top: 15px;
  }
  #intro-section-exp h1 {
    font-size: 25px;
    margin-top: 0px;
  }
}

@media (min-width: 769px) {
  .cambly-image-background > * {
    height: 100%;
  }
}

@media(min-width: 769px) {
  #intro-section {
    height: 70vh;
    max-height: 600px;
    min-height: 500px;
  }

  #heading {
    max-width: 40%;
  }
}

@media(max-width: 768px) {
  #intro-section {
    height: 75vh;
    overflow: hidden;
  }

  #heading {
    max-width: 75%;
  }
  .demo {
    height: 50vh;
  }
  .demo video {
    display: none;
  }
}

.flex-row {
  display: flex;
  flex-flow: row nowrap;
}

/* pseudo standard bootstrap container */
@media (min-width: 992px) {
  #heading-overlay {
    width: 970px;
    margin-right: auto;
    margin-left: auto;
  }
}
@media (min-width: 1200px) {
  #heading-overlay {
    width: 1140px;
    margin-right: auto;
    margin-left: auto;
  }
}


.space-around {
  justify-content: space-around;
}

.vertical-center {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.demo {
  margin-top: 40px;
}
@media (min-width: 769px) {
  .demo {
    height: 75vh;
    max-height: 650px;
    min-height: 550px;
  }
}

#video-demo {
  position: relative;
}
#iphone-background {
  height: 100%;
}
.demo video {
  z-index: 1;
  position: absolute;
  left: 6.5%;
  top: 11.5%;
  width: 87%;
}

#appLinks {
  width: 280px;
  display: flex;
  justify-content: space-around;
}

#appLinks > * {
  flex: 1 1 110px;
  margin: 0px 5px;
}
#appLinks img {
  width: 100%;
}
#appLinks img:hover {
  filter: brightness(150%);
}


@media (max-width: 992px) and (min-width: 769px) {
  #intro-section .flex-row {
    min-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: space-between;
  }
  #heading {
    max-width: 50%;
  }
}


@media (max-width: 768px) {
  .xs-flex-column {
    flex-flow: column nowrap;
  }
  .xs-center {
    align-items: center;
  }
}


/* Native Speaking Tutors + Tutor Carousel */
#nativeSpeakerBlurb {
  width: 100%;
}
@media(min-width: 769px) {
  #nativeSpeakerBlurb {

  }
}

#tutorCards {
 margin: auto;
 display: flex;
 flex-flow: row;
 overflow: auto;
 justify-content: space-between;
}

.tutorCard:first-child {
  margin-left: 0px;
}

.tutorCard:last-child {
  margin-right: 0px;
}

.tutorCard {
  border-radius: 10px;
  flex: none;
  margin: 0px 10px 0px 10px;
  background-color: #f7f7f7;
  overflow: hidden;
  color: #484848;
  width: 165px;
}

.tutorCard > div {
  font-size: 16px;
  padding: 9px 0px 25px 20px;
  padding-left: 25px;
  padding-right: 25px;
}

.tutorCard h4, .tutorCard h5 {
  margin: 0px;
}

.tutorCard span {
  color: grey;
  font-size: 14px;
  font-weight: bold;
}

@media (max-width: 768px) {
  #nativeSpeakers h1 {
    margin: 0px 25px;
  }

  #nativeSpeakers .xsOnly p {
    padding-top: 15px;
  }
}

/* Product Category Section (private/group) */
.productCategory {
  padding: 0px;
}

.productCategory:first-child {
  float: left;
  padding-right: 36px;
  text-align: right;
}

.productCategory:last-child {
  float: right;
  padding-left: 36px;
  text-align: left;
}

.productCategory img {
  width: 100%;
}

.productCategory h1 {
  margin: 25px 0px 15px 0px;
  width: 100%;
  max-width: 450px;
}

.productCategory p {
  width: 68%;
  min-width: 280px;
}

#privateBlurb, #groupBlurb {
  width: 100%;
  height: 100%;
}

#privateBlurb h1, #privateBlurb p {
  float: right;
}

#groupBlurb h1, #groupBlurb p {
  float: left;
}

@media (max-width: 768px) {
  .productCategory {
    padding: 0px !important;
  }

  .productCategory p {
    width: 100%;
  }

  .productCategory img {
    width: 90%;
    float: left;
  }

  .rtl .productCategory img {
    float: right !important;
  }

  #privateBlurb h1,
  #privateBlurb p,
  #groupBlurb h1,
  #groupBlurb p {
    padding: 0px 30px;
    float: left;
    text-align: left;
  }

  .rtl #privateBlurb h1,
  .rtl #privateBlurb p,
  .rtl #groupBlurb h1,
  .rtl #groupBlurb p {
    float: right;
    text-align: right;
  }

  .productCategory:last-child {
    margin-top: 20px;
  }
}

/* Product Features */
.productFeature {
  width: 100%;
}

.productFeature td > div {
  padding: 0px 36px;
}

.productFeature img {
  max-height: 275px;
  max-width: 450px; /* height*1.65 */
  width: 100%;
}

.productFeatureIntro {
  max-width: 450px;
  padding: 10% 0% 10% 0%;
}

.featureTitle {
  color: #ef6b6c;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.smallFeatures {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.smallFeature {
  width: 340px;
  margin: 0px 36px;
  text-align: center;
}

.smallFeature img {
  height: 87px;
}

@media (max-width: 768px) {
  .productFeature * {
    text-align: left !important;
    float: left !important;
  }

  .rtl .productFeature * {
    text-align: right !important;
    float: right !important;
  }

  .productFeature td > div {
    padding: 0px 15px;
    display: flex;
    justify-content: space-around;
  }

  .productFeature img {
    height: 100%;
  }

  .productFeatureIntro {
    padding: 0px 0px 30px 0px;
  }

  .productFeature span {
    font-size: 12px;
    line-height: 1.63;
    padding-right: 2px;
  }

  .smallFeature {
    margin: 25px 50px;
  }
}


/* Marketing Content */
.testimonial {
  flex: 0 0 33.33%;
  margin: 40px 0px;
  min-width: 280px;
  padding: 0px 10px;
}

.testimonial img {
  height: 50px;
  width: 50px;
}

.rtl .testimonial p {
  text-align: right !important;
}

.testimonial .featureTitle {
  font-size: 20px;
}

#pressContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  overflow: auto;
  padding: 0px !important;
}

.press {
  height: 30px;
  width: auto;
  margin: 10px 15px;
}

.youtubeContainer {
  margin: 0px 10px;
  flex: 0 0 38%;
}

.youtubeContainer:first-child {
  margin-left: 0px;
}

.youtubeContainer:last-child {
  margin-right: 0px;
}

.youtubeVideo {
  border: 0;
  width: 100%;
  min-width: 300px;
  height: 22vw;
  min-height: 152px;
}

@media (max-width: 768px) {
  #pressContainer {
    width: 90%;
    margin: 0px 5% !important;
    padding: 0px !important;
  }

  .press {
    height: 15px;
    margin: 8px 5px;
  }

  .youtubeContainer {
    margin: 0px 5px;
  }
}

/* Footer */
.footer-bg {
  background: #2c2c2c;
}

.footer-link-header {
  color: #fff;
  font-size: 16px;
  line-height: 2.5;
}

.footer-link-link {
  color: #ffc000;
  font-size: 14px
  line-height: 2;
  font-weight: lighter;
}

.footer-link-link a {
  color: #ffc000;
}
