/* General Body Styling */
body {
    font-family: 'georgia', sans-serif;
    background: linear-gradient(to bottom, #0b650e, #100f0f);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Game Container */
.game-container {
    text-align: center;
    height: auto;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
}

/* Title */
.game-container h1 {
    font-size: 2rem;
    color: #060606;
    margin-bottom: 1rem;
}

/* Score and Timer Display */
.score-timer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0b0b0b;
}

/* Controls Section */
.controls {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls button {
    padding: 10px 15px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(to right, #4caf50, #040404);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.controls button:hover:not(:disabled) {
    background: linear-gradient(to right, #050505, #4caf50);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Hole Styling */
.hole {
    width: 100%;
    padding:px; /* Maintain a square aspect ratio */
    position: relative;
    background-color: #f2f4f2;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.emoji.hit {
    transform: scale(0.6);
}

/* Hit Effect */
.hole.hit .emoji {
    animation: hit 0.3s ease-out forwards;
}

/* Emoji hit animation */
@keyframes hit {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Popup Styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.popup-content h2 {
    margin: 0 0 10px;
}

.popup-content p {
    margin: 10px 0;
    font-size: 18px;
}

.popup-content button {
    padding: 10px 20px;
    background-color: #0e0e0e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup-content button:hover {
    background-color: #45a049;
}

/* Speed Control Styling */
#speedControl {
    padding: 5px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        width: 100%;
        padding: 10px;
        height: auto;
    }

    .grid {
        grid-gap: 20px;
    }

    .controls button {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .score-timer {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        max-width: 350px;
        padding: 10px;
        height: auto;
    }

    .hole {
        padding: 1px; /* Adjust hole size for smaller screens */
    }

    .controls button {
      
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}
