body{
    font-size: 20px;
}

h1 {
    display: flex;
    justify-content: center;
}

h2 {
    display: flex;
    justify-content: center;
}

h3 {
    display: flex;
    justify-content: right;
}

table {
    border-collapse: collapse;
    margin: auto;
}

td {
    width: 100px;
    height: 100px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
    position: relative;
}

td:not(.display-player, .display-room):hover {
    background-color: #eee;
}

td.display-player, td.display-room {
    width: max-content;
    height: 50px;
    border: 5px solid #ffffff;
    padding: 10px;
}

td.likeAButton, td.joinRoom {
    width: 100px;
    border-radius: 15px;
}

td.col-notready {
    background-color: #eee;
}

td.col-notready[me="true"]:hover {
    background-color: #cccccc;
}

td.col-ready {
    background-color: #9EE587FF;
}

td.col-ready[me="true"]:hover {
    background-color: #5fb943;
}

td.joinRoom[available="true"]:hover {
    background-color: #5fb943;
}

td.scoreCell {
    font-size: 25px;
}

thead {
    font-weight: bold;
}

.cell {
    width: 100px;
    height: 100px;
    text-align: center;
}

.cell-image {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    opacity: 0.8;
    z-index: 1;
}

.cell-image:hover {
    opacity: 1;
}

.selected-cell {
    background-color: yellow;
}

#cell-buttons {
    margin: auto;
    flex-direction: row;
}

.cell-button {
    width: 100px;
    height: 100px;
    background-color: white;
    border: 1px solid black;
    display: inline-block;
    margin: 10px;
}

label {
    font-weight: normal;
}

label.my-label {
    font-weight: bold;
}

.container {
    width: inherit;
}

label.waitingMessage {
    display: inline-block;
}

label.waitingMessage > p {
    float: left;
    margin-inline: 3px;
}

#grid-container{
    display: flex;
}

#game-title, #countdown{
    display: inherit;
    text-align: center;
}

#disconnectBtn{
    float: right;
}

.page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
}
#history {
    overflow-x: auto; /* Active la barre de défilement horizontale si nécessaire */
    white-space: nowrap; /* Empêche le retour à la ligne des éléments */
}

.elements {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Permet à la liste d'être horizontalement alignée */
}

.elements li {
    display: inline-block; /* Affiche les éléments côte à côte */
    padding: 10px;
    margin: 2px;
    border: 1px solid #ccc;
    min-width: 200px; /* Définir une largeur minimale pour chaque élément (facultatif) */
    text-align: center;
}


.cellkk {
    width: 50px;
    height: 50px;
    text-align: center;
}

h3.date{
    display: block;
    justify-content: normal;
}