* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url("https://raw.githubusercontent.com/Kalakkal123/portfolio/refs/heads/main/ChatGPT%20Image%20Nov%209%2C%202025%2C%2003_26_12%20PM.png"); /* Replace with actual link */
    background-size: cover;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 90vw;  /* Adjusted for responsiveness */
    max-width: 400px; 
    height: 70vh;  /* Adjusted for different screen sizes */
    max-height: 500px;
    border: 2px solid black;
    background-color: skyblue;
    overflow: hidden;
}

/* Updated Bird */
#bird {
    position: absolute;
    top: 50%;
    left: 50px;
    width: 35px;  /* Smaller size */
    height: auto; /* Maintain aspect ratio */
    transform: scaleX(-1);
}

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

.top-pipe {
    height: var(--top-height);
    top: 0;
}

.bottom-pipe {
    height: var(--bottom-height);
    bottom: 0;
}

/* Scoreboard */
#scoreboard {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 16px;
}

/* Game Over Screen */
#game-over {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    display: none;
}

#restart-btn {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 16px;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#restart-btn:hover {
    background: lightgray;
}

/* Mobile Friendly */
@media (max-width: 600px) {
    #game-container {
        width: 100vw;
        height: 80vh;
    }
    
    #bird {
        width: 30px; /* Smaller for mobile */
    }

    .pipe {
        width: 40px;
    }
}
