.vertical {
  display: flex;
}

body {
  position: relative;
}

body.index {
  header .container,
  footer .container {
    @include breakpoint($max-width) {
      margin-left: auto;
      margin-right: auto;
    }
  }
  .content {
    margin: 0 auto;
    max-width: 100%;
  }
}

body.index .carousel-block {
  position: relative;
  display: block;
  padding: 0;
  line-height: 0;

  .carousel-indicators {
    bottom: 10px;
  }

  .carousel-inner {
    display: flex;
    height: 100%;

    .box {
      width: 95%;
      height: 100%;
      margin: 0 auto;
    }

    img {
      height: auto;
      width: 100%;
      margin: 0 auto;
      vertical-align: middle;
    }

    .header-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 75%;
      padding-top: 65px;
      color: #fff;

      .heading {
        font-family: $proxima-extra-bold;
        font-size: 32px;
        line-height: 2rem;
      }

      .sub-heading {
        font-family: $proxima-light;
        font-size: 20px;
        line-height: 1.8rem;
      }

      @include breakpoint(800px) {
        padding-top: 0px;

        .heading {
          font-size: 4vw;
          padding-top: 65px;
        }

        .sub-heading {
          font-size: 2vw;
          padding-top: 1%;
          padding-bottom: 5%;
        }
      }
    }

    .header-button {
      display: flex;
      height: 25%;
      justify-content: center;
      align-items: center;
    }

    .button-large {
      padding: 15px 35px;
      font-size: 16px;

      @include breakpoint(800px) {
        font-size: 1.2vw;
      }
    }

    .information {
      display: none;
      position: absolute;
      font-size: 2vw;
      color: #FFFFFF;
      bottom: 4.5vw;
      right: 8.2vw;

      @include breakpoint(800px) {
        display: block;
      }
    }

    .information-border {
      display: none;
      position: absolute;
      width: 3vw;
      height: 3vw;
      border-radius: 50%;
      border: 2px solid #FFFFFF;
      bottom: 3vw;
      right: 7vw;

      @include breakpoint(800px) {
          display: block;
      }
    }

    .tooltip-text {
      font-size: 1.1vw;
      font-weight: 100;
      padding: 10px;
      line-height: 1rem;
      font-style: italic;

      &:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 100%;
        width: 0;
        height: 0;
        border: 20px solid transparent;
        border-top-color: #f2f2f2;
        border-bottom: 0;
        border-right: 0;
        margin-left: -20px;
        margin-bottom: -15px;
      }

      a {
        text-decoration: underline;
      }
    }

    .information-border span {
      background-color: #f2f2f2;
      color: $blue;
      opacity: 0;
      padding: 10px;
      position: absolute;
      visibility: hidden;
      width: 16vw;
      right: 3vw;
      bottom: 3vw;
      z-index: 10;
      text-align: left;
      transition: .5s linear 2s;
    }

    .information-border:hover span {
      opacity: 1;
      visibility: visible;
      transition: .5s linear;
    }

    .slot-1, .slot-2, .slot-3 {
      width: 100%;
      height: 440px;
      text-align: center;
      background-size: cover;
      background-position-x: center;

      @include breakpoint(800px) {
        height: 52vw;
      }
    }

    .slot-1 {
      background-image: url('/img/assets/index/carousel/codio-homepage-dv-carousel1.jpg');
    }

    .slot-2 {
      background-image: url('/img/assets/index/carousel/codio-homepage-drone-carousel2.jpg');
    }

    .slot-3 {
      background-image: url('/img/assets/index/carousel/codio-homepage-robot-carousel3.jpg');
    }
  }
}

body.index .features-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: $blue;
  padding: 5px;
  color: #FFFFFF;

  .block {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 90%;

    .icon {
      padding: 10px;
      width: 100px;
      height: 100px;
      margin-left: auto;
      margin-right: auto;

      @include breakpoint(800px) {
        width: 10vw;
        height: 10vw;
      }
    }

    .text{
      font-family: $proxima-light;
      font-size: 26px;
      padding: 10px;

      span {
        font-family: $proxima-bold;
      }

      @include breakpoint(800px) {
        font-size: 28px;
        height: 74px;
      }

      @include breakpoint($max-width) {
        font-size: 36px;
        margin: 30px 0;
      }
    }

    .numbers {
      font-family: $proxima-bold;
      font-size: 50px;
      padding: 10px;

      @include breakpoint(800px) {
        font-size: 60px;
      }

      @include breakpoint($max-width) {
        font-size: 110px;
      }
    }

    @include breakpoint(800px) {
      width: 50%;
    }
  }

  @include breakpoint(800px) {
    padding: 40px;
    flex-direction: row;
    justify-content: space-around;
  }
}

body.index .info-block {
  background-color: $base-background-color;
  display: flex;
  flex-direction: column;
  padding: 60px 20px;
  color: #243249;
  text-align: center;
  line-height: 2rem;

  .title {
    font-family: $proxima-extra-bold;
    font-size: 2.2rem;
    padding-bottom: 20px;
  }

  .description {
    font-family: $proxima-bold;
    font-size: 1.1rem;
    padding: 10px 10px 20px 10px;
  }

  .two-text {
    font-weight: 300;
    padding: 10px 0;
    font-size: 22px;
    line-height: 1.3rem;

    display: flex;
    justify-content: center;
    align-content: center;

    .two-text-left, .two-text-right {
      flex: 1 1 50%;
      padding: 10px 20px;
      text-align: center;
    }

    .two-text-line {
      border-left: 1px solid black;
    }

    span {
      font-family: $proxima-bold;
    }
  }

  .image-text {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    font-family: $proxima-light;
    line-height: 2em;

    .image-block, .text-block {
      flex: 1 1 50%;
      padding: 0 20px;
    }

    .image-block {
      img {
        width: 100%;
        height: auto;
      }
    }

    .text-block {
      font-size: 22px;
      line-height: 22px;
      text-align: center;
      padding-top: 20px;

      .info {
        font-family: $proxima-bold;
        padding-bottom: 15px;
      }

      p {
        padding-bottom: 15px;
        margin: 0;
      }

      span {
        font-family: $proxima-extra-bold;
      }

      @include breakpoint(800px) {
        font-size: 24px;
        text-align: left;
        line-height: 30px;
      }

      @include breakpoint(1200px) {
        font-size: 28px;
        line-height: 36px;
      }
    }

    @include breakpoint(1024px) {
      flex-direction: row;

      .text-block {
        padding-top: 0;
      }
    }
  }

  .img-block {
    background-color: #e6e6e6;
    padding: 30px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    min-height: 1px;

    .image {
      width: 100%;
      height: auto;
      min-height: 1px;
    }

    .check-list {
      font-family: $proxima-light;
      font-size: 20px;
      padding: 20px;
      margin-top: 10px;
      text-align: left;
      line-height: 24px;

      .check-list-list {
        list-style: none;
        margin-left: 0;
        padding-left: 0;
      }

      .check-list-list-item {
        padding-left: 2em;
        padding-bottom: 12px;
        text-indent: -1.5em;

        @include breakpoint(800px) {
          text-indent: -1.7em;
        }
      }

      .check-list-list-item:before {
        font-size: 14px;
        content: '\25B6';
        padding-right: 1em;

        @include breakpoint(800px) {
          font-size: 20px;
        }
      }
    }
  }

  .schedule-demo {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 95%;
    margin-right: auto;
    margin-left: auto;
    padding: 30px;
    padding-bottom: 0;

    .button-large {
      height: auto;
      padding: 0px 10px;
      font-size: 14px;

      @include breakpoint(800px) {
        padding: 10px 35px;
        font-size: 18px;
      }
    }

    @include breakpoint(1100px) {
      width: 65%;
    }

    .button-main:hover {
      background-color: $base-background-color;
      color: $orange;
    }

    .case-study-btn {
      background-color: $base-background-color;
      border-color: $blue;
      color: $blue;

      &:hover {
        background-color: $blue;
        color: $base-background-color;
      }
    }
  }

  @include breakpoint(800px) {
    padding: 150px 60px;

    .title {
      font-size: 3rem;
      padding-bottom: 40px;
    }

    .description {
      font-size: 1.4rem;
    }

    .two-text-left, .two-text-right {
      padding: 10px 80px;
    }

    .img-block .check-list {
      margin-top: 40px;
      font-size: 26px;
      line-height: 36px;
    }
  }
}

body.index #easySetup {
  padding-top: 0;
}

body.index {
  .testimonial-gordon-fraser, .testimonial-mateen-rizki,
  .testimonial-mateen-rizki-black, .testimonial-eitan-grinspun {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: $blue;
    padding: 20px;

    .quote-left, .quote-right {
      width: 30px;
      height: auto;
    }

    .quote-left {
      align-self: flex-start;
    }

    .quote-author-avatar {
      width: 200px;
      height: 200px;
      color: red;
      background-color: green;
      background: url(/img/assets/index/gordon-fraser.png) center center no-repeat;
      background-size: cover;
      margin: 0 30px;
      align-self: center;
    }

    .quote-right {
      align-self: flex-end;
    }

    .quote-inner-info {
      width: 100%;
      margin: 30px 0 0 0;
      color: #FFFFFF;
      text-align: center;

      .quote-topic {
        font-family: $proxima-bold;
        font-size: 30px;
      }

      .quote-text {
        font-family: $proxima-light;
        font-style: italic;
        margin-top: 30px;
        font-size: 26px;
        line-height: 1.8rem;
      }

      .quote-author {
        margin-top: 30px;
        font-size: 30px;
        display: flex;

        .quote-author-info {
          flex: 1 1 auto;
          line-height: 1.2em;

          .quote-author-name {
            font-family: $proxima-bold;
          }

          .quote-author-occupation {
            font-family: $proxima-light;
          }
        }
      }
    }

    @include breakpoint(800px) {
      flex-direction: row;
      padding: 50px 0;

      .quote-author-avatar {
        align-self: flex-start;
      }

      .quote-inner-info {
        width: 60%;
        margin: 0 30px 0 0;
        text-align: left;
      }
    }
  }

  .testimonial-mateen-rizki, .testimonial-mateen-rizki-black {
    .quote-author-avatar {
      background: url(/img/assets/index/mateen-rizki.png) center center no-repeat;
      background-size: cover;
    }
  }

  .testimonial-mateen-rizki-black, .testimonial-eitan-grinspun {
    background-color: #243249;
  }

  .testimonial-eitan-grinspun {
    .quote-author-avatar {
      background: url(/img/assets/index/eitan-grinspun.png) center center no-repeat;
      background-size: cover;
    }
  }
}


