
@import "../../../../style/variable";
@import "../../../../style/color";
@import "../../../../style/typography";

.p_crVideo {
  width: 100%;
  position: relative;

  .header {
    position: relative;

    .background-box {
      display: block;
      position: absolute;
      top: 0;
      left: -25%;
      width: calc(100% + 100%);
      height: 50%;
      background: rgba(13, 17, 27, 0.1);
    }

    .header-container {
      width: 80%;
      margin: 0 auto;

      .title {
        width: 100%;
      }

      @media only screen and (max-width: $mobile-width) {
        .title.sub-title {
          font-size: 20px;
          line-height: 1.5;
        }
      }
    }

    .title {
      width: 50%;
      position: relative;
      margin-bottom: $gap_4;
      padding-top: $gap_4;
      z-index: 2;
      text-align: left;
      font-size: 80px;
      line-height: 80px;
      color: #031E28;

      @media only screen and (max-width: $mobile-width) {
        width: 100%;
        margin-left: 0;
        margin-bottom: $gap_2;
        padding-top: $gap_2;
        font-size: 40px;
        line-height: 60px;
      }
    }
    .videoWrapper {
      margin: 0 auto;
      width: 100%;
      position: relative;
      padding-bottom: 56.25%; /* 16:9 */
      padding-top: 25px;
      z-index: 2;
      height: 0;

      iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
      @media only screen and (max-width: $mobile-width) {
        width: 100%;
      }
    }
    .sub-title {
      width: 100%;
      margin-bottom: $gap_5;
      padding-top: $gap_2;
      font-size: 30px;
      line-height: 40px;
      color: initial;

      @media only screen and (max-width: $mobile-width) {
        margin-left: 0;
        margin-bottom: $gap_2;
        padding-top: $gap_2;
        font-size: 40px;
        line-height: 50px;
      }
    }
    .background-visuals {
      width: calc(100% + 96px + 305px);
      height: 50%;
      position: absolute;
      top: 0;
      left: -200px;
      z-index: 0;
      background: rgba(23, 44, 59, 0.04);

      .upper-right {
        position: absolute;
        top: 0;
        right: $gap_4;
        @media only screen and (max-width: $mobile-width) {
          top: calc(100% + 20px);
          right: 0;
        }
      }
      .mid-right {
        position: absolute;
        top: calc(100% - 37px);
        right: $gap_5;
        opacity: 0.6;

        @media only screen and (max-width: $mobile-width) {
          visibility: hidden;
        }
      }
      .upper-left {
        position: absolute;
        top: $gap_3;
        left: 0;
        opacity: 0.6;

        @media only screen and (max-width: $mobile-width) {
          top: -$gap_2;
        }
      }
      .mid-left {
        position: absolute;
        top: 90%;
        left: $gap_5;
        opacity: 0.6;
        @media only screen and (max-width: $mobile-width) {
          top: 90%;
          left: 0;
        }
      }
      @media only screen and (max-width: $mobile-width) {
        width: calc(100% + 40px);
        left: -20px; // counteract padding
      }
    }
  }
  .content {
    width: 60%;
    margin: $gap_2 auto;
    text-align: left;

    .title {
      margin-bottom: $gap_2;
      font-size: 30px;
      line-height: 40px;
      color: initial;
    }
    .subtitle {
      margin: $gap_1 0;
      text-align: center;
    }
    .links {
      text-align: center;
    }
    span {
      font-weight: bold;
    }
    p {
      margin-top: $gap_1;
    }
    @media only screen and (max-width: $mobile-width) {
      margin-left: 0;
      padding: 0 20px;
      width: 100%;
    }
  }
  .share-icons {
    position: absolute;
    top: 30%;
    left: 12%;

    span {
      margin-bottom: $gap_3;
      display: block;
      color: $cr_primary_color;
    }
    a {
      display: block;
      @media only screen and (max-width: $mobile-width) {
        display: inline-block;
        margin: 0 $gap_2;
      }
    }
    svg {
      margin-bottom: $gap_3;
      padding-bottom: $gap_1;
      width: 50px;
      height: 50px;
      color: black;
    }

    #twitter_share {
    }

    @media only screen and (max-width: $mobile-width) {
      position: relative;
      top: 0;
      left: 0;

      .share-container {
        display: inline-block;
        height: 100px;
        margin-bottom: 48px;
        vertical-align: top;
      }

      #twitter_share {
        padding-top: 8px;
      }

      #facebook_share {
        padding-top: 8px;
      }
    }

  }
  .earn-ela-btn {
    margin: $gap_3 0;
    width: 400px;
    height: 60px;
    font-size: 25px;
    background: #1DE9B6;
    color: white;

    @media only screen and (max-width: $mobile-width) {
      width: 50%;
      font-size: 16px;
    }
  }

  .cr-learn-more, .vertSpacer {
    margin-top: 125px;
  }

  .email-contact {
    margin: 100px auto;

    #email_mailer {
      border: 1px solid $border_gray;
      margin: 6px 12px 0;
      padding: 4px 8px;

      @media only screen and (max-width: $mobile-width) {
        display: block;
        margin: 12px auto;
      }
    }

    .earn-ela-btn {
      width: auto;
      height: auto;
      margin: 0;
      font-size: 16px;
      padding: 4px 8px;

      @media only screen and (max-width: $mobile-width) {
        display: block;
        margin: 12px auto;
      }
    }

    @media only screen and (max-width: $mobile-width) {
      p, .title {
        text-align: center;
      }
    }
  }

  .form-wrap {

    text-align: center;

    #footer-form {
      margin-left: auto;
      margin-right: auto;

      button.arrow-submit {
        margin: 0;
      }
    }

    .signup-form {
      width: 380px;

      @media only screen and (max-width: $mobile-width) {
        width: 100%;
      }
    }
    .signup-form ::-webkit-input-placeholder {
      color: #1de9b6;
    }
    .signup-form :-moz-placeholder {
      color: #1de9b6;
    }
    .signup-form ::-moz-placeholder {
      color: #1de9b6;
    }
    .signup-form :-ms-input-placeholder {
      color: #1de9b6;
    }
    .signup-form .email-wrap {
      width: 100%;
      height: 53px;
      position: relative;
      background-color: #172c3b;
      border: 1px solid transparent;
      -webkit-transition: all 0.3s linear;
      -moz-transition: all 0.3s linear;
      -o-transition: all 0.3s linear;
      transition: all 0.3s linear;
    }
    .signup-form .email-wrap input[type="email"] {
      font: 300 17px/50px 'Synthese', sans-serif;
      color: #1de9b6;
      border: none;
      background: none;
      padding: 0 40px 0 17px;
      width: 100%;
    }
    .signup-form .email-wrap button[type="submit"] {
      background: none;
      border: none;
      text-align: center;
      position: absolute;
      right: 0px;
      top: 0px;
      width: 40px;
      height: 53px;
    }
    .signup-form .email-wrap button[type="submit"] svg {
      transform: scale(0.5);
      margin-top: -3px;
      margin-left: 1px;
      width: 27px;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-top: -27px;
      margin-left: -12px;
    }
    .signup-form .email-wrap .small-tri {
      fill: #2a3c57;
    }
    .signup-form .email-wrap.error {
      border: 1px solid #1de9b6;
    }
    .signup-form.sending .email-wrap {
      opacity: .3;
    }
    .signup-form.sending .email-wrap button {
      pointer-events: none;
    }
    .signup-form.thanks input,
    .signup-form.thanks button {
      pointer-events: none;
    }
  }
}
