main p a {
    float: none;
    position: static;
    display: inline;
    clear: none;
}

footer {
    clear: both;
    text-align: center;
    margin-top: 30px;
}

<link rel="stylesheet" href="vaja1.html">