body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #2c3e50; /* Dark blue-gray */
    font-family: 'Arial', sans-serif;
    color: white;
    touch-action: none; /* Important for preventing scroll on touch devices */
}

.game-container {
    position: relative;
    border: 3px solid #ecf0f1; /* Light gray border */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#golfCanvas {
    display: block; /* Removes extra space below canvas */
    background-color: #2ecc71; /* Green for the course */
}

#ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Allow clicks to pass through to canvas */
}

#ui-overlay > * {
    pointer-events: all; /* Re-enable pointer events for children like buttons */
}

#strokeCount {
    font-size: 24px;
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

#restartButton, #playAgainButton {
    font-size: 16px;
    padding: 8px 15px;
    background-color: #3498db; /* Blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#restartButton:hover, #playAgainButton:hover {
    background-color: #2980b9; /* Darker blue */
}

#winMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(44, 62, 80, 0.9); /* Dark blue-gray, slightly transparent */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}