@import '../../variables';
@import '../../mixins';

%opacity-transition {
  transition: opacity 0.25s ease-out;
}

%seek-circle {
  @extend %opacity-transition;
  background-color: $color-background-seek-circle;
  border-radius: 50%;
  content: '';
  height: 200%;
  opacity: 0;
  position: absolute;
  width: 100%;
}

%seek-label {
  @extend %opacity-transition;
  @include hidden-animated;
  margin: 0;
  opacity: 1;
  position: absolute;
  z-index: 1;
}

.#{$prefix}-ui-touch-control-overlay {
  @extend %ui-container;
  @include layout-cover;

  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  transition: background-color $animation-duration;

  // sass-lint:disable nesting-depth
  > .#{$prefix}-container-wrapper {
    align-items: center;
    display: flex;

    .#{$prefix}-seek-forward-label {
      @extend %seek-label;

      right: 10%;
    }

    .#{$prefix}-seek-backward-label {
      @extend %seek-label;

      left: 10%;
    }
  }

  &::before {
    @extend %seek-circle;
    left: -60%;
  }

  &::after {
    @extend %seek-circle;
    right: -60%;
  }

  &.#{$prefix}-seek-forward {
    &::after {
      opacity: 1;
    }
  }

  &.#{$prefix}-seek-backward {
    &::before {
      opacity: 1;
    }
  }
}
