body {
    margin: 0;
    padding: 0;
    background: rgb(26, 32, 43);
    font-family: 'Montserrat', sans-serif;
}

.middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 400px;
    margin: 3em auto;
}

.btn {
    display: flex;
    justify-content: center;

    /* spacing and stlying */
    margin: 2rem 0;
    border: 2px solid rgb(224, 131, 102);
    padding: 1rem 4rem;

    /* styling fonts */
    color: blanchedalmond;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;

    /* hide extra stuff */
    position: relative;
    overflow: hidden;
}

/* .btn:hover {
    color: coral;
} */

.btn::before {
    background: rgb(224, 131, 102);
    /* add an empty state two"" */
    content: "";

    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;

    /* add animation */
        /* translate (X, Y) */
    transform: translate(-50%, -50%);
    z-index: -1;
    /* transition what is being transformed,
    how long, ease */
    transition: all 0.6s ease;
}

.btn1::before {
    width: 0;
    height: 100%;
}

.btn1:hover::before {
    width: 100%;
}


/* button 2 */

.btn2::before {
    width: 100%;
    height: 0;
}

.btn2:hover::before {
    height: 100%;
}

/* button 3 */

.btn3::before {
    width: 100%;
    height: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.btn3:hover::before {
    height: 500%;
}

.btn4::before {
    width: 50%;
    height: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
}

.btn4:hover::before {
    height: 500%;
}



