.button {
    height: 3rem;
    width: 12rem;
    position: relative;
    background-color: transparent;
    cursor: pointer;
    border: 2px solid #252525;
    overflow: hidden;
    border-radius: 1.875rem;
    color: #333;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-txt {
    z-index: 1;
    font-weight: 800;
    font-size: 1rem;
}

.type1::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.5s ease-in-out;
    background-color: #333;
    border-radius: 1.875rem; 
    visibility: hidden;
    height: 0.625rem; 
    width: 0.625rem; 
    z-index: -1;
}

.button:hover {
    color: #fff;
    border: none;
}

.type1:hover::after {
    visibility: visible;
    transform: scale(100) translateX(0.125rem);
}