body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    padding: 5px;
    margin: 2px;
    color: white;
    text-decoration: none;
    background: rgb(197, 197, 197);
    width: 100px;
    text-align: center;
    transition: 0.47s;
}

a:hover {
    background: purple;
}