.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: calc(50% + 40px);
    transform: translateX(-50%);
    width: 51px;
    height: 51px;
    border-radius: 10px;
    background: var(--shade-3);
    padding: 8px;
    cursor: pointer;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.scroll-to-top i {
    font-size: 20px;
    color: var(--shade-1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.scroll-to-top:active {
    transform: translate(calc(-50%), 1px);
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        left: 50%;
        transform: translateX(-50%);
        bottom: 100px;
    }
}