nav {
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    padding: 0;
    list-style: none;
    background: #a8d5a2;
    margin-bottom: 20px;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
}

nav li {
    display: inline-block;
    position: relative;
    line-height: 21px;
    text-align: left;
    cursor: pointer;
}

nav li a {
    display: block;
    padding: 8px 25px;
    color: #2d501c;
    text-decoration: none;
    font-family: "Courier New", monospace;
}

nav li a:hover {
    color: #3a6428;
    background: #b8e5b2;
    background-image: linear-gradient(to bottom, #c8f5c2, #a8d5a2);
}

nav li:hover ul.dropdown {
    display: block;
}

nav li ul.dropdown {
    display: none;
    list-style: none;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    border-top: none;
    padding: 0;
    min-width: 150px;
    background: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    position: absolute;
    top: 23px;
    z-index: 1;
}

nav li ul.dropdown li {
    display: block;
}

button,
input[type=button],
input[type=reset],
input[type=submit],
input[type=color],
::-webkit-file-upload-button,
.greensteam-button,
button {
    color: #2d501c;
    background-color: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    cursor: pointer;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    font-weight: lighter;
    text-align: center;
    -webkit-font-smoothing: none;
    border-radius: 0;
    font-family: "Courier New", monospace;
}

button:active,
input[type=button]:active,
input[type=reset]:active,
input[type=submit]:active,
input[type=color]:active,
::-webkit-file-upload-button:active,
.greensteam-button:active,
button:active {
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
}

button:focus,
input[type=button]:focus,
input[type=reset]:focus,
input[type=submit]:focus,
input[type=color]:focus,
::-webkit-file-upload-button:focus,
.greensteam-button:focus,
button:focus {
    outline: 1px dashed #2d501c;
    outline-offset: -4px;
}

::file-selector-button {
    color: #2d501c;
    background-color: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    height: 25px;
    min-width: 75px;
    cursor: pointer;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    font-weight: lighter;
    text-align: left;
    -webkit-font-smoothing: none;
    font-family: "Courier New", monospace;
}

::file-selector-button:active {
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
}

::file-selector-button:focus {
    outline: 1px dashed #2d501c;
    outline-offset: -4px;
}

input[type=checkbox] {
    vertical-align: middle;
    appearance: none;
    width: 15px;
    height: 15px;
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    background: #e8f0e6;
}

input[type=checkbox]:focus {
    outline: 1px dotted #2d501c;
    outline-offset: -2px;
}

input[type=checkbox]:checked {
    background: #a8d5a2;
    background-image: linear-gradient(45deg, #a8d5a2 25%, #b8e5b2 25%, #b8e5b2 50%, #a8d5a2 50%, #a8d5a2 75%, #b8e5b2 75%, #b8e5b2 100%);
    background-size: 4px 4px;
}

input[type=radio] {
    vertical-align: text-bottom;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #e8f0e6;
    border: 1px solid #808080;
    border-radius: 50%;
}

input[type=radio]:focus {
    outline: 1px dotted #2d501c;
}

input[type=radio]:checked {
    background: radial-gradient(circle, #2d501c 30%, #e8f0e6 31%);
}

input[type=text],
input[type=tel],
input[type=search],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
input[type=date],
input[type=datetime-local],
input[type=month],
input[type=week],
input[type=time],
input[list],
select,
textarea {
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    color: #2d501c;
    background: #f8f8f8;
    font-family: "Courier New", monospace;
}

input[type=text]:focus,
input[type=tel]:focus,
input[type=search]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=number]:focus,
input[type=date]:focus,
input[type=datetime-local]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=time]:focus,
input[list]:focus,
select:focus,
textarea:focus {
    outline: 1px dotted #2d501c;
    outline-offset: -3px;
}

.greensteam-slider-track {
    background: #d0d0d0;
    height: 4px;
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    margin: 6px 0;
}

.greensteam-slider-thumb {
    appearance: none;
    background: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    width: 8px;
    height: 16px;
    position: relative;
    top: -7px;
    border-radius: 0;
}

input[type=range] {
    appearance: none;
    min-width: 200px;
    color: #2d501c;
    background: none;
    position: relative;
}

input[type=range]::before,
input[type=range]::after {
    display: inline;
    position: absolute;
    font-size: 10px;
    top: 10px;
    font-family: monospace;
    color: #2d501c;
}

input[type=range]::-webkit-slider-runnable-track {
    background: #d0d0c0;
    height: 4px;
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    margin: 6px 0;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    background: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    width: 8px;
    height: 16px;
    position: relative;
    top: -7px;
    border-radius: 0;
}

.window,
.list-wrapper,
.box {
    position: static;
    background-color: #c8e8c2;
    background-image: linear-gradient(to bottom, #d8f8d2, #b8d8b2);
    padding: 10px;
    box-sizing: border-box;
    max-width: 780px;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
}

.titlebar,
.list-wrapper:not(.no-resize)::before,
.window:not(.headless)::before {
    display: block;
    position: relative;
    margin-bottom: 1em;
    width: 100%;
    height: 18px;
    line-height: 18px;
    text-indent: 24px;
    background-image: url("steamico.png"), url("minimize.png"), url("close.png");
    background-repeat: no-repeat;
    background-position: top left, top right 20px, top right;
    background-color: #b0d0aa;
    color: #2d501c;
    font-family: "Courier New", monospace;
}

.window:not(.headless):before {
    content: attr(name);
}

progress {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 90%;
    margin: 12px auto;
    margin-top: 18px;
    height: 26px;
    box-sizing: border-box;
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    background: #f0f0f0;
}

progress::-webkit-progress-bar {
    background: #f0f0f0;
    padding: 4px;
}

progress::-webkit-progress-value {
    height: 16px;
    background: repeating-linear-gradient(45deg, #8aab82, #8aab82 8px, #a8c5a2 1px, #a8c5a2 12px);
}

::-webkit-scrollbar,
::-webkit-scrollbar-corner {
    width: 18px;
    background-color: #b0d0aa;
}

::-webkit-scrollbar-thumb {
    background-color: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
}

::-webkit-scrollbar-button {
    width: 18px;
    height: 18px;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    background: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
}

body {
    background-color: #ffffff;
    font-family: "Courier New", monospace;
    color: #2d501c;
    font-size: 14px;
    image-rendering: pixelated;
    margin: 20px 20px;
    background-image:
        linear-gradient(rgba(200, 200, 200, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

::selection {
    background-color: #d8e8d2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 3px 12px 12px;
    font-family: "Courier New", monospace;
}

h1,
h2 {
    color: #3a6428;
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 16px;
}

p {
    text-align: left;
    margin: 12px 12px 12px;
    color: #2d501c;
    font-family: "Courier New", monospace;
}

fieldset {
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    background: #e8f0e6;
}

code {
    background: #f0f0f0;
    padding: 0 3px;
    font-family: "Courier New", monospace;
    color: #3a6428;
}

hr {
    margin: 20px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #a8d5a2, transparent);
}

.window,
.box {
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
}

.window::before,
.titlebar,
legend {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #2d501c;
    font-weight: bold;
    font-family: "Courier New", monospace;
}

img {
    border: solid 2px #a8d5a2;
}

a {
    text-decoration: none;
    color: #3a6428;
    font-family: "Courier New", monospace;
}

a:hover {
    text-decoration: underline;
    color: #2d501c;
}

.hide-back,
.upload-toolbar,
header {
    padding: 10px;
    background-color: #c8e8c2;
    background-image: linear-gradient(to bottom, #d8f8d2, #b8d8b2);
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    margin-bottom: 1em;
}

:root,
:root .theme-light {
    --bg: #ffffff;
    --text: #2d501c;
    --button-bg: #a8d5a2;
    --button-text: #2d501c;
    color-scheme: light;
}

:root a {
    color: #3a6428;
}

.breadcrumb {
    color: #2d501c;
    background-color: #a8d5a2;
    background-image: linear-gradient(to bottom, #b8e5b2, #98c592);
    height: 100%;
    min-width: 75px;
    cursor: pointer;
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    font-weight: lighter;
    text-align: center;
    -webkit-font-smoothing: none;
    border-radius: 0;
    padding: .25em .5em;
    line-height: 2em;
    font-family: "Courier New", monospace;
}

.dialog {
    background-color: #c8e8c2;
    background-image: linear-gradient(to bottom, #d8f8d2, #b8d8b2);
    border-top: solid 1px #c0c0c0;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    border-radius: 0;
}

input:not([type=checkbox], [type=range]),
select,
textarea {
    background-color: #f8f8f8;
    border-top: solid 1px #808080;
    border-bottom: solid 1px #c0c0c0;
    border-left: solid 1px #808080;
    border-right: solid 1px #c0c0c0;
    border-radius: 0;
    outline: 1px dotted #2d501c;
    color: #2d501c;
    font-family: "Courier New", monospace;
}

.tiles-mode ul.dir li {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    border-top: solid 1px #c0c0c0;
    background-color: #e8f8e6;
    box-sizing: border-box;
}

.tiles-mode ul.dir {
    gap: 0;
}

ul.dir li:nth-of-type(odd) {
    background-color: #f0f8f0;
    padding: 0.4em 0.4em 0.4em;
}

ul.dir li {
    display: block;
    list-style-type: none;
    padding: 0.4em 0.4em 0.4em;
    border-bottom: solid 1px #d0e0d0;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    border-top: solid 1px #c0c0c0;
    background-color: #e8f8e6;
    box-sizing: border-box;
}

.dir {
    border-bottom: solid 1px #808080;
    border-left: solid 1px #c0c0c0;
    border-right: solid 1px #808080;
    position: static;
    background-color: transparent;
    box-sizing: border-box;
    max-width: 780px;
    border-top: solid 1px #c0c0c0;
    min-height: 0;
}

.list-wrapper {
    min-height: 0;
    margin: auto;
    background-color: transparent;
}

body,
button,
select,
input {
    font-family: "Courier New", monospace;
    color: #2d501c;
    font-size: 14px;
    image-rendering: pixelated;
}

@media (min-width: 673px) {

    .hide-back .greensteam-button .icon,
    .upload-toolbar .greensteam-button .icon,
    .hide-back button .icon,
    .upload-toolbar button .icon,
    .breadcrumb .icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 672px) {

    .hide-back .greensteam-button .icon,
    .upload-toolbar .greensteam-button .icon,
    .hide-back button .icon,
    .upload-toolbar button .icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 14px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }

    .breadcrumb .icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 14px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }

    .greensteam-button,
    button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .greensteam-button .button-text,
    button .button-text {
        display: none !important;
    }
}

@media (max-width: 480px) {

    .hide-back .greensteam-button .icon,
    .upload-toolbar .greensteam-button .icon,
    .hide-back button .icon,
    .upload-toolbar button .icon,
    .breadcrumb .icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 12px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }
}

