body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #87cf3e;
  background-image: linear-gradient(45deg, #87cf3e 0%, #4f9c2c 100%);
  font-family: "Comic Sans MS", cursive, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  cursor: url("./hammer.png") auto;
}

.game-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hole {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 50% 70%, #3a2410 30%, #654321 100%);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 10px 15px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.1s;
}

.hole::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 30px;
  background: #2d5e1e;
  border-radius: 50%;
  top: -10px;
  left: -10%;
  z-index: -1;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.mole {
  background: radial-gradient(circle at 50% 30%, #cc6600 30%, #8b4513 100%);
  transform: translateY(-30%);
  animation: pop-up 0.4s cubic-bezier(0.36, 0, 0.66, 1.4);
}

.mole::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="5" fill="%23000"/><circle cx="65" cy="35" r="5" fill="%23000"/><path d="M 40 60 Q 50 70 60 60" stroke="%23000" stroke-width="3" fill="none"/><ellipse cx="50" cy="45" rx="8" ry="3" fill="%23ffafaf"/></svg>');
  background-size: contain;
}

.hole:active {
  transform: scale(0.95);
}

.mole:active {
  transform: translateY(-10%) scale(0.95);
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes pop-up {
  0% {
    transform: translateY(100%) scale(0.5);
  }

  40% {
    transform: translateY(-45%) scale(1.05);
  }

  60% {
    transform: translateY(-25%) scale(0.95);
  }

  80% {
    transform: translateY(-35%) scale(1.02);
  }

  100% {
    transform: translateY(-30%) scale(1);
  }
}

/* Add a hit animation */
@keyframes hit {
  0% {
    transform: translateY(-30%) rotate(0deg);
  }

  20% {
    transform: translateY(-20%) rotate(-10deg) scale(0.95);
  }

  100% {
    transform: translateY(100%) rotate(0deg) scale(0.5);
  }
}

.hit {
  animation: hit 0.3s cubic-bezier(0.47, 0, 0.745, 0.715) forwards;
}

button {
  padding: 15px 30px;
  font-size: 20px;
  cursor: pointer;
  background: linear-gradient(145deg, #ff6b6b, #ff4757);
  color: white;
  border: none;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: "Comic Sans MS", cursive, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
}

button:hover {
  background: linear-gradient(145deg, #ff4757, #ff6b6b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Add a score display style */
.score {
  font-size: 2.5em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}

/* Add after the existing game-container styles */
.game-container[data-difficulty="easy"] .hole {
  width: 120px;
  height: 120px;
}

.game-container[data-difficulty="medium"] .hole {
  width: 100px;
  height: 100px;
}

.game-container[data-difficulty="hard"] .hole {
  width: 80px;
  height: 80px;
}

/* Modify animations based on difficulty */
.game-container[data-difficulty="easy"] .mole {
  animation: pop-up 0.5s cubic-bezier(0.36, 0, 0.66, 1.4);
}

.game-container[data-difficulty="medium"] .mole {
  animation: pop-up 0.4s cubic-bezier(0.36, 0, 0.66, 1.4);
}

.game-container[data-difficulty="hard"] .mole {
  animation: pop-up-hard 0.3s cubic-bezier(0.36, 0, 0.66, 1.4);
}

/* Add difficulty selector styles */
.difficulty-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.difficulty-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.difficulty-btn[data-difficulty="easy"] {
  background: linear-gradient(145deg, #4caf50, #45a049);
  color: white;
}

.difficulty-btn[data-difficulty="medium"] {
  background: linear-gradient(145deg, #ff9800, #f57c00);
  color: white;
}

.difficulty-btn[data-difficulty="hard"] {
  background: linear-gradient(145deg, #f44336, #d32f2f);
  color: white;
}

.difficulty-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Hard difficulty specific animation */
@keyframes pop-up-hard {
  0% {
    transform: translateY(100%) scale(0.5);
  }

  30% {
    transform: translateY(-60%) scale(1.1);
  }

  45% {
    transform: translateY(-20%) scale(0.95);
  }

  60% {
    transform: translateY(-45%) scale(1.05);
  }

  100% {
    transform: translateY(-30%) scale(1);
  }
}

/* Add difficulty indicators */
.game-container::after {
  content: "EASY";
  position: absolute;
  top: -30px;
  right: -30px;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  opacity: 0.9;
}

.game-container[data-difficulty="easy"]::after {
  content: "EASY";
  background: linear-gradient(145deg, #4caf50, #45a049);
}

.game-container[data-difficulty="medium"]::after {
  content: "MEDIUM";
  background: linear-gradient(145deg, #ff9800, #f57c00);
}

.game-container[data-difficulty="hard"]::after {
  content: "HARD";
  background: linear-gradient(145deg, #f44336, #d32f2f);
}

/* Add visual feedback for harder difficulties */
.game-container[data-difficulty="hard"] .mole::after {
  animation: angry-eyes 1s infinite alternate;
}

@keyframes angry-eyes {
  0% {
    transform: scaleY(1);
  }

  100% {
    transform: scaleY(0.7);
  }
}

/* Add difficulty-specific hole decorations */
.game-container[data-difficulty="hard"] .hole::before {
  background: #1a3612;
}

.game-container[data-difficulty="medium"] .hole::before {
  background: #245918;
}

.whacked {
  background-color: #ff9999 !important;
}

.missed {
  background-color: #ff6666 !important;
}
