.btn {
    border: none;
    display: block;
    text-align: center;
    cursor: none;
    text-transform: uppercase;
    outline: none;
    overflow: hidden;
    position: relative;
    color: var(--color);
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.20);
    max-width: 320px;
    width: auto;
    text-decoration: none;
    letter-spacing: 1.3px;
    float: left;
    position: relative;
    transition: all 200ms;
    white-space: nowrap;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 150%;
    background: var(--color-1);
    background: var(--color);
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    -webkit-transform: translateX(-98%) translateY(-25%) rotate(45deg);
    transform: translateX(-120%) translateY(-14%) rotate(45deg);
}

.btn:hover {
    color: #fff;
    transition: all 200ms;
}

.btn:hover:after {
    -webkit-transform: translateX(-9%) translateY(-25%) rotate(45deg);
    transform: translateX(-9%) translateY(-25%) rotate(45deg);
}

.btn.w-100p {
    max-width: initial;
}

.btn.w-100p:after {
    height: 120vw;
    width: 130vw;
}

.btn:first-of-type {
    margin-right: 10px;
}

.btn:last-of-type {
    margin-left: 10px;
}

.btn:first-of-type:last-of-type {
    margin-left: 0px;
    margin-right: 0px;
}

.btn.with-icon {
    max-width: 370px;
    padding-left: 80px;
    padding-right: 30px;
    text-align: left;
}

.btn.with-icon .mdi {
    position: absolute;
    left: 25px;
    top: 50%;
    margin-top: -17px;
    font-size: 35px;
    line-height: 35px;
    z-index: 1;
}

.btn.with-icon:hover .mdi {
    color: #fff;
}

@media screen and (max-width: 600px) {
    .btn {
        padding: 17px 50px;
        width: 100%;
        white-space: break-spaces;
    }

    .btn:first-of-type {
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .btn:last-of-type {
        margin-left: 0px;
        margin-top: 10px;
    }

    .btn br {
        display: none;
    }

    .btn.w-100p {
        margin: max(3vw, 30px);
    }

    .btn.w-100p:after {
        height: 100vw;
        width: 140vw;
    }
}
