#home {
    text-align: center;
    margin-top: 100px;
}

#game {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

#board {
    display: grid;
    grid-template-columns: repeat(7, 50px);
    gap: 5px;
    margin: 0 auto; /* Ajout de cette propriété pour centrer horizontalement */
    width: 364px;  /* Ajout de cette propriété avec une valeur appropriée */
    background-color: #2980b9; /* Nouvelle couleur de fond */
    padding: 10px; /* Ajout de cet espacement pour rendre les pièces rondes visuellement */
    border-radius: 10px; /* Ajout de coins arrondis */
}

.cell {
    width: 38px;
    height: 38px;
    cursor: pointer;
    background-color: #fff; /* Nouvelle couleur de fond */
    border-radius: 50%; /* Ajout de cette propriété pour rendre la cellule ronde */
}


#result {
    margin-top: 20px;
}

.yellow {
    background-color: #f1c40f;
    border-radius: 50%;
    border: none;
}

.red {
    background-color: #e74c3c;
    border-radius: 50%;
    border: none;
}

#play-again-button {
    display: none;
     margin: 0 auto;
}

button {
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1a5276;
}

