:root {
    --size-hole: 1 0 33.33%;
}

html {
    box-sizing: border-box;
    background: #4b9fff;
    font-size: 10px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Amatic SC', cursive;
}

h1 {
    text-align: center;
    font-size: 10rem;
    line-height: 1;
    margin-bottom: 0;
    margin-top: 20px;
}

h2 {
    margin: 20px;
    text-align: center;
    font-size: 7rem;
    line-height: 1;
    margin-bottom: 0;
}

.score {
    background: rgba(255, 255, 255, 0.2);
    padding: 0 3rem;
    line-height: 1;
    border-radius: 1rem;
}

.game {
    width: 600px;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.hole {
    flex: var(--size-hole);
    overflow: hidden;
    position: relative;
}

.hole:after {
    display: block;
    background: url(dirt.svg) bottom center no-repeat;
    background-size: contain;
    content: '';
    width: 100%;
    height: 70px;
    position: absolute;
    z-index: 2;
    bottom: -30px;
}

.mole {
    background: url('mole.svg') bottom center no-repeat;
    background-size: 60%;
    position: absolute;
    top: 100%;
    width: 100%;
    height: 100%;
    transition: all 0.6s;
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
    -o-transition: all 0.6s;
}

.hole.up .mole {
    top: 0;
}

button {
    cursor: pointer;
    background-color: #0774f0;
    color: #fffc4b;
    font-size: 20px;
    font-weight: bold;
    margin: 10px;
    width: 100px;
    height: 100px;
    border-color: rgb(12, 12, 12);
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 35px;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    -ms-border-radius: 35px;
    -o-border-radius: 35px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .col {
    flex-direction: column;
}

label {
    font-size: 50px;
    letter-spacing: 2px;
    font-weight: 1000;
}

#timer {
    letter-spacing: 2px;
}