body {
    font-family: "Lucida Console", monospace;
}

#game {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    border: 1px solid black
}

#orbit {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border: 1px solid black
}

#back {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border: 1px solid black
}

#diag {
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid;
    background-color: white;
}

#bodies {
    border: 1px solid;
    text-overflow: ellipsis;
    display: inline-block;
}

#bodies th {
    width: 70px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bodies td {
    width: 70px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bodies td:nth-child(1) {
    width: 40px;
    max-width: 40px;
}
#bodies td:nth-child(2) {
    width: 40px;
    max-width: 40px;
}
#bodies td:nth-child(3) {
    width: 40px;
    max-width: 40px;
}

#bodies th:nth-child(1) {
    width: 40px;
    max-width: 40px;
}
#bodies th:nth-child(2) {
    width: 40px;
    max-width: 40px;
}
#bodies th:nth-child(3) {
    width: 40px;
    max-width: 40px;
}


/*
thanks WebDevSimplified https://github.com/WebDevSimplified/css-slider-toggle
 */

input[type="checkbox"].toggle {
    opacity: 0;
    position: absolute;
    left: -9000px;
    top: -9000px;
}

input[type="checkbox"].toggle + label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

input[type="checkbox"].toggle + label::before {
    content: "";
    width: 2em;
    height: 1em;
    background-color: hsl(0, 80%, 90%);
    border-radius: 1em;
    margin-right: .25em;
    transition: background-color 200ms ease-in-out;
}

input[type="checkbox"].toggle + label::after {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    content: "\2715";
    font-size: .5em;
    /*height: .9em;*/
    left: .2em;
    width: 1.8em;
    height: 1.8em;
    background-color: hsl(0, 80%, 60%);
    color: white;
    border-radius: 1em;
    transition: background-color 200ms ease-in-out, transform 200ms ease-in-out;
}

input[type="checkbox"].toggle:focus + label::before {
    outline: 1px solid black;
}

input[type="checkbox"].toggle:checked + label::before {
    background-color: hsl(100, 70%, 90%);
}

input[type="checkbox"].toggle:checked + label::after {
    content: "\2713";
    transform: translateX(100%);
    background-color: hsl(100, 70%, 60%);
}
