.back-to-top {
    display: none;
    position: fixed;
    bottom: 65px;
    margin: 0;
    z-index: 999;
    border-bottom: 0;
    transition: all .3s ease 0s;
    -webkit-transition: all .3s ease 0s;
    -moz-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    right: 25px;
    border: 1px solid var(--bs-primary);
}

.back-to-top > span {
    text-align: center;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-decoration: none;
    transition: all .2s ease 0s;
    -webkit-transition: all .2s ease 0s;
    -moz-transition: all .2s ease 0s;
    -o-transition: all .2s ease 0s;
    background-color: var(--bs-black);
    margin: 0;
}

.back-to-top > span i {
    font-size: 1rem;
    color: var(--bs-white);
    line-height: 3rem;
    margin-right: 0;
}

.back-to-top:is(:hover, :focus) > span i {
    color: var(--bs-primary)!important;
}

.spin {
    -webkit-animation: spin 6s linear infinite;
    -moz-animation: spin 6s linear infinite;
    animation: spin 6s linear infinite;
}

@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}

.pulse {
    -webkit-animation: pulse 4s linear infinite;
    -moz-animation: pulse 4s linear infinite;
    animation: pulse 4s linear infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.95);
    }
}