#gotop {
    display: none;
    position: fixed;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: transparent;
    cursor: pointer;
    outline: none;
    border: 0;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}
#gotop span {
    width: 50px;
    height: 50px;
    background-color: #000;
    border: 2px solid #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#gotop span:hover,
#gotop span:focus,
#gotop span:active {
    background-color: #555;
    border: 2px solid #555;
    color: #fff;
}
#gotop span::before {
    content: "\e1d1";
    font-family: "gwicon";
    font-size: 1.25rem;
    color: #fff;
    line-height: 50px;
}
#gotop span:hover::before {
    color: #fff;
}
#gotop span:focus::before {
    color: #fff;
}
#gotop span:active::before {
    -webkit-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

@media(max-width: 992px) {
    #gotop {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    #gotop span {
        width: 40px;
        height: 40px;
    }
    #gotop span::before {
        font-size: 1.125rem;
    }
}

@media(max-width:768px) {
    #gotop {
        width: 35px;
        height: 35px;
    }
    #gotop span {
        width: 35px;
        height: 35px;
    }
    #gotop span::before {
        font-size: 1rem;
    }
}

/* Animations */
.btnEntrance {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-name: btnEntrance;
}

/* fadeInUp */
@keyframes btnEntrance {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.btnExit {
    animation-duration: 0.25s;
    animation-fill-mode: both;
    animation-name: btnExit;
}
/* fadeOutDown */
@keyframes btnExit {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
}