* {
    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(135deg, #1a1a2e, #16213e);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    transition: opacity 0.5s ease;
}

h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #00b4d8;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

h2 {
    color: #90e0ef;
    margin-bottom: 2rem;
}

button {
    padding: 12px 30px;
    font-size: 1.2rem;
    background: #00b4d8;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

button:hover {
    background: #0096c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

button:active {
    transform: translateY(1px);
}

#game-container {
    position: relative;
}

#score {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#board {
    background-color: #0d1b2a;
    border: 3px solid #00b4d8;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.controls {
    margin-top: 2rem;
    background: rgba(13, 27, 42, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #1b4965;
}

.controls h3 {
    color: #90e0ef;
    margin-bottom: 1rem;
}

.controls p {
    margin: 0.5rem 0;
    color: #caf0f8;
}

/* Animation pour le bouton de démarrage */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#start-button {
    animation: pulse 2s infinite;
}

/* Style pour l'écran de fin de jeu */
#game-over {
    background: rgba(13, 27, 42, 0.95);
}

/* Style pour le score en jeu */
#score {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Style pour le canvas */
canvas {
    display: block;
    margin: 0 auto;
}
