/* Enable box-sizing */
*, :before, :after {
  box-sizing: border-box;
}


/* Reset button */
button {
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
}

.button {
  z-index: 1;
  margin: 0.5em;
  color: #AAB2BD;
  font-size: 1rem;
  padding: 0.2em 0.6em;
  min-width: 2.4em;
  min-height: 2.4em;
  border-radius: 0.2em;
  background: #f2f3f5;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  outline: none;
  transition: background 0.2s;
  /* Loader */
  /* Animation */
  /* Buttons colors variants */
}
.button i {
  transition: 0.2s;
}
.button:hover, .button:focus {
  color: #8d98a7;
}
.button:hover:active i, .button:focus:active i {
  transform: scale(0.8);
}
.button.rounded {
  border-radius: 2em;
}
.button.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
}
.button.is-loading:after {
  z-index: 1;
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1em;
  width: 1em;
  margin-left: -0.5em;
  margin-top: -0.5em;
  -webkit-animation: loader-animation 600ms infinite linear;
          animation: loader-animation 600ms infinite linear;
  font-size: inherit;
  color: #AAB2BD !important;
  border: 0.2em solid;
  border-radius: 0.7em;
  border-right-color: transparent;
  border-top-color: transparent;
}
@-webkit-keyframes loader-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes loader-animation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.button.is-active {
  z-index: 2;
  color: white;
  background: #0076FF;
  -webkit-animation: 0.8s;
          animation: 0.8s;
}
.button.is-active:before, .button.is-active:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -2px;
  margin-top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  transform: scale(0);
  color: #AAB2BD;
  border: 1px solid transparent;
  box-shadow: -0.8em 0 0 -2px, 0.8em 0 0 -2px, 0 -0.8em 0 -2px, 0 0.8em 0 -2px, -0.6em -0.6em 0 -2px, -0.6em 0.6em 0 -2px, 0.6em -0.6em 0 -2px, 0.6em 0.6em 0 -2px;
}
.button.is-active:before {
  -webkit-animation: effect-01-animation 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
          animation: effect-01-animation 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.button.is-active:after {
  -webkit-animation: effect-02-animation 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
          animation: effect-02-animation 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@-webkit-keyframes effect-01-animation {
  from {
    transform: rotate(-15deg) scale(0);
  }
  40% {
    opacity: 1;
  }
  to {
    transform: rotate(-30deg) scale(2.5);
    opacity: 0;
  }
}
@keyframes effect-01-animation {
  from {
    transform: rotate(-15deg) scale(0);
  }
  40% {
    opacity: 1;
  }
  to {
    transform: rotate(-30deg) scale(2.5);
    opacity: 0;
  }
}
@-webkit-keyframes effect-02-animation {
  from {
    transform: rotate(10deg) scale(0);
  }
  40% {
    opacity: 1;
  }
  to {
    transform: rotate(30deg) scale(2);
    opacity: 0;
  }
}
@keyframes effect-02-animation {
  from {
    transform: rotate(10deg) scale(0);
  }
  40% {
    opacity: 1;
  }
  to {
    transform: rotate(30deg) scale(2);
    opacity: 0;
  }
}
.button.like:before, .button.like:after {
  color: #cc4896;
}
.button.like.is-active {
  background: #cc4896;
}
.button.plus:before, .button.plus:after {
  color: #8CC152;
}
.button.plus.is-active {
  background: #8CC152;
}
.button.fav:before, .button.fav:after {
  color: #F6BB42;
}
.button.fav.is-active {
  background: #F6BB42;
}
.button.thumb:before, .button.thumb:after {
  color: #3b5998;
}
.button.thumb.is-active {
  background: #3b5998;
}