body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #43291F;
    color: #F4F0BB;
    margin: 0;
    padding: 20px;

    /* Responsive adjustments */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center content horizontally */
  
    height: 80vh; /* Full viewport height */
    overflow: hidden; /* Prevent scrolling */
}

h1 {
    margin-top: 15px;
    margin-bottom: 3px;
    font-size: 60px;
    color: #e00909;
}
h2 {
   margin-top: 2px;
   margin-bottom: 2px;
   font-size: 40px;
   color:#87C38F;
}

.scoreboard {
    font-size: 20px;
    margin-bottom: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr)); /* Always maintain 3 columns */
    grid-gap: 20px; /* Space between the holes */
    justify-content: center;
    width: 60%; /* Allow the grid to take full width */
    max-width: 400px; /* Limit how wide it can stretch */
    margin: 0 auto;
}

.hole {
    width: 100%; /* The size adjusts with the column size */
    aspect-ratio: 1; /* Keeps the hole circular */
    background-color: #F4F0BB; /* Fallback color */
    border: 2px solid #226F54;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background-size: cover; /* Ensure the image covers the hole */
    background-position: center; /* Center the image */
}


#hole1 {
    background-image: url('./ImagesMole/christmas1.png');
}

#hole2 {
    background-image: url('./ImagesMole/christmas2.png');
}

#hole3 {
    background-image: url('./ImagesMole/christmas3.png');
}

#hole4 {
    background-image: url('./ImagesMole/christmas4.png');
}

#hole5 {
    background-image: url('./ImagesMole/christmas5.png');
}

#hole6 {
    background-image: url('./ImagesMole/christmas6.png');
}

.mole {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fits well */
    border-radius: 50%; /* Optional: Keep it circular */
    cursor: pointer;
}

 #start-button {
        padding: 10px 20px; /* Add padding for size */
        font-size: 18px; /* Make the text larger */
        background-color: #DA2C38; /* Green background */
        color: #F4F0BB; /* White text */
        border: none; /* Remove border */
        border-radius: 5px; /* Rounded corners */
        cursor: pointer; /* Pointer cursor on hover */
        margin-top: 20px; /* Space above the button */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add a shadow */
 }
    
#start-button:hover {
        background-color: #cf4b54; /* Darker green on hover */
    }
    
 #start-button:active {
        transform: scale(0.95); /* Slightly shrink on click */
    }

.container {
        transform: scale(0.7); /* Shrink everything */
        transform-origin: top center; /* Scale from the top center */
    }

 /* Popup Overlay */
#game-over-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Translucent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it appears above everything */
}

/* Hide the popup initially */
.hidden {
    display: none !important;
}

/* Popup Content */
.popup-content {
    background: #DA2C38;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #F4F0BB;
    border-radius: 10px;
    margin: 20px 0 10px; /* Add margin for better spacing */
    position: relative; /* Position relative to place text inside */
    overflow: hidden;
}

#percentage-text {
    font-size: 18px;
    font-weight: bold;
    color: #226F54; /* Green color for visibility */
    margin-top: 10px;
    text-align: center;
}

#progress-fill {
    height: 100%;
    width: 0%; /* Start empty */
    background: #87C38F; /* Green progress bar */
    transition: width 0.5s ease-in-out; /* Smooth fill */
}

/* Restart Button */
#restart-button {
    padding: 10px 20px;
    font-size: 16px;
    background: #F49301;
    color: #F4F0BB;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#restart-button:hover {
    background: #e64a19;
}

@keyframes tremble {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-10px, 0); }
    50% { transform: translate(10px, 0); }
    75% { transform: translate(-10px, 0); }
    100% { transform: translate(0, 0); }
}

.screen-tremble {
    animation: tremble 0.5s ease-in-out;
}

@keyframes coin-shower {
    0% { transform: translateY(-50px) scale(1); opacity: 1; }
    100% { transform: translateY(300px) scale(0.5); opacity: 0; }
}

.coin {
    position: absolute;
    animation: coin-shower 1s ease-in forwards;
    width: 20px;
    height: 20px;
    background-image: url('./ImagesMole/coin.png');
    background-size: cover;
}

