/* =========================================================
   BACK TO TOP BUTTON
========================================================= */

#backTop {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--primary-color, #198754);
    color: #fff;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;

    z-index: 9999;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* SHOW BUTTON */

#backTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* HOVER */

#backTop:hover {
    background: var(--secondary-color, #146c43);
    transform: translateY(-4px);
}


/* FOCUS */

#backTop:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.35);
    outline-offset: 3px;
}


/* ICON */

#backTop i {
    transition: transform 0.3s ease;
}


#backTop:hover i {
    transform: translateY(-2px);
}


/* MOBILE */

@media (max-width: 575px) {

    #backTop {
        width: 42px;
        height: 42px;

        right: 15px;
        bottom: 15px;

        font-size: 18px;
    }

}