.backtotop {
    position: fixed;
    right: 50px;
    bottom: 50px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.backtotop.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.backtotop::after {
    position: absolute;
    font-family: 'unicons';
    content: '';
    border-top: 2px solid #4f80ff;
    border-right: 2px solid #4f80ff;
    transform: translate(-50%, -50%) rotate( -45deg);
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    color: #ecedf3;
    left: 50%;
    top: 55%;
    height: 15px;
    width: 15px;
    cursor: pointer;
    display: block;
    z-index: 1;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.backtotop:hover::after {
    opacity: 0;
}

.backtotop::before {
    transform: translate(-50%, -50%) rotate( -45deg);
    position: absolute;
    font-family: 'unicons';
    border-top: 2px solid #799eff;
    border-right: 2px solid #799eff;
    content: '';
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    opacity: 0;
    background-image: linear-gradient(298deg, var(--red), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    left: 50%;
    top: 55%;
    height: 15px;
    width: 15px;
    cursor: pointer;
    display: block;
    z-index: 2;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

.backtotop:hover::before {
    opacity: 1;
}

.backtotop svg path {
    fill: none;
}

.backtotop svg.progress-circle path {
    stroke: #4f80ff;
    stroke-width: 4;
    box-sizing: border-box;
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

body.light .backtotop {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

body.light .backtotop::after {
    color: #1f2029;
}

body.light .backtotop svg.progress-circle path {
    stroke: #1f2029;
}