@import '../../common/styles/variables.less';

.wrapper {
  min-height: 1000px;
  max-height: 1150px;
  background: linear-gradient(225deg, #fff, #f0f5ff);
  height: calc(94vh);
  position: relative;
  overflow: hidden;

  .content {
    .container1440();

    height: 100%;
    position: relative;
  }

  .text {
    position: relative;
    top: 12%;
    z-index: 1;
    margin-left: 4.5%;

    .titleButtons{
      display: flex;
      gap: 50px;
      justify-content: center;
    }

    .title {
      font-size: 3.4em;
      color: #000;
      position: relative;
      font-family: AlibabaPuHuiTiRHeavy;

      .engine {
        color: #691eff;
      }
    }

    .buttons {
      display: flex;
      margin-top: 10px;

      .githubWrapper {
        display: flex;

        :global {
          .github-btn {
            display: flex;
            height: 54px;
            cursor: pointer;
            box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 5%);
            background-color: #fff;
            border: 1px solid #e8e8e8;
            justify-content: center;
            align-items: center;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.15s;

            &:hover {
              .gh-btn {
                > .gh-ico {
                  filter: drop-shadow(#691eff 80px 0);
                }
              }

              .gh-count {
                color: #691eff;
              }
            }

            .gh-btn {
              padding: 16px;

              .gh-ico {
                display: block;
                width: 20px;
                height: 20px;
                background-image: url(https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*Nk9mQ48ZoZMAAAAAAAAAAABkARQnAQ);
                background-size: 100% 100%;
                background-repeat: no-repeat;
                position: relative;
                left: -80px;
                filter: drop-shadow(#1d2129 80px 0);
              }

              .gh-text {
                display: none;
              }
            }

            .gh-count {
              height: 54px;
              line-height: 22px;
              padding: 16px 16px 16px 0;
              position: relative;
              font-size: 18px;
              margin-left: -8px;
              color: #1d2129;
              letter-spacing: 0;
              font-family: "AlibabaSans102-Medium";
            }
          }
        }
      }
    }
  }

  .news {
    width: 100%;
    display: flex;
    bottom: 30px;
    position: absolute;
    z-index: 3;
    height: 128px;
    box-sizing: border-box;
    padding: 0 4.5%;
    overflow: hidden;
  }

  .teaser {
    display: flex;
    position: absolute;
    right: 0;
    width: 32%;
    max-width: 598px;
    height: 324px;
    margin: auto;
    margin-top: 0;
    top: 0;
    bottom: 0;

    .teaserimg {
      width: 100%;
      height: auto;
      position: relative;

      .teaserImage {
        width: 100%;
        margin-left: 100px;
        margin-top: 40px;
      }
    }
  }

  .backLeftBottom {
    position: absolute;
    left: -8%;
    bottom: -20px;
  }
}

@media (max-width: 900px) {
  .wrapper {
    .content {
      width: 91.46%;
      margin-left: 4.27%;
      margin-bottom: 5%;
      position: relative;
    }

    .text {
      top: 16.7%;
      text-align: center;
      margin-left: 0;

      .titleButtons {
        display: block;
      }

      .title {
        font-size: 2.857em;
        margin-left: 0;
        word-break: break-word;
        overflow-wrap: break-word;
      }

      .buttons {
        display: inline-flex;
      }
    }

    .news {
      width: 91%;
      padding: 0;
      display: block;
      bottom: 10px;
      left: 4.5%;
    }

    .teaser {
      width: 100%;
      max-width: 1200px;
      margin-top: auto;
      margin-left: unset;
      margin-right: unset;
      right: unset;
      top: 30%;
      display: flex;
      justify-content: center;

      .teaserimg {
        width: 40%;
        margin-left: unset;
        margin-right: unset;
      }
    }
  }
}

@media only screen and (max-width: 767.99px) {
  .wrapper {
    height: auto;
    min-height: unset;
    max-height: unset;
    overflow: visible;
    padding-bottom: 80px;

    .content {
      height: auto;
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
      margin-bottom: 0;
      box-sizing: border-box;
    }

    .text {
      top: 0;
      padding: 80px 4.5% 0;
      margin-left: 0;
      order: 1;

      .titleButtons {
        display: block;
      }

      .title {
        font-size: 2em;
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
      }

      .buttons {
        text-align: center;
        margin-top: 12px;
      }
    }

    .teaser {
      order: 2;
      position: relative;
      width: 70%;
      height: auto;
      max-width: none;
      right: auto;
      top: auto;
      bottom: auto;
      margin: 16px auto 0;
      justify-content: center;

      .teaserimg {
        width: 100%;

        .teaserImage {
          margin-left: 0;
          margin-top: 0;
        }
      }
    }

    .homeDialog {
      order: 3;
      margin: 16px auto;
    }

    .news {
      order: 4;
      position: relative;
      bottom: auto;
      left: auto;
      width: 100%;
      padding: 0 4.5%;
      box-sizing: border-box;
    }

    .backLeftBottom {
      display: none;
    }
  }
}

@media only screen and (max-width: 480px) {
  .wrapper {
    .teaser {
      width: 90%;
    }

    .text {
      .buttons {
        .githubWrapper {
          display: none;
        }
      }
    }

    .news {
      height: 160px;
    }
  }
}

.homeDialog {
  margin: 140px auto;
}

