/* --- updown.css --- */

.mg-go-up,
.mg-go-down {
    font-size: 14px;
    color: rgb(200, 200, 200);
    background-color: rgb(100, 100, 100);
    padding: 3px;
    margin: 5px;
    border: 2px solid rgb(150, 150, 150);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -khtml-border-radius: 50%;
    border-radius: 50%;
    display: none;
    position: fixed;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    text-shadow: 0 1px 2px #000, 0 0 10px #E0F1FF;
    opacity: .5;
    text-align: center;
    width: 32px;
    height: 32px;
    line-height: 22px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-decoration: none;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.mg-go-up {
    bottom: 70px;
}

.mg-go-down {
    bottom: 35px;
}

.mg-go-down:hover,
.mg-go-up:hover {
    opacity: 1;
}

.mg-go-down:hover {
    background-color: var(--accent-color);
}

.mg-go-up:hover {
    background-color: #4791FF;
}

.mg-go-down:active,
.mg-go-up:active {
    opacity: 1;
}

.mg-go-down:active {
    background-color: var(--accent-color);
}

.mg-go-up:active {
    background-color: #4791FF;
}

.mg-go-up i,
.mg-go-down i {
    font-size: 16px;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .mg-go-down {
        display: none !important;
    }

    .mg-go-down:hover,
    .mg-go-up:hover {
        opacity: .5;
        background-color: rgb(100, 100, 100);
    }

    .mg-go-down:active,
    .mg-go-up:active {
        opacity: 1;
    }

    .mg-go-up:active {
        background-color: #4791FF;
    }
}
