:root {
    --taille-cellule: 45px;
    --epaisseur-bordure-cellule: 1px;
    --epaisseur-padding-cellule: 0px; /* 1 ou 2 */
    --case-bleu: #0077c7;
    --case-rouge: #e7002a;
    --case-jaune: #ffbd00;
    --gris: #989797;
    --fond: #230e46;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
    font-size: 32px;
    background-color: var(--fond);
    height: 100vh;
    text-align: center;
    color: white;
    margin: 0;
    padding: 0;
}

h2 {
    margin: 0;
    color: white;
}

h2 a {
    color: white;
    text-decoration: none;
}

.contenu {
    display: flex;
    flex-direction: column;
    margin-left: 25%;
    margin-right: 25%;
    justify-content: space-between;
    /*height: 100%;*/
}

.icones {
    text-align: right;
    margin-right: 25px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    height: 5vh;
    font-size: 10px;
    color: white;
}

.bouton {
    font-size: 20px;
    text-align: center;
    padding: 14px 40px;
    color: white;
    background-color: var(--fond);
    border-radius: 8px;
    border: 2px solid white;
    display: inline-block;
}

#retour_jeu {
    background-image: url("./images/jeu.png");
    background-size: 20px;
    color: white;
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
}


@media (max-width: 1024px) {
    .contenu {
        margin-left: 2px;
        margin-right: 2px;
    }
}

@media (max-height: 640px) {
    :root {
        --taille-cellule: 36px;
    }
    body {
        font-size: 24px;
    }
}

.majuscule
{
    text-transform: uppercase;
}

.touche-clavier {
    border-color: white;
    background-color: var(--fond) ;
    color: white;
    height: 6vh;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
}

.touche-clavier-gris {
    border-color: var(--gris);
    background-color: var(--fond) ;
    color: var(--gris);
    height: 6vh;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
}

.touche-clavier-fonction {
    height: 5vh;
    vertical-align: text-top;
    /*height: max-content;*/
}

.jeu {
    margin-left: auto;
    margin-right: auto;
    /*background-color: var(--case-bleu);*/
    /*width: fit-content;*/
    /*min-height: calc(6 * var(--taille-cellule) + 12 * var(--epaisseur-bordure-cellule));*/
}

.jeu table {
    border-spacing: 0;
}

.jeu td {
    width: calc( var(--taille-cellule) - 2 * var(--epaisseur-padding-cellule) );
    height: calc(var(--taille-cellule) - 2 * var(--epaisseur-padding-cellule));
    text-align: center;
    position: relative;
    padding: var(--epaisseur-padding-cellule);
    color: white;
    border: 1px solid white;
    z-index: 0;
}

.jeu td.case::after {
    width: calc(var(--taille-cellule));
    height: calc(var(--taille-cellule));
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    content: " ";
}

.jaune {
    background-color: var(--case-jaune);
    /*border-radius: 50%;*/
    width: inherit;
}

.rouge {
    background-color: var(--case-rouge);
    width: inherit;
}

.bleu {
    background-color: var(--case-bleu);
    width: inherit;
}

.formulaire {
    max-width: 100%;
    /*width: calc(100% - 20px);*/
    text-align: center;
    font-size: 20px;
}

.mot_hier {
    text-align: left;
    font-size: 16px;
}

.regles {
    font-size: 14px;
    text-align: left;
}

.page {
    margin-left: 15%;
    margin-right: 15%;
    color: white;
}

.page a {
    color: white;
    text-decoration: none;
}

/* Fenêtre Modal */
.modal {
    display: block; /* Hidden by default */
    position: fixed; /* Stay in place */
    /*z-index: 1; !* Sit on top *!*/
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.51); /* Black w/ opacity */
}

/* Modal Contenu */
.modal-content {
    color: black;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* Button Close Modal */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
/* Button Close Modal */
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}