body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('bts-suga-black-swan-ytdxcorghlme7cu6.webp'); /* Assurez-vous que le chemin de l'image est correct */
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: #fff;
}

h1 {
    margin-bottom: 20px;
    color: #ffffff; /* Couleur blanche */
    font-weight: bold; /* Gras */
}

#playerInfo label {
    color: #ffffff; /* Couleur blanche */
    font-weight: bold; /* Gras */
    margin-right: 10px;
}

#playerInfo {
    margin-bottom: 20px;
    text-align: center;
}

canvas {
    border: 1px solid #fff;
    background-image: url('bts-suga-black-swan-ytdxcorghlme7cu6.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    width: 600px;
    height: 600px;
}

#scoreBoard {
    margin-top: 20px;
    text-align: center;
    color: #8A2BE2; /* Purple pour les scores */
    font-weight: bold; /* Gras pour les scores */
}
/* Styles généraux pour tous les écrans */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('bts-suga-black-swan-ytdxcorghlme7cu6.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: #fff;
}

h1 {
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

/* Styles pour les grands écrans (desktop) */
canvas {
    width: 600px;
    height: 600px;
    max-width: 100%; /* Responsive pour s'adapter à la largeur de l'écran */
    max-height: 100%; /* Responsive pour s'adapter à la hauteur de l'écran */
}

/* Media query pour les écrans plus petits (tablettes et mobiles) */
@media (max-width: 768px) {
    h1 {
        font-size: 6vw;
    }

    #playerInfo label, #scoreBoard {
        font-size: 5vw;
    }

    canvas {
        width: 80vw; /* Ajuste la taille du canvas pour les petits écrans */
        height: 80vw;
    }
}

/* Media query pour les très petits écrans (mobiles) */
@media (max-width: 480px) {
    h1 {
        font-size: 8vw;
    }

    #playerInfo label, #scoreBoard {
        font-size: 6vw;
    }

    canvas {
        width: 90vw; /* Ajuste la taille du canvas pour les très petits écrans */
        height: 90vw;
    }
}

