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

body {
    font-family: 'Arial', sans-serif;
    background-color: #1d1e38;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;

}

#game-container {
    position: relative;
    width: 400px;
    height: 600px;
    background-color: #282838;

    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#game-canvas {
    display: block;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    
    z-index: 10;
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

#game-over h2 {
    color: #ffffff;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#final-score {
    color: white;
    font-size: 32px;
    margin-bottom: 30px;
}

#restart-btn {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #211d36;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#restart-btn:hover {
    background-color: #1d1e35;
    transform: translateY(-2px);
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

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

#start-btn {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #202f83;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-btn:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#instructions {
    color: white;
    font-size: 16px;
    margin-top: 30px;
    text-align: center;
    line-height: 1.5;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #11121d;
    z-index: 5;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 500px) {
    #game-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
}