/*--------------------------------------------------------------
    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:var(--wdtHeadAltColor);
        mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.7 18'%3E%3Cpath d='M12.1,18V10.6H0V7.4H12.1V0L27.7,9Z'%3E%3C/path%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: linear-gradient(45deg, var(--wdtTertiaryColor),var(--wdtPrimaryColor), var(--wdtTertiaryColor)); background-size: 200% 100%; background-position: center right; border-radius:10px; }

    /* Secondary */
    #back-to-top:hover { background-position: center left; border-radius:10px; }


/*--------------------------------------------------------------
    Responsive
--------------------------------------------------------------*/

    @media only screen and (max-width: 1280px) {

        .nav-is-visible #back-to-top {
            opacity: 0;
        }
    }