@use "../custom" as *;

.popularPackages {
  background: linear-gradient(180deg, $background 100px, $black 100px);
  position: relative;
  padding-bottom: 3.125rem;

  @include media-breakpoint-down(lg) {
    background: $black;
  }

  &__head {
    padding-top: 9.375rem;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: end;
    position: relative;
    margin-bottom: 2rem;

    @include media-breakpoint-down(lg) {
      padding-top: 3.125rem;
    }

    &-img {
      max-width: 48.4375rem;
      height: 36.1875rem;
      position: absolute;
      top: 0;
      left: 0;
      .loading {
        position: absolute;
        z-index: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        animation: loading-rotate 16s infinite linear reverse;
      }

      .character {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
      }

      @include media-breakpoint-down(lg) {
        display: none;
      }
    }
  }

  &__headline {
    &-wrapper {
      display: flex;
      align-items: center;
      gap: 1rem 3.0625rem;
      max-width: 56.25rem;
      position: relative;
      z-index: 5;

      @include media-breakpoint-down(lg) {
        justify-content: center;
        flex-direction: column;
        text-align: center;
      }
    }

    &-icon {
      min-width: 4.25rem;
      width: 4.25rem;
      height: 4.25rem;
      border-radius: 100vh;
      background-color: $green;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 2;
      border-radius: 100vh;

      img {
        height: 1.0625rem;
        width: 1.1875rem;
        min-width: 1.1875rem;
        object-fit: contain;
      }

      &::before {
        content: "";
        display: block;
        width: calc(100% + 1.875rem);
        height: calc(100% + 1.875rem);
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba($green, 0.1);
        z-index: -1;
        border-radius: 100vh;
      }
    }

    color: $white;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    font-family: $roobert;

    span {
      color: $green;
    }
  }

  &__description {
    color: $label-200;
    font-size: 1rem;
    font-weight: 400;
    font-family: $roobert;
  }
}
