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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    border: 2px solid #0f0;
}

#gameCanvas {
    display: block;
    background-color: #000;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Important pour laisser passer les clics sur le canvas si besoin */
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 0 0 5px #0f0;
}

#start-screen, #game-over-screen {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    pointer-events: all; /* Réactiver les événements pour les écrans */
    border: 1px solid #0f0;
}

h1 {
    font-size: 3em;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    font-size: 1.5em;
    color: #000;
    background-color: #0f0;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: 0 0 5px #000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #fff;
    box-shadow: 0 0 20px #0f0;
}