@mixin scrollbar($background-color, $thumb-color, $width: 8px) {
  scrollbar-color: $thumb-color $background-color;
  scrollbar-width: thin;

  &::-webkit-scrollbar {
    width: $width;
    height: $width;
    background-color: $background-color;
  }

  &::-webkit-scrollbar-thumb {
    background-color: $thumb-color;
    border-radius: 4px;
  }
}

@mixin hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */

  &::-webkit-scrollbar {
    display: none;
  }
}

@mixin square($size) {
  width: $size;
  height: $size;
}

@mixin circle($size) {
  @include square($size);
  border-radius: 100%;
}

@mixin flexCentering {
  display: flex;
  align-items: center;
  justify-content: center;
}

@mixin reset-button {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  line-height: normal;
  appearance: none;
  cursor: pointer;
}
