*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 10px;
  background: url(background.PNG);
  background-repeat: repeat;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Pacifico", cursive;
  
}
.pacifico-regular {
  
  font-weight: 400;
  font-style: normal;
}
p{
  margin:0
}

h1 {
  text-align: center;
  font-size: 10rem;
  line-height: 1;
  margin-bottom: 0;
}

.controls {
  margin: 20px 5px;
  text-align: center;
}

.score {
  background: rgba(255, 255, 255, 0.2);
  padding: 0 3rem;
  line-height: 1;
  border-radius: 1rem;
}

.game {
  width: 800px;
  height: 600px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  border: 5px solid  #5561d5;
  background-color: white;
  border-radius: 10px;
  padding:10px;
}

.hole {
  flex: 1 0 33.33%;
  overflow: hidden;
  position: relative;
}

.hole:after {
  display: block;
  background: url("bamboo.png") center no-repeat;
  background-size: cover;
  content: "";
  width: 250px;
  height: 75px;
  position: absolute;
  z-index: 2;
  bottom: -1px;
}

.mole {
  background: url("sp.png") bottom center no-repeat;
  background-size: 100%;
  position: absolute;
  top: 100%;
  width: 100%;
  height: 100%;
  transition: all 0.4s;
}

.hole.up .mole {
  top: 0;
}
button {
  background-color: white;
  border: none;

}
.popup-guide{
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.popup   {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  
}
label{
  width:40%;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  font-size: 40px;
  width: 40%;
}
ul{
  padding:0
}
input, select{
 
  font-size: 24px;
  width: 60%;

}
li{
  display: flex;
    justify-content: space-between;
}
.logo img{
  margin:-30px auto -25px auto;
}
@media only screen and (max-width: 768px) {

  .hinhsp{
    display:none!important
  }
  body {
    font-size: 8px!important; 
  }
  
  button, h1 {
    font-size: 28px!important; 
  }
  
  .game {
    width: 100%; 
    height: 500px;
    border-width: 3px; 
    padding: 5px; 
  }
  
  .hole {
    flex: 2 0 50% !important;
  }
  .hole:after {
    width: 200px;
    height: 68px;
   
  }
  .hole.up .mole {
    top: 9px;
  }
  .mole{
    width: 90%;
    height: 100%;
  }
  .popup-content {
    width: 380px;
    font-size: 28px;
  }
  .popup-content button img {
    width: 60%;
    height: 80%;
  }
  .logo img{
    margin:-10px auto -25px auto!important;
  }

}
@media only screen and (max-width: 480px) {
  h1 {
    font-size: 4rem; 
  } 
  .hole {
    flex: 1 0 100%; 
  }
}
