body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}
.container {
    text-align: center;
}
.grid {
    display: inline-grid;
    gap: 2px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.cell {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background-color: white;
}
.cell.black {
    background-color: black;
}
.patterns {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
}
.pattern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 0 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}
.pattern.selected {
    background-color: #fffacd;
}
.pattern-cell {
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
}
.pattern-cell.black {
    background-color: black;
}
.pattern-cell.center {
    border: 2px solid red;
}
table {
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
}

#playerInfo {
    font-weight: bold;
    margin-bottom: 5px;
}