@import '../Styles/styles.scss';

DanceList {
  position: relative;
  width: 100%;
  height: 100%;
  flex-direction: column;
  margin-left: 4px;
  padding: 8px;

  .dances {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow: scroll;

    .row {
      gap: 8px;
    }
  }

  .dance-preview {
    position: relative;
    width: 140px;
    height: 140px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
    border-width: 2px;
    flex-shrink: 0;
    transition: all 0.1s;

    .equipped {
      position: absolute;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      margin: 2px;
      padding: 4px;
      right: 0;
      font-weight: bold;
    }

    &:hover {
      border-width: 6px;
    }

    &.selected {
      border-width: 6px;
    }
  }

  .scrollbar {
    position: absolute;
    height: 437px;
    width: 12px;
    background-color: rgba(0, 0, 0, 0.8);
    left: -12px;
    padding: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.05s;

    .scrollbar-thumb {
      background-color: $selected;
      width: 100%;
    }

    &.show {
      opacity: 1;
    }
  }
}