* {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
}

button {
    all: unset;
}

button:hover {
    cursor: pointer;
}

html,
body {
    height: 100%;
    width: 100%;
    touch-action: manipulation;
    overflow-y: hidden;
    overflow-x: hidden;
}

body {
    min-height: 100%;
    font-family: 'Press Start 2P', cursive;
    font-size: .7em;
    color: lime;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

button {
    background-repeat: no-repeat;
    background-size: contain;
}

h1 {
    font-size: 3vw;
    user-select: none;
    padding-bottom: 5vh;
    text-shadow: 0 0 1em lime;
}

#controlContainer {
    position: absolute;
    height: 100vh;
    width: 100%;
    z-index: 1000;
}

#controlContainer div {
    position: absolute;
    width: 50%;
    height: 100%;
}

#controlContainer #leftScreen {
    left: 0;
}

#controlContainer #rightScreen {
    right: 0;
}

#speedMeter {
    position: absolute;
    top: 80px;
    margin-left: -158px;
    color: white;
    text-shadow: 0 0 1em cyan, 0 0 1em cyan;
    z-index: 50;
    background-color: black;
    padding: 2px;
    border: .4em solid lime;
}

#scoreBoard {
    position: absolute;
    left: 0;
    right: 0;
    top: 1em;
    margin: 0 auto;
    color: white;
}

#gameContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    visibility: hidden;
}

canvas {
    z-index: -10;
    border: 1em solid lime;
}

#noises {
    position: absolute;
    width: 100%;
    height: 100%;
}

#noises div {
    width: 1em;
    height: 1em;
    background-color: white;
    box-shadow: 0 0 3em 1em red;
    position: absolute;
    transition: opacity 1s;
}

#wiper {
    position: absolute;
    bottom: 105vh;
    width: 100%;
    height: .5em;
    box-shadow: 0 0 2em .5em magenta;
    background-color: white;
    z-index: 3;
    transition: bottom .6s linear;
}

#rearLights {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    bottom: 20px;
    width: 300px;
}

#rearLights div {
    width: 60px;
    height: 30px;
    background-color: white;
    box-shadow: unset;
    transition: box-shadow .1s;
}

table>* {
    font-size: 2vw;
}

table {
    text-align: center;
    padding: 0 1em;
    margin-top: 10vh;
}

table th,
table td {
    padding: .3em;
}

#pauseScreen .rowButtons {
    position: absolute;
    bottom: 1em;
}

input[type='text'] {
    width: 80%;
}