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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#87CEEB, #E0F7FA);
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 400px;
    height: 600px;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#game-canvas {
    background-color: #87CEEB;
}

.ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.score, .level {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 20;
    color: white;
    text-align: center;
}

.menu h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu p {
    margin-bottom: 30px;
    font-size: 18px;
}

.menu button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu button:hover {
    background-color: #45a049;
}

.level-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 15;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
}

.level-info h2 {
    margin-bottom: 10px;
    color: #333;
}

.level-info p {
    margin-bottom: 15px;
    color: #555;
}

.hidden {
    display: none;
}

.bird {
    position: absolute;
    width: 40px;
    height: 30px;
    background-color: #FFEB3B;
    border-radius: 50% 50% 20% 20%;
    z-index: 5;
}

.bird::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
}

.bird::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -5px;
    width: 15px;
    height: 8px;
    background-color: #FF5722;
    border-radius: 50%;
    transform: rotate(-10deg);
}

.pipe {
    position: absolute;
    width: 60px;
    background-color: #4CAF50;
    z-index: 1;
}

.pipe-top {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.pipe-bottom {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.pipe-cap {
    position: absolute;
    width: 70px;
    height: 20px;
    background-color: #388E3C;
    left: -5px;
    z-index: 2;
}

.pipe-top .pipe-cap {
    bottom: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.pipe-bottom .pipe-cap {
    top: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background-color: #8B4513;
    z-index: 3;
}

.ground::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 20px;
    background-color: #A0522D;
}

.cloud {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    z-index: 0;
}