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

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

body {
  padding: 0;
  margin: 0;
  font-family: 'Amatic SC', Helvetica, sans-serif;
}

h1 {
  text-align: center;
  font-size: 50px;
  line-height: 1;
  margin-top: 40px;
}

.scorebox {
  text-align: center;
  margin: 24px auto;
}
.score {
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem 3rem;
  font-size: 30px;
  border-radius: 1rem;
}

button {
  display: block; 
  margin: 10px auto;
  cursor: pointer;
  font-size: 20px;
  padding: 12px;
  width: 180px;
  color: #734B01;
  border: 1px solid #734B01;
  background-color: inherit;
}

.gameInProgress {
  display: none;
}

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

.hole {
  flex: 1 0 33.33%;
  overflow: hidden;
  position: relative;
}

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

.mole {
  background: url('mole.svg') bottom center no-repeat;
  opacity: 0.8;
  background-size: 60%;
  position: absolute;
  top: 100%;
  width: 100%;
  height: 100%;
  transition: all 0.4s;
}

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

@media screen and (max-width: 650px) {
  .game {
    width: 100%;
    height: 300px;
  }
}