body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    color: white;
    background-color: black;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h1 {
    text-align: center;
    font-size: 4em;
    text-decoration: underline;
    margin: 0;
}

h2 {
    font-size: 3em;
    margin-top: 0;
}

.contenu {
    display: flex; /*utilisation de Flexbox pour l'agencement*/
    flex-direction: row; /*Les enfants sont alignés en ligne.*/
    /*Centré verticalement et horizontalement*/
    align-items: center; 
    justify-content: center;
}

#game {
    flex: 2; /*L'élément occupe deux fois plus d'espace que les autres*/
}

td {
    border: 2px solid black;
    border-collapse: collapse; /*Fusionne les bordures*/
    width: 25%;
    height: 150px;
    padding: 0;
    text-align: center;
    font-size: 6em;
    
}

table {
    width: 80%; /*Occupe 80% de la largeur de l'élément parent*/
    margin: auto;
    min-width: 300px;
    max-height: 600px;
    border-collapse: collapse;
    background-color: white;
}

#Score {
    flex: 2;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: center;
}

#Score p {
    font-size: 3em;
    display: inline;
    margin-left: 1em;
}

p span {
    color: white;
}


#score1 {
    color: lime;
}

#score2 {
    color: rgb(255, 0, 0);
}

#scoreEgalite {
    
    margin-right:5px;
}


button {
    padding: 1em;
    margin: 0.5em;
    border-radius: 0.8em; /*Bordures arrondies*/
    font-size: 1.5em;
    color: white;
    background-color: goldenrod;
    border: goldenrod;
}

button#menu, button#sortir {
    display: none; /*Cache les boutons menu et sortir*/
}



/* Media query mobile */
@media screen and (max-width: 650px) {
    h1 {
        font-size: 3em;
        margin: 0;
    }

    .contenu {
        display: block;
    }

    table {
        margin-top: 2em;
        
    }


    td {
        width: 33px;
        height: 180px;
        max-width: 33px;
        overflow: hidden;
        font-size: 4em;
     
    }

   
    .menuVisible {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        display: block; /*Rend visible le menu*/
    }

    .menuInvisible {
        display: none;
    }

    #Score h2 {
        margin-top: 0.5em;
    }

    #Score p {
        font-size: 2em;
        display: inline;
        margin-left: 0.6em;
    }

    button {
        width: 10em;
        padding: 0.5em;
        margin-bottom: 0em;
    }

    button:last-child {
        margin-bottom: 0; /*Pas de margin-bottom pour le dernier bouton*/
    }

    button#menu, button#sortir {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.5em;
        padding: 0.3em;
    }
}

/* Media query PC portable */
@media screen and (min-width: 1200px) {
    h1 {
        font-size: 4em;    
    }

    h2 {
        font-size: 3em;
    }

    td {
        width: 20%;
        height: 150px;
    }

    #Score p {
        font-size: 3em;
    }

    button {
        font-size: 1.5em;
        padding: 1em;
    }
}

/* Media query écrans 24 pouces et plus */
@media screen and (min-width: 1500px) {
    h1 {
        font-size: 6em;
        margin-bottom: 1em;
    }

    h2 {
        font-size: 5em;
    }

    td {
        width: 33%;
        height: 200px;
        font-size: 8em;
    }

    #Score p {
        font-size: 4em;
    }

    button {
        margin-top: 1em;
        font-size: 2em;
        padding: 1em;
    }
}
