/* Importation de la police depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #000; /* Nous allons utiliser un canvas pour l'arrière-plan animé */
    font-family: 'Orbitron', Arial, sans-serif;
    overflow: hidden;
    color: white;
    text-align: center;
}

/* Arrière-plan animé */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

#mainMenu, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Taille maximale pour éviter le défilement */
    max-width: 800px;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    border-radius: 10px;
}

#mainMenu h1, #gameOverScreen h1 {
    font-size: 60px;
    margin-bottom: 20px;
    color: #00ffff; /* Couleur cyan pour le titre */
    text-shadow: 0 0 10px #00ffff;
}

button {
    padding: 15px 30px;
    font-size: 22px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #00ffff, #0040ff);
    color: #fff;
    text-shadow: 0 0 5px #000;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 0 10px #0040ff;
}

button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #0040ff, #00ffff);
}

/* Ajout du centrage du canvas pour qu'il soit comme le reste */
canvas#gameCanvas {
    display: none; /* Le canvas du jeu est caché au début */
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #00ffff; /* Optionnel : ajouter une bordure pour le canvas si nécessaire */
}

#gameOverScreen p {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Ajouter une animation de pulsation au bouton survolé */
button:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px #0040ff; }
    50% { box-shadow: 0 0 20px #00ffff; }
    100% { box-shadow: 0 0 10px #0040ff; }
}