@import "./_var.scss";

main {
  display: unset;
  flex-direction: unset;
  align-items: unset;
  max-width: 100%;
}

.lines {
  background-color: $secondary;
  background-image: 
    repeating-linear-gradient(
      -45deg, 
      transparent, 
      transparent 2rem,
      $primary 2rem,
      $primary 4rem
    );
  background-size: 100vw 99.3vh;
  animation: barberpole 11s linear infinite;
  background-repeat: repeat;
  min-height: 75vh;
  padding-inline: 10vw;
  display: flex;
  align-items: center;
  justify-content: space-evenly;

  .home-main-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;

    .home-title-box {
      justify-self: flex-start;
      margin-right: 5vw;
      h1 {
        font-size: 110px;
        color: #e6e6e6;
        background: linear-gradient(to right, #e6e6e6 0, white 8%, #e6e6e6 16%);
        background-position: 0;
        background-color: #e6e6e6;
        background-repeat: no-repeat;
        background-size: 500px;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 3s infinite linear;
        animation-fill-mode: forwards;
        text-size-adjust: none;
      }
      h2{
        font-size: 35px;
      }
      .home-title {
        margin: 0;
        color: #fff;
        font-family: "Tanker-Regular", "Arial";
      }

      .continue {
        margin-top: 40px !important;
        padding: 15px 50px;
        font-size: 22px;
        &:hover{
          svg{
            transition: margin-left 0.2s;
            margin-left: 30px !important;
          }
          &{
            transition: padding-right 0.2s;
            padding-right: 38px;
            cursor: pointer;
          }
        }
        .icon{
          margin-left:18px; 
          margin-bottom:-9px;
        }
      }
    }
  }

  .content {
    justify-self: flex-end;
    margin: 0;
    margin-top: 25px !important;
    max-width: 528px;
    &p {
      z-index: 2;
    }
    .avatar {
      position: absolute;
      box-shadow: 0px 4px 4px 0px #00000040;
      top: 0;
      right: 0;
      width: 80px;
      height: 80px;
      border-radius: 40px;
      background-size: cover;
      transition: opacity 0.5s linear;
      background-image: url("/img/avatar.webp");
      z-index: 1;
      &.portrait {
        top: 8% !important;
        right: 10%;
        background-image: url("/img/portrait.webp");
        &:hover {
          opacity: 100;
        }
      }
      &:hover {
        opacity: 0;
        box-shadow: none;
      }
    }
  }
}

@media (max-width: $responsive-width) {
  .icon{
    margin-left:18px; 
    margin-bottom:-11px;
  }
  .lines {
    flex-direction: column;
    .home-main-box {
      flex-direction: column;
      align-items: center;
      .home-title-box {
        margin-right: 0;
        margin-bottom: 2vh;
        text-align: center;
        h1 {
          font-size: 75px;
        }
        h2 {
          font-size: 25px;
        }
        .continue {
          margin-top: 20px;
          padding: 10px 30px;
          padding-bottom: 15px;
          font-size: 18px;
          &:hover{
            svg{
              transition: margin-left 0.2s;
              margin-left: 30px !important;
            }
            &{
              transition: padding-right 0.2s;
              padding-right: 18px;
              cursor: pointer;
            }
          }
        }
      }
      .content {
        margin-top: 10px;
        margin-bottom: 20px;
        justify-self: center;
      }
    }
  }
  .lines{
    margin-bottom: 50px;
  }
}

@media (max-width: $responsive-width-secondary){
  .avatar {
    &.portrait {
      left: 50%;
      transform: translate(-50%, 0);
      right: 0 !important;
      top: 5% !important;
    }
  }
  .content {
    p{
      margin-top: 120px;
    }
  }
}

@keyframes shine {
  0% {
    background-position: -200px;
  }
  100% {
    background-position: 500px;
  }
}

@keyframes barberpole {
  100% {
    background-position: 100% 100%;
  }
}
