body {
    background-color: black;
    color: lime;
    font-family: Menlo, "Lucida Console", monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0;
    overflow: hidden;
}

#control {
    position: absolute;
    text-align: end;
    width: 100%;
    z-index: 2;
}

#control:hover form {
    visibility: visible;
}

form {
    margin: 1em 1em 0 0;
    visibility: hidden;
}

input, select, textarea {
    background-color: rgba(245, 222, 179, .2);
    border-color: lime;
    border-style: solid;
    border-width: 1px;
    color: lime;
    font-family: Menlo, "Lucida Console", monospace;
    font-size: 1em;
    font-weight: bold;
    margin: .2em;
    padding: .2em;
}

input[type=number] {
    text-align: end;
}

textarea {
    vertical-align: -3em;
}

.tooltip {
    display: inline-block;
    position: relative;
}

.tooltip .tooltiptext {
    background-color: wheat;
    color: black;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 1em;
    font-weight: normal;
    left: 50%;
    margin-left: -20em; /* minus full width */
    opacity: 0;
    padding: 0.5em 0.5em;
    position: absolute;
    text-align: justify;
    top: 120%;
    transition: opacity 1s;
    visibility: hidden;
    width: 20em;
    z-index: 1;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 90%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent wheat transparent;
}

.tooltip:hover .tooltiptext {
    opacity: 80%;
    visibility: visible;
}

#board {
    white-space: pre-wrap;
}

#board i {
    font-style: normal;
}

#stats {
    position: absolute;
    transform: translate(0, -100%);
    -ms-transform: translate(0, -100%);
    white-space: pre-wrap;
}

#timer {
    align-items: center;
    display: flex;
    font-size: 10em;
    height: 100%;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 100%;
}

#timer span {
    align-items: center;
    border-radius: 100%;
    border-style: solid;
    border-width: .1em;
    display: flex;
    height: 1em;
    justify-content: center;
    opacity: 80%;
    padding: .166em;
    width: 1em;
}

.C:before { /* Cool */
    content: '😎';
}

.F:before { /* Fresh */
    content: '😃';
}

.G:before { /* Ghost */
    content: '👻';
    visibility: hidden;
}

.O:before { /* OMG */
    content: '😳';
}

.P:before { /* Party */
    content: '🥳';
}

.S:before { /* Skull */
    content: '💀';
    opacity: 50%;
}
