/*
.button {
    position: relative;
    overflow: hidden;
    border: 1px solid #18181a;
    color: var(--base-color) !important;
    display: inline-block;
    font-size: 15px;
    line-height: 15px;
    padding: 5px 29px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button span:first-child {
    position: relative;
    transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 10;
}

.button span:last-child {
    color: #ffffff;
    display: block;
    position: absolute;
    bottom: 10;
    transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 100;
    opacity: 0;
    top: 80%;
    left: 30%;
    transform: translateY(225%) translateX(-50%);
    height: 14px;
    line-height: 15px;
}

.button:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius:5%;
    padding: 5px 29px;
    background-color: var(--base-color) !important; 
    transform-origin: bottom center;
    transition: transform 600ms;
    transform: skewY(9.3deg) scaleY(0);
    z-index: 50;
}

.button:hover:after {
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
}

.button:hover span:last-child {
    transform: translateX(-50%) translateY(-100%);
    opacity: 1;
    transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}
*/

.button {
    position: relative;
    overflow: hidden;
    border: 1px solid #18181a;
    color: var(--base-color) !important;
    text-align: center;
    display: inline-block;
    font-size: 15px;
    line-height: 15px;
    padding: 5px 29px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button span:first-child {
    position: relative;
    transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 10;
}

.button span:last-child {
    color: #ffffff;
    text-align: center;
    position: absolute;
    bottom: 10;
    transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
    z-index: 100;
    opacity: 0;
    top: 80%;
    left: 50%;
    transform: translateY(225%) translateX(-50%);
    height: 14px;
    line-height: 15px;
}

.button:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius:5%;
    padding: 5px 29px;
    background-color: var(--base-color) !important; 
    transform-origin: bottom center;
    transition: transform 600ms;
    transform: skewY(9.3deg) scaleY(0);
    z-index: 50;
}

.button:hover:after {
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
}

.button:hover span:last-child {
    transform: translateX(-50%) translateY(-100%);
    opacity: 1;
    transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}