body{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
a{
    position: relative; 
    text-decoration: none;
    color: #351;
    font-size: 40px;
    font-family: sans-serif;
    border: 3px solid #351;
    padding: 40px 80px;
    transition: all 1s;
    overflow: hidden;
    box-shadow: 5px 5px 5px rgba(51, 85, 17, 0.5);
    border-radius: 15px  ;
    
}
a::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #351;
    z-index: -1;
    transition: all 0.8s;
    transform: translateY(-100%);

    
}
a:hover::before{
    transform: translateY(0);
    
}
a:hover{
    color: white;
}