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

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

#gameContainer {
    position: relative;
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #98FB98 70%, #98FB98 100%);
}

#gameUI {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#score {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 15px;
    display: none;
}

#gameOver h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#gameOver p {
    font-size: 24px;
    margin-bottom: 10px;
}

#gameOver button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s;
}

#gameOver button:hover {
    background: #45a049;
}

#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 18px;
    text-align: center;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
    animation: float 20s infinite linear;
}

.cloud:before {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud:after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50px;
}

.cloud1 {
    width: 80px;
    height: 40px;
    top: 50px;
    left: -100px;
}

.cloud1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1:after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 60px;
    height: 30px;
    top: 100px;
    left: -80px;
    animation-delay: -10s;
}

.cloud2:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 5px;
}

.cloud2:after {
    width: 50px;
    height: 30px;
    top: -10px;
    right: 5px;
}

@keyframes float {
    0% { left: -100px; }
    100% { left: calc(100% + 100px); }
}