/*
Back to top button
*/
#back-top {
    position: fixed;
    bottom: 40px;
    margin-left: 20px;
    z-index: 499;
    /*IE6 hack */
    _position: absolute;
    _top: expression(documentElement.scrollTop+body.scrollTop);
    _margin-top: 500px;

}

body {
    /*IE6 hack */
    _background: url(null) fixed;
}

#back-top a, #back-top-prev a {
    width: 40px;
    display: block;
    text-align: center;
    font: 11px/100% Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    /* background color transition */
    -webkit-transition: 500ms;
    -moz-transition: 500ms;
    transition: 500ms;

}

/* arrow icon (span tag) */
#back-top span#button, #back-top-prev span#button-prev {
    width: 40px;
    height: 40px;
    display: block;
    margin-bottom: 7px;
    background-color: #ddd;
    background-position: center 7px;
    background-repeat: no-repeat;

    background-image: url('up-arrow.png');
    opacity: 0.6;
    filter: alpha(opacity=60);
    /* rounded corners */
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    /* background color transition */
    -webkit-transition: 500ms;
    -moz-transition: 500ms;
    transition: 500ms;
}

#back-top a:hover span#button, #back-top-prev a:hover span#button-prev {
    opacity: 1;
    filter: alpha(opacity=100);
}

#edit-scroll-to-top-preview {
    float: right;
    width: 100%;
}

#back-top a span#button > span {
    display: block;
    font-size: 9px;
    font-weight: bold;
    padding-top: 25px;
    line-height: 1em;
}

@media (max-width: 1150px) {
    #back-top {
        display: none !important;
    }
}
