body {
    padding: 10px;
    background-color: black;
    color: white;
}

#main_game {
    border: 1px solid black;
    width: 100%;
    height: 100%;
    color: black;
    max-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    cursor: none;
    -webkit-tap-highlight-color: transparent;
}

summary {
    cursor: default;
}

summary:hover {
    font-weight: bold;
}

fieldset {
    border: 1px solid #ccc;
}

* {
    font-family: monospace;
    box-sizing: border-box;
}

#all {
    width: 910px;
    margin: 0 auto;
    text-align: center;
}

#c {
    width: 256px;
    height: 384px;
    border: 1px solid #ccc;
    padding: 4px;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -o-crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.more {
    padding: 10px;
    text-align: left;

    display: inline-block;
    width: 200px;
    padding: 0;
    vertical-align: top;
    margin-top: 20px;
}

.pal {
    width: 680px;
    margin: 0 auto;
    text-align: left;
}

.slidecontainer {
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #a59f9f;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fcfcfc;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.lock {
    min-width: 80px;
    width: 80px;
    display: inline-block;
    vertical-align: top;
    padding: 5px;
}

.lock:hover {
    font-weight: bold;
}

.lock>input {
    opacity: 0;
    position: absolute;
}

.lock>input+span:after {
    content: "[ ]";
}

.lock>input:checked+span:after {
    content: "[L]";
}

.pal {
    margin-bottom: 5px;
    white-space: nowrap;
}

.slider>b,
.pal>b {
    display: inline-block;
    width: 45px;
}

#palBody>* {
    vertical-align: top;
}

.palItems {
    display: flex;
    width: 610px;
}

.palItem {
    width: 24px;
    height: 24px;
    border: 1px solid black;
    margin: -1px 0 0 -1px;
}

.palItem.active {
    outline: 2px solid white;
    position: relative;
    z-index: 1;
}

.palItem:hover {
    position: relative;
    z-index: 2;
    outline: 5px solid white !important;
}

.toolbar {
    margin: 10px 0;
}

.btn,
.toolbar>button {
    background-color: #fff;
    display: inline-block;
    padding: 16px 2px;
    border: 1px solid black;
    color: black;
    text-decoration: none;
    font-size: 1em;
}

.btn:hover,
.toolbar>button:hover {
    outline: 3px solid black;
}

.btn.sm {
    padding: 1px 4px;
}

#say {
    font-size: 1.5em;
    position: absolute;
    top: 20px;
    left: 50%;
    background-color: white;
    border: 1px solid black;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    min-height: 50px;
    padding: 20px;
    text-align: start;
    user-select: none;
}

#say:empty {
    display: none;
}

fieldset>label {
    display: block;
}

.colorComponent {
    display: inline-block;
}

#myProgress {
    width: 100%;
    background-color: grey;
}

#myBar {
    width: 1%;
    height: 30px;
    background-color: rgb(79, 82, 79);
}