﻿.dialer {
    background-color: #111;
    position: fixed;
    bottom: -510px;
    right: 30px;
    padding: 20px 30px;
    width: 295px;
    border-top-left-radius: 5px;
    transition: 1s bottom;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.dialer--show-top {
    bottom: -450px;
}

.dialer--incoming-call {
    animation: shake 1s cubic-bezier(.36, .07, .19, .97) infinite both;
}

.dialer--show {
    bottom: 0;
}

.show-hide-button {
    position: absolute;
    top: -38px;
    right: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.dial-pad button {
    display: block;
    float: left;
    border-radius: 37.5px;
    width: 75px;
    height: 75px;
    margin-bottom: 5px;
    margin-right: 5px;
    font-size: 24px;
}

.dial-pad button:nth-child(3n) {
    margin-right: 0;
}

@keyframes shake {
    5%, 45% {
        transform: translate3d(-1px, 0, 0);
    }

    10%, 40% {
        transform: translate3d(1px, 0, 0);
    }

    15%, 25%, 35% {
        transform: translate3d(-2px, 0, 0);
    }

    20%, 30% {
        transform: translate3d(2px, 0, 0);
    }
}


