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

body {
  background-color: rgb(26, 104, 26);
}

.wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.start-and-score {
  text-align: center;
}

.score,
.button {
  color: #fff;
}

.button {
  border: none;
  background-color: rgb(11, 63, 11);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

button[disabled] {
  cursor: default;
  opacity: 0.5;
}

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

.section {
  width: calc(100% / 3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mole,
.drit,
.boom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mole {
  max-width: 35%;
  width: 100%;
  top: 75%;
  transition: all 0.5s;
}

.drit {
  max-width: 65%;
  z-index: 1;
  bottom: 0;
}

.active {
  top: 50%;
}

.boom {
  width: 30%;
  height: 30%;
  bottom: 20%;
  transform: translateX(-50%) scale(0);
  transition: all 0.3s;
}

.boom-for-mole {
  transform: translateX(-50%) scale(100%);
}

.leaderboard {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(26, 104, 26);
  color: #fff;
  padding: 10px;
  z-index: 3;
  border-radius: 6px;
}

.overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2; 
  cursor: pointer;
}
