﻿.z-depth-1, .btn, .btn-large, .btn-floating {
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.z-depth-1-half, .btn:hover, .btn-large:hover, .btn-floating:hover {
    -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
}

/* Ripple magic */

.btn {
    overflow: hidden;
    position: relative;
}

.btn:after {
    background: rgba(255, 255, 255, .5);
    border-radius: 100%;
    content: '';
    height: 5px;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    width: 5px;
}

@keyframes ripple {
    0% {
        opacity: 1;
        transform: scale(0, 0);
    }

    20% {
        opacity: 1;
        transform: scale(25, 25);
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.btn:focus:not(:active)::after { animation: ripple 1s ease-out; }