* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* includes border and padding in calculation of height and width? */
}

body {
  font-family: 'Helvetica';
  background-color: #02090F;

}
.wrapper {
  border: 3px solid #010124;
  width: 800px;
  height: 600px;
  position: absolute;   /* start absolute centering tenique */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* end part of absolute centering tenique */
  background-image: url('moon_surface2.jpg');
  overflow: hidden;
}

.score {
  font-size: 150px;
  color: #f8f8fa;
  position: absolute;   /* start absolute centering tenique */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* end part of absolute centering tenique */
 /*  border: 1px solid black; */ /*temp to visualize center for more digits*/
  width: 200px;
  height: 100px;
  text-align: center;
}
.highScore {
  position: absolute;
  top:0;
  left:10px;
  font-size: 22px;
  font-weight: 900;
  color: white;
  text-shadow: 5px 5px 10px rgba(0,0,0,0.2);
  background-color:  rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 5px;

}

.countdown {
  position: absolute;
  top: 490px;
  width: 100%;
  font-size: 28px;
  text-align: center;
  color: #e6e6ee;
}

button {
  position:absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  background: #010124;
  color: white;
  padding: 20px 50px;
  border-radius: 5px;
  z-index: 200;
  cursor: pointer;
  border: none;
  outline: none;

}

.game {
  /* border: 2px solid black; */
  width: 600px;
  height: 400px;
  margin: 70px auto;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
}

.hole {
  /* border: 3px solid red; */
  flex: 1 0 33.33%;
  position: relative;
  overflow: hidden;
}

.hole:after{
  content: '';
  display: black;
  background-image: url('moon_sand.png');
  /* background: black; */
  position: absolute;
  width: 100%;
  height: 70px;
  z-index: 2;
  bottom: -30px;
  background-size: contain;
}

.mole {
  background-image: url('yoda1.png');
  position: absolute;
  top: 100%;
  width: 100%;
  height: 100%;
  transition: 0.4s;
  background-repeat: no-repeat;
  background-position: bottom;

}

.mole.small {
  background-size:60%;
}

.mole.large {
  background-size: 80%;
}

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