/* =========================================================
   WINDOWS 95 STYLE SCROLLBAR
   ========================================================= */


/* Hide the browser's normal scrollbar */

html, body {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}


/* MAIN SCROLLBAR */

#retro-scrollbar {
    position: fixed;

    top: 0;
    right: 0;

    width: 18px;
    height: 100vh;

    background: #c0c0c0;

    z-index: 9999;

    font-family: Arial, sans-serif;

    user-select: none;
}


/* UP AND DOWN BUTTONS */

.scroll-button {
    position: absolute;

    left: 0;

    width: 18px;
    height: 18px;

    padding: 0;

    background: #c0c0c0;

    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;

    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    box-sizing: border-box;

    font-size: 10px;
    line-height: 12px;

    text-align: center;

    color: #000000;

    cursor: default;
}


#scroll-up {
    top: 0;
}


#scroll-down {
    bottom: 0;
}


/* BUTTON LOOKS PRESSED */

.scroll-button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}


/* SCROLLBAR TROUGH */

#scroll-track {
    position: absolute;

    top: 18px;
    bottom: 18px;

    left: 0;

    width: 18px;

    background-color: #c0c0c0;

    /* old-school checker/dither pattern */

    background-image:
        linear-gradient(45deg, #808080 25%, transparent 25%),
        linear-gradient(-45deg, #808080 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #808080 75%),
        linear-gradient(-45deg, transparent 75%, #808080 75%);

    background-size: 4px 4px;

    background-position:
        0 0,
        0 2px,
        2px -2px,
        -2px 0px;
}


/* THE "ELEVATOR" */

#scroll-thumb {
    position: absolute;

    top: 0;
    left: 0;

    width: 18px;

    min-height: 25px;

    background: #c0c0c0;

    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;

    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;

    box-sizing: border-box;

    cursor: default;
}