/* Button click animations: ripple and press */
.clickable {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 600ms ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.press {
  animation: press 180ms ease;
}

@keyframes press {
  50% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}

/* Provide a dark ripple variant when parent has dark background */
.clickable.dark-ripple .ripple {
  background: rgba(0, 0, 0, 0.15);
}
