.m-signature-pad {
    width: 70vw;
    height: 50vh;
    max-height: 30em;
    min-width: 40em;
    min-height: 25em;
    padding: 2em;
    position: relative;
    background-color: white;
    box-shadow: 0 0 20px 1px #ddd;
    text-align: right;
}

    .m-signature-pad:before, .m-signature-pad:after {
        width: 70vw;
        height: 50vh;
        max-height: 30em;
        min-width: 40em;
        min-height: 25em;
        padding: 2em;
        position: relative;
        background-color: white;
        box-shadow: 0 0 20px 1px #ddd;
        text-align: right;
    }

    .m-signature-pad:after {
        left: auto;
        right: 20px;
        -webkit-transform: skew(3deg) rotate(3deg);
        -moz-transform: skew(3deg) rotate(3deg);
        -ms-transform: skew(3deg) rotate(3deg);
        -o-transform: skew(3deg) rotate(3deg);
        transform: skew(3deg) rotate(3deg);
    }

.m-signature-pad--body {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: 60px;
}

    .m-signature-pad--body
    canvas {
        width: 100%;
        height: 100%;
        border: 1px #0576b9 dashed;
        border-radius: 7px;
    }

.m-signature-pad--footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    height: 35px;
}

    .m-signature-pad--footer
    .description {
        text-align: center;
        font-size: 1.2em;
        margin-top: 1.2em;
    }

    .m-signature-pad--footer
    .button {
        position: absolute;
        bottom: 0;
    }

        .m-signature-pad--footer
        .button.clear {
            left: 0;
        }

        .m-signature-pad--footer
        .button.save {
            right: 0;
        }

@media screen and (max-width: 1024px) {
    .m-signature-pad {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        min-width: 250px;
        min-height: 300px;
        margin: 5%;
    }

    #github {
        display: none;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .m-signature-pad {
        margin: 10%;
    }
}

@media screen and (max-height: 320px) {
    .m-signature-pad--body {
        left: 0;
        right: 0;
        top: 0;
        bottom: 32px;
    }

    .m-signature-pad--footer {
        left: 20px;
        right: 20px;
        bottom: 4px;
        height: 28px;
    }

        .m-signature-pad--footer
        .description {
            font-size: 1em;
            margin-top: 1em;
        }
}
