/*--------------------------------------------------------------
    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;
    }

    .back-to-top-icon i:before { 
        margin: 0;
        content: "";
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 100 100' style='enable-background:new 0 0 100 100;' xml:space='preserve'%3E%3Cpath d='M41.2,44.1c2.5-3.9,4.1-7.7,5.1-10.5c0.5-1.4,0.8-2.6,1-3.3c0.1-0.4,0.2-0.7,0.2-0.9c0,0,0,0,0-0.1v-0.2c0,0,0,0,0.2,0 l7,0.1v0.6c0,0.2,0.1,0.4,0.1,0.7c0.1,0.8,0.4,2,0.8,3.4c0.8,2.9,2.1,6.8,4.4,10.8c4.5,8,12.4,16.6,26.9,19.2l-1.3,7.1 c-16.2-3-25.6-12.3-31-21.3c-1.5-1.5-3.1-3-4.6-4.5c-1,1-2,2-3,3c0.2-0.1,0.3-0.2,0.3-0.2c0,0,0,0,0,0c-5.9,9-16.1,18.6-33.4,20.6 l-0.8-7.2C27.7,59.8,36.2,51.8,41.2,44.1z'/%3E%3C/svg%3E");
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 100 100' style='enable-background:new 0 0 100 100;' xml:space='preserve'%3E%3Cpath d='M41.2,44.1c2.5-3.9,4.1-7.7,5.1-10.5c0.5-1.4,0.8-2.6,1-3.3c0.1-0.4,0.2-0.7,0.2-0.9c0,0,0,0,0-0.1v-0.2c0,0,0,0,0.2,0 l7,0.1v0.6c0,0.2,0.1,0.4,0.1,0.7c0.1,0.8,0.4,2,0.8,3.4c0.8,2.9,2.1,6.8,4.4,10.8c4.5,8,12.4,16.6,26.9,19.2l-1.3,7.1 c-16.2-3-25.6-12.3-31-21.3c-1.5-1.5-3.1-3-4.6-4.5c-1,1-2,2-3,3c0.2-0.1,0.3-0.2,0.3-0.2c0,0,0,0,0,0c-5.9,9-16.1,18.6-33.4,20.6 l-0.8-7.2C27.7,59.8,36.2,51.8,41.2,44.1z'/%3E%3C/svg%3E");
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
        background: var(--wdtAccentTxtColor);
        width: 20px;
        height: 20px;
     }

    #back-to-top:hover .back-to-top-icon {
        margin-top: -4px;
    }

    #back-to-top:after {
        background-color: var(--wdtAccentTxtColor);
        content: "";
        display: block;
        height: 15px;
        margin: 0 auto;
        opacity: 0;
        position: absolute;
        left: 50%;
        top: 50%;
        text-align: center;
        text-indent: 0;
        width: 2px;
        -webkit-transform: translate(-50%, 50%);
        transform: translate(-50%, 50%);
        -webkit-transition: all .3s linear;
        transition: all .3s linear;
    }

    #back-to-top:hover:after {
        margin-top: 2px;
        opacity: 1;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    #back-to-top:active,
    #back-to-top:focus {
        outline: none;
    }


/*--------------------------------------------------------------
    Accents
--------------------------------------------------------------*/


    /* Primary */
    #back-to-top {
        background-color: var(--wdtPrimaryColor);
        -webkit-transition: all 500ms ease-in-out;
        transition: all 500ms ease-in-out;
        background-size: auto 200%;
        overflow: hidden;
        border: 1px solid var(--wdtPrimaryColor);
    }

    /* Secondary */
    #back-to-top:hover { background-color: var(--wdtSecondaryColor); }


/*--------------------------------------------------------------
    Responsive
--------------------------------------------------------------*/

    @media only screen and (max-width: 1280px) {

        .nav-is-visible #back-to-top {
            opacity: 0;
        }
    }