/* Styl dla całej strony */
body {
    background: linear-gradient(to bottom, #87CEEB, #B0E0E6); /* Gradient nieba */
    color: #333;
    font-family: 'Press Start 2P', cursive; /* Czcionka w stylu retro */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    overflow: hidden; /* Zapobiega pojawianiu się suwaków */
}

/* Główny kontener gry */
#game-container {
    position: relative;
    border: 8px solid #4a2b13; /* Ciemnobrązowa ramka */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 0 15px rgba(0,0,0,0.2);
    width: 800px; /* Stała szerokość kontenera */
    height: 600px; /* Stała wysokość kontenera */
    background-color: #d0f4f7; /* Jasne tło wewnątrz gry */
}

/* Płótno gry */
canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px; /* Lekkie zaokrąglenie wewnątrz ramki */
}

/* Nakładka z informacjami (wynik, instrukcje) */
#hud {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 3px #000000;
    pointer-events: none; /* Pozwala klikać "przez" ten element */
}

#score-container {
    font-size: 20px;
    background-color: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 5px;
}

#instructions {
    font-size: 12px;
}

/* Ekran końca gry */
#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 3px 3px 5px #000;
}

/* Ukrywanie elementów */
#game-over-screen.hidden {
    display: none;
}

#game-over-screen h2 {
    font-size: 48px;
    color: #FF4136; /* Czerwony */
    margin-bottom: 20px;
}

#game-over-screen p {
    font-size: 24px;
    margin: 10px 0;
}

#final-score {
    font-size: 40px;
    color: #FFDC00; /* Złoty */
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Przycisk restartu */
#restart-button {
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    background-color: #2ECC40; /* Zielony */
    color: white;
    border: 3px solid white;
    border-radius: 10px;
    text-transform: uppercase;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

#restart-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFDC00;
}
