canvas {
    image-rendering: pixelated;
}

body {
    background-color: black;
    color: white;
    font-family: monospace;
}

a {
    color: white;
}

input[type="file"]::-webkit-file-upload-button,
button,
textarea,
input[type="text"] {
    background-color: black;
    border: 2px solid white;
    color: white;
    padding: 3px 6px;
    margin-bottom: 4px;
    cursor: pointer;
}

select {
    background-color: black;
    border: 2px solid white;
    color: white;
}

textarea {
    resize: none;
    width: 500px;
    height: 200px;
}

button:hover {
    background-color: #333;
}

.tabs > button {
    margin-bottom: -2px;
    border-bottom: none;
}

.tabs > button.activeTabBtn {
    margin-bottom: -2px;
    padding-bottom: 5px;
}

.lockedTabBtn {
    color: gray;
    cursor: not-allowed;
}

.tab {
    min-width: 200px;
    border: 2px solid white;
    padding: 8px;
    display: none;
}

.activeTab {
    display: block;
}

.scrollCont {
    overflow: auto;
}

h2 {
    margin-block-start: 0;
    margin-block-end: 0;
}

fieldset {
    min-inline-size: auto;
}

.hiddentable td {
    vertical-align: top;
    padding: 4px;
}

#seltilecanv,
#selspritecanv,
#selcarcanv {    
    height: 256px;
    width: 256px;
    object-fit: contain;
}

input[type='text'],
input[type='number'] {
    appearance: none;
    border: none;
    padding: 0;
    background: none;
    margin: 0;
    color: white;
    border-bottom: 1px dashed white;
    width: 50px;
    font-family: monospace;
    margin-block-end: -1px;
}

#spritescanv,
#tilescanv,
#carscanv {
    padding-bottom: 8px;
}

span.link {
    text-decoration: underline;
    cursor: pointer;
}

.remap {
    margin-right: 16px;
}

.remap,
.pointer {
    cursor: pointer;
}

.horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.horizontal > * {
    margin: 4px;
}

.bordered {
    border: 1px solid white;    
    margin-right: 4px;
    padding-block: 2px;
    padding-inline: 4px;
}

.remapsq {
    display: inline-block;
    width: 12px;
    height: 12px;    
    margin: 2px;
    vertical-align: text-bottom;
}

.remapcl {
    border: 1px solid white;
    box-sizing: border-box;
}

.wrapedlist {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 240px;
    width: 128px;
    align-content: flex-start;
}

#selppalcanv {
    width: 100%;
}

.fontdescr {
    margin-right: 8px;
    min-width: max-content;
}

.fontinlist {
    margin: 8px 0;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.door {
    border: 1px solid white;
    padding: 2px;
    margin-bottom: 4px;
}

label {
    user-select: none;
}