@import '@legends/styles/base';

$centerSlideSize: 17.9904rem;
$adjacentSlideSize: 13.125rem;
$smallerSlideSize: 11rem;

.wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 5.625rem;

  :global(.swiper) {
    @include container;
    position: relative;
    display: flex;
    height: 18rem;
    

    :global(.swiper-wrapper) {
      align-items: center;
    }
  }

  .content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    .slide {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
      filter: brightness(0) contrast(90%); 
      flex-shrink: 0;
      width: $smallerSlideSize;
      height: $smallerSlideSize;

      &.adjacent {
        .image {
          height: $adjacentSlideSize;
          width: $adjacentSlideSize;
          transform: translateX(20%);
          object-fit: cover;
          object-position: top;
        }

        &.left {
          .image {
            transform: translateX(-15%);
          }
        }
      }

      &.selected {
        position: relative;
        z-index: 12;
        filter: none;


        .image {
          width: $centerSlideSize;
          height: $centerSlideSize;
          max-width: unset;
        }

        &::before {
          content: '';
          position: absolute;
          bottom: -2.7rem;
          left: 52%;
          transform: translateX(-50%);
          width: 11.6875rem;
          height: 1.8125rem;
          border-radius: 50%;
          background-color: $mainBg;
          z-index: 1;
          background: linear-gradient(180deg, #BDF0FF 17.31%, #6A6C43 100%);
          filter: blur(3.6px)

        
        }

      
      }

      .image {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: all 0.2 ease-in-out;
      }
    }

    .button {
      cursor: pointer;
      align-self: flex-start;
      padding-top: 6rem;
    }
  }

  .name {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2.25rem;
    font-family: $secondaryFont;
    color: $green-500;
  }

  .description {
    font-family: $secondaryFont;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.2188rem;
    text-align: center;
    max-width: 33.75rem;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1200px) and (max-height: 800px) {
  .wrapper {
    margin-bottom: 3rem;
  }
}
