/*--------------------------------------------------------------
    Totop
--------------------------------------------------------------*/

    #back-to-top {
        position: fixed;
        display: none;
        text-decoration: none;
        bottom: 20px;
        right: 20px;
        overflow: hidden;
        width: 40px;
        height: 40px;
        border: none;
        text-indent: 100%;
        z-index: 9;
        text-indent: -9999px;
        
    }

    .back-to-top-icon {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        top: 50%;
        transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        color: var(--wdtAccentTxtColor);
        -webkit-transition: all .3s linear;
        -moz-transition: all .3s linear;
        -o-transition: all .3s linear;
        -ms-transition: all .3s linear;
        transition: all .3s linear;
        text-indent: 0;
        text-align: center;
        font-size: 20px;
        line-height: 1;
        opacity:0
    }

    .back-to-top-icon i:before { margin: 0; }

    #back-to-top:hover .back-to-top-icon {
        margin-top: -4px;
    }

    #back-to-top:after {
        content:"";
        height:12px;
        width:16px;
        display:flex;
        background-color: currentColor;
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M98.58,50.33,56.91,92H35.18L69,58.18H.85V42.82H69.36L35.53,9H57.26L87.72,39.46l3.35,3.36Z'/%3E%3C/svg%3E");
        mask-repeat:no-repeat;
        mask-position:center;
        margin:auto;
        bottom:0;
        align-items:center;
        justify-content:center;
        transform:rotate(-90deg);
        margin-top:14px;
    }

    #back-to-top:hover:after {
        animation: backtotop-arrow 0.3s linear;
        
    }

@keyframes backtotop-arrow{
    0%{ transform:rotate(-90deg) translateX(0); opacity:1; }
    49%{ transform:rotate(-90deg) translateX(20px); opacity:0; }
    50%{ transform:rotate(-90deg) translateX(-20px); opacity:0; }
    100%{ transform:rotate(-90deg) translateX(0); opacity:1; }
}

    #back-to-top:active,
    #back-to-top:focus {
        outline: none;
    }


/*--------------------------------------------------------------
    Accents
--------------------------------------------------------------*/


    /* Primary */
    #back-to-top { background-color: var(--wdtSecondaryColor); color: var(--wdtAccentTxtColor);
        box-shadow: 0 0 15px 5px rgba(var(--wdtAccentTxtColorRgb),0.3); -webkit-box-shadow: 0 0 15px 5px rgba(var(--wdtAccentTxtColorRgb),0.3); }

    /* Secondary */
    #back-to-top:hover { background-color: var(--wdtLinkHoverColor); }


/*--------------------------------------------------------------
    Responsive
--------------------------------------------------------------*/

    @media only screen and (max-width: 1280px) {

        .nav-is-visible #back-to-top {
            opacity: 0;
        }
    }