* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#startScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    text-align: center;
}

#startScreen h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#startScreen p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.surprise-text {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 20px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#startBtn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.3rem;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#startBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

#winScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    text-align: center;
}

#winScreen h2 {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
}

#winScreen p {
    font-size: 1.5rem;
    margin: 20px 0;
}

#surpriseBtn, #restartBtn {
    margin: 10px;
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#surpriseBtn {
    background: #ffd700;
    color: #333;
    margin-top: 30px;
}

#surpriseBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

#restartBtn {
    background: #667eea;
    color: white;
}

#restartBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.tips {
    position: absolute;
    height: 30px;
    line-height: 30px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: white;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.game {
    width: 800px;
    height: 600px;
    border: 2px solid #000;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #87CEEB;
}

#scoreDisplay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 100;
}

.surprise-hint {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 100;
    animation: pulse 2s infinite;
}

.game .sky{
    background: url('../images/sky.png');
    height: 100%;
    width: 200%;
    position: absolute;
    left: 0;
    top: 0;
}

.game .land{
    background: url("../images/land.png");
    height: 112px;
    width: 200%;
    position: absolute;
    left: 0;
    bottom: 0;
}

.game .bird{
    background: url('../images/bird.png');
    position: absolute;
    width: 33px;
    height: 26px;
    left: 150px;
    top: 150px;
}

.game .bird.swing1{
    background-position: -8px -10px;
}

.game .bird.swing2{
    background-position: -60px -10px;
}

.game .bird.swing3{
    background-position: -113px -10px;
}

.game .pipe{
    position: absolute;
    left: 500px;
    height: 100px;
    width: 52px;
    /* z-index: 100; */
}

.game .pipeUp{
    background: url("../images/pipeDown.png");
    background-position: bottom;
}

.game .pipeDown{
    background: url('../images/pipeUp.png');
    bottom: 112px;
}

@media screen and (max-width: 820px) {
    .game {
        width: 100vw;
        height: 100vh;
        border: none;
        max-width: 800px;
        max-height: 600px;
    }

    #startScreen h1 {
        font-size: 2rem;
    }

    #startScreen p {
        font-size: 1rem;
    }

    .surprise-text {
        font-size: 1.2rem;
    }

    #startBtn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    #winScreen h2 {
        font-size: 2rem;
    }

    #winScreen p {
        font-size: 1.2rem;
    }

    #surpriseBtn, #restartBtn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    #scoreDisplay {
        font-size: 1.5rem;
    }

    .surprise-hint {
        font-size: 1rem;
    }

    .tips {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    #startScreen h1 {
        font-size: 1.5rem;
    }

    #startScreen p {
        font-size: 0.9rem;
    }

    .surprise-text {
        font-size: 1rem;
    }

    #startBtn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    #winScreen h2 {
        font-size: 1.5rem;
    }

    #winScreen p {
        font-size: 1rem;
    }

    #surpriseBtn, #restartBtn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    #scoreDisplay {
        font-size: 1.2rem;
        top: 10px;
    }

    .surprise-hint {
        font-size: 0.9rem;
        top: 40px;
    }

    .tips {
        font-size: 0.8rem;
        height: 25px;
        line-height: 25px;
    }
}