@font-face {
    font-family: 'gem_6x6regular';
    src: url('fonts/gem_6x6-webfont.woff2') format('woff2'),
    url('fonts/gem_6x6-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gem_8x8regular';
    src: url('fonts/gem_8x8-webfont.woff2') format('woff2'),
    url('fonts/gem_8x8-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'gem_12x8regular';
    src: url('fonts/gem_12x8-webfont.woff2') format('woff2'),
    url('fonts/gem_12x8-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ataritos8x8';
    src: url('ataritos8x8-webfont.woff2') format('woff2'),
    url('ataritos8x8-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 15px 0 0 0;

    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;

    position: relative;
    /*zoom: 200%;*/
}

#desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #00e700;
}

#gemNav {
    background-color: #fff;
    border-bottom: 2px solid black;
    font-family: 'gem_8x8regular', sans-serif;
    font-smooth: never;
    height: auto;
    letter-spacing: 0.1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999999;
}

#gemNav span {
    display: inline-block;
    text-align: center;
    width: 16px;
}

#gemNav ul {
    display: flex;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 0.7em;
    list-style: none;
    margin: 2px 0 0 40px !important;
    padding: 0;
}

#gemNav ul li {
    color: #000;
    cursor: pointer;
    display: inline;
    display: inline-flex;
    text-decoration: none;
    padding: 0 20px 2px;
}

#gemNav ul li:hover {
    color: #fff;
    background-color: #000;
}

#gemNav ul li::selection {
    background-color: #fff;
    color: #000;
}

#gemNav ul li:hover ul {
    display: block;
}

#gemNav ul li ul {
    background-color: #fff;
    border: 2px solid #000;
    display: none;
    left: -4px;
    position: absolute;
    top: 18px;
}

#gemNav ul li ul li {
    display: block;
    padding-left: 40px;
}

#gemNav ul li ul li.separator {
    background-image: url(/style/gem/horiz_sep_l.gif);
    background-size: 20px;
    background-repeat: repeat-x;
    background-position-x: 4px;
}

#gemNav ul li ul li.separator:hover {
    color: inherit;
    background-color: inherit;
}

.gemWindow {
    background-color: #fff;
    border: 2px solid #000;
    font-family: 'gem_8x8regular', sans-serif;
    font-size: 1.4rem;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    left: 20px;
    top: 10px;
    position: absolute;
    width: 600px;
}

.gemWindow .monospaced span {
    display: inline-block;
    width: 15px;
}

.gemWindow img {
    -ms-interpolation-mode: nearest-neighbor;
}

.gemWindow .uiControl {
    height: 20px;
    visibility: hidden;
    width: 20px;
}

.gemWindow .topBar {
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: space-between;
}

.gemWindow .topBar span::selection {
    background-color: #fff;
    color: #000;
}

.gemWindow .topBar .uiControl {
    height: 18px;
    width: 20px;
}

.gemWindow .topBar .close {
    border-right: 2px solid #000;
}

.gemWindow .topBarArea {
    cursor: pointer;
    flex-grow: 1;
    height: 16px;
    line-height: 20px;
    overflow: hidden;
    padding-top:2px;
    text-align: center;
}

.gemWindow .gemPath {
    background-color: #fff;
    letter-spacing: 0.1rem;
    padding: 0 20px;
}

.gemWindow .topBar .maximise {
    border-left: 2px solid #000;
}

.gemWindow .infoBar {
    border-bottom: 2px solid #000;
    display: flex;
    height: 17px;
    line-height: 20px;
    margin-top: -1px;
    padding: 0 20px;
}

.gemWindow .windowBody {
    display: flex;
}

.gemWindow .windowContent {
    min-height: 10px;
    flex-grow: 1;
    font-family: 'gem_6x6regular', sans-serif;
    font-size: 0.7rem;
    padding: 10px;
}

.gemWindow .windowContent img {
    max-width: 100%;
}

.gemWindow .windowContent h1 {
    font-family: 'gem_12x8regular', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    margin-top: 10px;
}

.gemWindow .windowContent h1 img {
    margin-top: -10px;
    image-rendering: auto;
}

.gemWindow .windowContent h2 {
    font-family: 'gem_8x8regular', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
}

.gemWindow .windowBody .verticalScroll {
    border-left: 2px solid #000;
    display: flex;
    flex-direction: column;
    width: 20px;
}

.gemWindow .verticalScroll .verticalScrollBar {
    flex-grow: 1;
}

.gemWindow .horizontalScroll {
    border-top: 2px solid #000;
    display: flex;
    height: 18px;
}

.gemWindow .horizontalScroll .uiControl {
    height: 16px;
    width: 16px;
}

.gemWindow .horizontalScroll .scrollLeft {
    display: none;
    margin: 2px 2px 0 2px;
    transform: rotate(-90deg);
}

.gemWindow .horizontalScroll .scrollRight {
    display: none;
    margin: 2px 2px 0 2px;
    transform: rotate(90deg);
}

.gemWindow .horizontalScroll .horizontalScrollBar {
    border-right: 2px solid #000;
    flex-grow: 1;
}

.gemWindow .horizontalScroll .resize {
    height: 18px;
    width: 20px;
}

.gemWindow.active {
    box-shadow: 4px 4px 0 2px #000;
}

.gemWindow.active .topBarArea {
    background-image: url(gem/window_bar_l.gif);
    background-size: 4px;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.gemWindow.active .uiControl {
    visibility: visible;
}

.gemWindow.active .horizontalScroll .scrollRight,
.gemWindow.active .horizontalScroll .scrollLeft {
    display: inline;
}

.gemWindow .scrollUp {
    border-bottom: 2px solid #000
}

.gemWindow .scrollDown {
    border-bottom: 2px solid #000;
    transform: rotate(180deg);
}

.gemWindow.active .horizontalScroll .resize,
.gemWindow.active .horizontalScroll .horizontalScrollBar {
    border-left: 2px solid #000;
}
