* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: sans-serif;
}

h1 {
    position: absolute;
    top: 0;
    font-size: 35px;
    text-transform: uppercase;
}

canvas {
    border: 4px solid black;
}

.score {
    text-align: center;
    font-size: 40px;
    position: absolute;
    top: 40px;
    display: none;
}

.lost {
    padding: 5px;
    z-index: 2;
    display: block;
    width: 80%;
    height: 30%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #dedede;
    border: 4px solid black;
}

.score span {
    text-decoration: underline;
}

.buttons {
    border: 4px solid white;
    width: 316px;
    height: 50px;
    display: flex;
    justify-content: space-between;
}

.buttons button {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    border: 5px solid #000;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 800;
    transform: scale(1);
    transition: .2s;
}

.buttons button:nth-child(2) {
    border-left: 2px solid black;
    display: none;
}

button:active {
    transform: scale(.96)
}

.keyboard {
    margin-top: 10px;
    width: 308px;
    height: 80px;
    display: flex;
}

.keyboard button,
.keyboard .common {
    flex-grow: 1;
}

.keyboard .common {
    display: flex;
    flex-direction: column;
}

.keyboard .common button {
    flex-grow: 1;
}