html {
  box-sizing: border-box;

  font-family: 'Binggrae-Bold';
}

body {
  margin:0;
  box-sizing: border-box;
  font-family: 'Binggrae-Bold';
}

@font-face { font-family: 'Binggrae-Bold'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/Binggrae-Bold.woff') format('woff'); font-weight: normal; font-style: normal; }

*, *:before, *:after {
  box-sizing: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}

h1 {
  color: #111;
  text-align: center;
  line-height: 1.5;
  margin: 30px 0;
}


#zz1{height: 250px; width: auto; position: absolute; top: 170px; left: 90px;}
#zz2{height: 250px; width: auto; position: absolute; top: 170px; right: 90px;}


.main{ 
  position: relative;
  width: 100%;
}
.whack-a-mole {
  background: #ff39a1;
  margin: 10px auto;
  padding: 20px;
  list-style: none;
  width: 490px;
  height: 490px;
  border-radius: 20px;
}
.mole{   
  float: left;
  width: 140px;
  height: 140px;
  margin: 5px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  background: #f7dfee;
  cursor: url(face1.png), auto;
}
.mole >img{
  position: relative;
  align-items: center;
  bottom: -5px;
  display: block;
  width: 100%;
  opacity: 0;
  transition: 0.15s ease-out;
  cursor: url(face1.png), auto;
}
.whack-a-mole .active{
  bottom: 0;
  opacity: 1;
  animation: shake 1s;
  animation-iteration-count: infinite; 
  
}
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.btn-wrap{  border-color: 
  float: center;
  width: 700px;
  margin-top: 30px;
}

.point-wrap{ 
  float: left;
  width: 300px;
  height: 120px;
  margin: 0 30px 0 0;
  padding-top: 22px;
}
.start-btn { 
  width: 300px;
  height: 70px;
  font-size: 20px;
  font-weight: 900;
  margin: 20px 60px 30px 0;
  background: #ff39a1;
  border: none;
  color: #f2ecff;
  border-radius: 20px;
}
.start-btn:hover{
  background: #ed147c;
  color: #f9f871;
}
.point-box { 
  background-color: pink;
  width: 600px;
  margin: 30px auto 0 auto;
  text-align: center;
  border-radius: 20px;
}
#point-text {
  float: left;
  font-size: 24px;
  font-weight: bold;
  color: #111;
  margin: 15px 0 0 20%;
}
#count-mole {
  float: left;
  font-size: 30px;
  font-weight: bold;
  color: red;
  margin: 10px 10px 0 30px;
}
#count-mole2 {
  float: left;
  font-size: 24px;
  font-weight: bold;
  color: #111;
  margin: 15px 0 0 0;
}
.ending {
  display:none;
  position: absolute;
  border-radius: 20px;
  font-size: 20px;
  text-align: center;
  top: 32%;
  left: 36%;
  width: 400px;
  height: 150px;
  margin: 0 auto;
  background: #ff39a1;
  z-index: 2;
}
#ending-box {

  margin: 22px 0 0 0;
  font-size: 30px;
  line-height: 1.8;
  color: #f2ecff;
}
#ending-box .last {
  color: #111;
}
.ending-bg {
  display: none;
  position: fixed;
  margin: 0;
  width: 100%;
  height: 100%;
  background-color: #fdd3eb;
  opacity: 0.5;

  z-index: 1;
}
.finalEnding{
  display: block;
}