.pagetop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}
.pagetop a {
    display: block;
    background-color: transparent;
    text-align: center;
    color: #222;
    font-size: 12px;
    text-decoration: none;
    padding: 0px 0px;
    transition: 0.2s;
}

.pagetop a:hover {
    display: block;
    background-color: transparent;
    text-align: center;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    padding: 0px 0px;
    transition: 0.5s;
}
