@import "mixins/mixins";
// @import "common/var";

@include b(backtop) {
  position: fixed;
  background-color: $--backtop-background-color;
  width: 40px;
  height: 40px;
  // border-radius: 50%;
  border-radius: $--border-radius-circle;
  color: $--backtop-font-color;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: $--font-size-title-2;
  // box-shadow: 0 0 6px rgba(0,0,0, .12);
  cursor: pointer;
  z-index: 5;

  &:hover {
    background-color: $--backtop-hover-background-color
  }

  @include when(square){
    // border-radius: 2px;
    border-radius: $--border-radius-small;
  }

  @include when(blue){
    background-color: $--backtop-background-blue-color;
    color: #FFFFFF;
    &:hover {
      background-color: $--backtop-background-blue-hover-color;
    }
  }

  @include when(gray){
    background-color: $--backtop-background-gray-color;
    border: $--border-1 solid $--backtop-boder-gray-color;
    color: $--backtop-gray-color;
    &:hover {
      background-color: $--backtop-background-gray-hover-color;
      border: $--border-1 solid $--backtop-boder-gray-hover-color;
    }
  }
}
