@import '../../scss/variables/colors';

.button {
  align-items: center;
  background: $microsoft-bg !important;
  border-radius: 4px;
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  outline: 0;
  padding: 8px 12px;
  transition:
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  width: 100%;

  &:hover {
    background: scale-color($color: $microsoft-bg, $lightness: -50%) !important;
  }
}

.container {
  align-items: center;
  display: flex;
  flex-direction: column;
  grid-gap: 8px;
}

.icon {
  height: 1.25rem;
  width: 1.25rem;
}

.label {
  margin: 0 auto !important;
  transform: translate(-0.675rem);
}

.smallButtonWrapper {
  align-items: center;
  display: flex;
  justify-content: center;
}

.smallContainer {
  border-radius: 50%;
  height: 48px;
  padding: 8px !important;
  width: 48px;
}

.textsContainer {
  margin: 0 auto;
  text-align: left;
}

.iconOnly {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  transition: opacity 0.2s ease !important;

  &:hover {
    background: $gray !important;
    opacity: 0.8;
  }

  &:active {
    opacity: 0.6;
  }

  .icon {
    height: 48px;
    width: 48px;
  }
}

.noHover {
  &:hover {
    opacity: 1 !important;
    box-shadow: 0 3px 6px $microsoft-button-shadow !important;
  }

  &:active {
    opacity: 1 !important;
  }

  &.iconOnly:hover {
    background: none !important;
    box-shadow: none !important;
  }
}

.rectangleButton {
  background: none !important;
  border: 1px solid $gray !important;
  border-radius: 8px !important;
  height: 64px !important;
  padding: 16px !important;
  width: 100% !important;

  &:hover {
    background: $gray !important;
  }

  &:active {
    opacity: 0.8 !important;
  }

  .icon {
    height: 24px;
    width: 24px;
  }
}
