.btn {
    text-align: center;
    background: var(--armygold);
    display: block;
    margin: 20px auto;
    padding: 5px;
    position: relative;
    width: fit-content;
    min-width:200px;
    max-width:400px;
    max-height: fit-content;
    height:fit-content;
}

.btn::before {
    /* bottom line left */
    content: '';
    display: block;
    position: absolute;
    bottom: 5px;
    left:5px;
    height: 1px;
    width: 0%;
    background-color: #000;
    /* hover off/ mouse out transition time */
    transition: all 0.1s;
}

.btn>div {
    position: relative;
    display: flex;
    flex-direction: column;
    width:100%;
    height:auto;
}
.btn>div::before, .btn>div::after {
    content: '';
    display: block;
    position: relative;
    height: 1px;
    width: 0%;
    background-color: #000;
}

.btn>div::before {
    /* top line */ 
    top: 0px;
    margin: auto;
    /* hover off/ mouse out transition time */
    transition: all 0.15s ease .45s;
    
}
.btn>div::after {
     /* bottom line right */
    position: absolute;
    bottom: 0px;
    right:0px;
     /* hover off/ mouse out transition time */
    transition: all 0.1s;
}
.btn a {
    position: relative;
    box-sizing: border-box;
    padding: .5em 1.2em;
    line-height: 100%;
    font-weight:530;
}
.btn a::before, .btn a::after {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    height: 0%;
    width: 1px;
    background-color: #000;
}

.btn a::before {
    /* side line left */   
    left: 0px;
     /* hover off/ mouse out transition time */
    transition: height 0.15s ease 0.3s;
}
.btn a::after {
    /* side line right */
    right: 0px;
     /* hover off/ mouse out transition time */
    transition: height 0.15s ease 0.3s;
}

.btn a, .btn a:hover {
    color: #000 !important;
}
.btn a, .btn input[type="button"], .btn input[type="submit"] {
    background-color: transparent;
    cursor: pointer;
    font-family: "GI", "GIfont", "Overpass", Arial, Helvetica, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
}

/* button animation */

.btn:hover>div::before {
    /* top line */
    width:100%; 
    /* hover mouse over transition time */
    transition: all 0.15s ease; 
}

.btn:hover a::before, .btn:hover a::after {
    /* vertical side line */
    height:100%; 
     /* hover mouse over transition time */ 
    transition: height 0.15s ease 0.3s;
}

.btn:hover>div::after, .btn:hover::before {
    /* bottom lines, 2 closing from each end */
    width:50%;
     /* hover mouse over transition time */
    transition: all 0.15s ease 0.45s;
}

/* variations - default is army gold */ 

/* DARK */

.btn.dark {
    background: #222;
}
.btn.dark::before, .btn.dark>div::before, .btn.dark>div::after, .btn.dark a::before, .btn.dark a::after {
    background-color: #FFF;
}
.btn.dark a, .btn.dark a:hover {
    color: #FFF !important;
}

/* GREEN */

.btn.green {
    background: #727365;
}
.btn.green::before, .btn.green>div::before, .btn.green>div::after, .btn.green a::before, .btn.green a::after {
    background-color: #CCC;
}
.btn.green a, .btn.green a:hover {
    color: #FFF !important;
}

/* GREY */

.btn.grey {
    background: #999;
}
.btn.grey::before, .btn.grey>div::before, .btn.grey>div::after, .btn.grey a::before, .btn.grey a::after {
    background-color: #FFF;
}
.btn.grey a, .btn.grey a:hover {
    color: #FFF !important;
}