@import '../assets/css/variable';

rad-ui-carousel {
  display: block;
  height: 100%;
  width: 100%;

  // Обертка
  .carousel-slider {
    border-radius: 1rem;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  // слайд
  .carousel-slide {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    transition: 1s;
    transition-property: left;

    // изображение
    &-image {
      display: block;
      height: 100%;
      width: 100%;
      top: 0;
      left: 0;
      background-repeat: no-repeat;
      background-size: contain;
      background-position: 50% 50%;
      z-index: 0;
    }

    // Заголовок и описание
    &-content {
      height: 100%;
      width: 100%;
      z-index: 1;
    }

    &-title {
      background-color: transparent;
      color: #fff;
      font-size: 1rem;
      font-weight: 700;
      left: 5%;
      max-width: 90%;
      position: absolute;
      text-transform: uppercase;
      top: 50%;
      z-index: 1;
    }

    &-description {
      background-color: transparent;
      color: #fff;
      font-size: 1rem;
      left: 5%;
      max-width: 90%;
      position: absolute;
      top: 60%;
      z-index: 1;
    }
  }

  .carousel-indicators {
    position: absolute;
    bottom: 0.5rem;
    left: 2rem;
    z-index: 5;
    margin: 0 -0.5rem;
  }

  .carousel-indicator {
    background-color: transparent;
    border: none;
    position: relative;
    color: $color-main-blue;
    height: 4px;
    margin: 0 0.5rem;
    transition: all 500ms cubic-bezier(0, 0, 0.58, 1);
    padding: 1rem 0.35rem;

    &:after {
      display: block;
      content: '';
      width: 4rem;
      height: 2px;
      background-color: $color-main-blue;
    }

    &_active:after {
      color: $color-main-blue;
      height: 4px;
    }

    &:hover,
    &:focus,
    &:active {
      outline: none;
      box-shadow: none;
    }
  }
}
