* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 400px;
    height: 600px;
    border: 3px solid #333;
    border-radius: 10px;
    background: linear-gradient(180deg, #87CEEB 0%, #FFF8DC 50%, #98FB98 100%);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

#game-area {
    position: relative;
    width: 100%;
    height: 100%;
}

#bird {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50%;
    left: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

#bird.flap {
    transform: rotate(-10deg);
}

.pipe {
    position: absolute;
    width: 60px;
    background: linear-gradient(90deg, #228B22, #32CD32);
    border: 2px solid #006400;
    top: 0;
    right: -60px;
}

.pipe.top {
    height: 200px;
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.pipe.bottom {
    height: 200px;
    top: auto;
    bottom: 0;
    border-top: none;
    border-radius: 10px 10px 0 0;
}

#score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#game-over h2 {
    color: #FF4500;
    margin-bottom: 10px;
}

#game-over p {
    font-size: 18px;
    margin-bottom: 20px;
}

#restart-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: #32CD32;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#restart-btn:hover {
    background: #228B22;
}

#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
}

#start-screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#start-screen p {
    font-size: 18px;
}

.hidden {
    display: none;
}

@media (max-width: 500px) {
    #game-container {
        width: 90vw;
        height: 80vh;
    }
}
