body {
    -webkit-touch-callout: none;
}

.body_dark {
    background-color: black;
    color: white;
}

@media screen and (max-width: 500px) {
    .key {
        display: block;
        width: 100%;
        height: 5em;
    }    
}

/* Disable text selection on double click
From https://stackoverflow.com/questions/34471077/disable-text-selection-on-double-click
*/
.key {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.morse_player {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4rem;
    border: solid 2px black;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1em;
}

.morse_visual_on {
    background: greenyellow;
}

.morse_visual_off {
    background: gray;
}

.game2048_cell {
    height: 3em;
    width: 3em;
    font-size: 150%;
    text-shadow: 0 0 2px black;
    color: white;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em white;
}
.game2048_direction {
    background: white;
    font-size: 150%;
    color: black;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em white;
}


.game_fifteen_cell {
    height: 3em;
    width: 3em;
    font-size: 150%;
    text-shadow: 0 0 2px black;
    color: white;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em white;
}
.game_fifteen_direction {
    background: white;
    font-size: 150%;
    color: black;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em white;
}

.lightsoff_cell {
    height: 2em;
    width: 2em;
    font-size: 200%;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em black;
}

.cruncher_cell {
    height: 3em;
    width: 3em;
    font-size: 150%;
    text-shadow: 0 0 2px black;
    color: white;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em white;
}
.cruncher_direction {
    background: white;
    font-size: 150%;
    color: black;
    text-align: center;
    vertical-align: middle;
    border: solid 0.1em white;
}

.morse_chat_popup {
    border-bottom: 1px dashed;
}

#morse_table {
    border-collapse: collapse;
}

#morse_table th {
    text-align: center;
}

#morse_table td {
    border: 1px solid gray;
    padding-left: 1em;
    padding-right: 1em;
}

#morse_table td:first-child {
    text-align: center;
}

#morse_table td:nth-child(2) {
    white-space: nowrap;
}