/* General Styling */
body {
    font-family: 'Comic Sans MS', Arial, sans-serif;
    text-align: center;
    margin: 0;
    background: #f0f8ff;
    overflow: hidden;
  }
  
  /* Start Screen */
  #start-screen, #end-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffafbd, #ffc3a0);
    color: #444;
    animation: fadeIn 1.5s ease-in-out;
  }
  
  button {
    background-color: #ff7f50;
    color: white;
    font-size: 1.5rem;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #ff4500;
  }
  
  /* Result Screen Animation */
  #result-animation img {
    width: 150px;
    animation: bounce 1.5s infinite;
  }
  
  #result-message {
    font-size: 1.8rem;
    margin: 10px;
    color: #333;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

 #game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333; /* Dark gray background */
    width: 100%;
    height: 1000%;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Soft shadow effect */
    color: #fff; /* Light text color for better contrast */
    text-align: center;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent overlay */
    z-index: 10; /* Ensures it appears on top of everything else */
}
  /* Game Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 300px;
    margin: 0 auto;
    margin-top: 20px;
    position: relative;
  }
  
  /* Holes Styling */
  .hole {
    width: 100px;
    height: 100px;
    background-color: #8b4513; /* Brown color for holes */
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0px 5px 10px rgba(0, 0, 0, 0.5);
  }
  
  /* Mole Styling */
  .mole {
    width: 100px;
    height: 100px;
    background: url('f65b5de9b4760bb3ee9b63e23c319e0b.jpg') no-repeat center center / cover;
    position: absolute;
    bottom: -80px; /* Start hidden */
    left: 50%;
    transform: translateX(-50%);
    animation: popUp 0.8s ease-in-out forwards;
  }
  
  /* Mole Pop-Up Animation */
  @keyframes popUp {
    0% { bottom: -80px; }
    50% { bottom: 0; }
    100% { bottom: 0; }
  }
  #timer {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d9534f;
    margin-top: 10px;
    text-align: center;
    transition: transform 0.5s ease-in-out;
  }
  
  #timer:hover {
    transform: scale(1.2);
    color: #ff6347; /* Slightly brighter red */
  }
  
  