body {
    margin: 0;
    overflow: hidden; /* Hide scrollbars */
    background-color: #87ceeb; /* Sky blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Arial, sans-serif;
    user-select: none; /* Prevent text selection */
}

#game-container {
    width: 300px; /* Game width */
    height: 500px; /* Game height */
    border: 2px solid black;
    position: relative; /* Needed for absolute positioning of children */
    overflow: hidden; /* Hide pipes outside the container */
    background: linear-gradient(to bottom, #87ceeb 70%, #90ee90 30%); /* Sky and ground */
    box-sizing: border-box;
}

#bird {
    width: 30px;
    height: 30px;
    background-color: yellow;
    border-radius: 50%; /* Make it round */
    position: absolute;
    left: 50px; /* Starting horizontal position */
    top: 200px; /* Starting vertical position */
    z-index: 10; /* Bring bird to front */
    border: 2px solid orange;
}

.pipe {
    position: absolute;
    width: 50px; /* Pipe width */
    background-color: green;
    border: 2px solid darkgreen;
    box-sizing: border-box;
}

.top-pipe {
    top: 0;
}

.bottom-pipe {
    bottom: 0;
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    font-weight: bold;
    color: black;
    z-index: 20; /* Bring score to front */
}

#game-over-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    z-index: 30; /* Bring message to front */
}

.hidden {
    display: none;
}
