@use '../root' as *;

.back-to-top {
    border-radius: 50%;
    background-color: $theme-color;
    width: 50px;
    height: 50px;
    line-height: 50px;
    color: $white;
    font-size: 18px;
    position: fixed;
    display: inline-block;
    z-index: 99;
    right: 30px;
    bottom: 30px;
    @include transition;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    &:hover {
        background-color: $title-color;
    }

    &.show {
        opacity: 1;
        visibility: visible;
        transform: translate(0);
    }
}