html {
    display: table;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-size: 10px;
    background-color: #06a3a2;
    /* Newer WebKit (Safari 5.1+, Chrome 10-25) */
    background-image: -webkit-linear-gradient(270deg, #2ab096, #01a2a5);

    /* Internet Explorer 10+ */
    background-image: -ms-linear-gradient(180deg, #2ab096, #01a2a5);
    background-origin: border-box;
    background-clip: border-box;
    background-image: linear-gradient(180deg, #2ab096, #01a2a5);

}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    display: table-row;
    padding: 0;
    margin: 0;
    font-family: "Carter One", system-ui;
    /* text-shadow: 4px 4px #000000; */
}

.wrapper {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    font-size: calc(8vh + 1rem);
    line-height: 1;
    margin: 1rem 0 0 0;
    color: #eaeaea;
}

.score {
    display: table;
    margin: auto;
    background: rgba(255,255,255,0.2);
    padding: 0 3rem;
    line-height: 2;
    font-size: calc(4vh + 1rem);
    border-radius: 1rem;
    color: #eaeaea;
}

.game {
    width: 600px;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.hole {
    flex: 1 0 33.33%;
    overflow: hidden;
    position: relative;
}

.hole:after {
    display: block;
    background-image: url(dirt.svg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    width: 100%;
    height: calc(6vh + 4rem);
    position: absolute;
    z-index: 2;
    bottom: -30px;
}

.mole {
    background: url('papertroll.svg') bottom center no-repeat;
    background-size: 60%;
    position: absolute;
    top: 90%;
    width: 100%;
    height: 100%;
    transition: all 0.4s;
}

.hole.up .mole {
    top: 0;
}

button {
    font-family: "Carter One", system-ui;
    display: block;
    text-align: center;
    font-size: 3.157rem;
    margin: 2vh auto;
    width: 150px;
    height: 60px;
    border-radius: 2rem;
    border: 5px solid #eaeaea;
    /* background: #71b863; */
    background: linear-gradient(45deg, #71b863, #51bf83);
    box-shadow: 0 5px #4c4c4c;
    color: #eaeaea;
    cursor: pointer;
}

button:active {
    background: #71b863b7;
    box-shadow: 0 2px #4c4c4c;
    transform: translateY(0.5rem);
}

h2 {
    display: block;
    text-align: center;
    font-size: large;
    margin: 2px auto;
    width: 100px;
    height: 30px;
    color: white;
    line-height: 30px;
    letter-spacing: 1px;
}

.desc {
    width: calc(95vw + 1rem);
    text-align: center;
    font-size: calc(1vh + 1rem);
    color: #eaeaea;
}

@media only screen and (max-width: 768px) {
  .game {
    height: 320px;
  }

  h1 {
    margin: 0;
  }
}

@media only screen and (max-width: 450px) {
  .game {
    width: 99vw;
    max-width: 100%;
    height: 40vh;
    margin: 0;
  }
  .hole:after {
    height: calc(6vh + 1rem);
    background-position: center;
  }
  h1 {
    font-size: calc(4vh + 1rem);
    margin-bottom: 1rem;
  }

  button {
    margin-top: 50px;
  }

  .desc {
    width: calc(83vw + 5rem);
  }
}
