body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    font-family: 'Poppins', sans-serif;
}

.game-container {
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* Large board layout (3x3 boards) */
.large-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Smaller gap between rows of boards */
    width: 100%; /* Take full width */
    max-width: 80vw; /* Cap at 80% of viewport width */
}

/* Row that contains 3 boards */
.row {
    display: flex;
    justify-content: center;
    gap: 10px; /* Smaller gap between individual boards */
}

/* Each board is smaller now */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px; /* Smaller gap between cells */
    width: 15vw; /* Each board is 15% of the viewport width */
    max-width: 25%; /* Max width for each board */
    aspect-ratio: 1 / 1; /* Keep the board square */
}

.active-board {
    border: 3px solid #ff004f; /* Highlight the board with a red border */
    background-color: #f9f9f9; /* Change the background color slightly */
    transition: border 0.3s ease;
}

/* Each cell in the tic-tac-toe grid */
.cell {
    background-color: #fff;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem; /* Reduced font size */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.5s ease;
}

/* Hover effect for the cell */
.cell:hover {
    background-color: #f0f0f0;
}

button#restart {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ff004f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 1rem;
}

button#restart:hover {
    background-color: #e60042;
}

.cell.about-to-remove {
    background-color: #ff004f;
    color: white; /* Change symbol color for contrast */
}

.button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ff004f;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;  
    cursor: pointer;
    margin: 1rem;
}
