* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.game-controls {
    margin-bottom: 20px;
}

#reset-btn, #undo-btn {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
    margin: 0 5px;
}

#reset-btn:hover, #undo-btn:hover {
    background-color: #0056b3;
}

#board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 5px;
    margin: 0 auto;
    width: 400px;
    height: 400px;
    background-color: #FFD700; /* Yellow color */
    border-radius: 50%;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.cell {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

/* Hide the corner cells that are not used in the game */
.cell[data-row="0"][data-col="0"],
.cell[data-row="0"][data-col="1"],
.cell[data-row="1"][data-col="0"],
.cell[data-row="1"][data-col="1"],
.cell[data-row="0"][data-col="5"],
.cell[data-row="0"][data-col="6"],
.cell[data-row="1"][data-col="5"],
.cell[data-row="1"][data-col="6"],
.cell[data-row="5"][data-col="0"],
.cell[data-row="5"][data-col="1"],
.cell[data-row="6"][data-col="0"],
.cell[data-row="6"][data-col="1"],
.cell[data-row="5"][data-col="5"],
.cell[data-row="5"][data-col="6"],
.cell[data-row="6"][data-col="5"],
.cell[data-row="6"][data-col="6"] {
    visibility: hidden;
    cursor: default;
}

.cell::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: #D2B48C;
}

.peg {
    position: relative;
    z-index: 1;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background-color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.peg.selected {
    background-color: #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.7);
}