body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #282c34; /* Dark background */
    color: #f0f0f0; /* Light text */
}

h1 {
    color: #61dafb; /* Accent color for title */
}

#game-wrapper {
    position: relative; /* This is the anchor for the setup overlay */
}

#board {
    display: grid;
    grid-template-columns: repeat(7, 80px);
    grid-template-rows: repeat(6, 80px);
    background-color: #1a1a2e; /* Darker board color */
    border: 5px solid #0f0f1a; /* Darker border */
    padding: 10px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.cell {
    width: 70px;
    height: 70px;
    background-color: #3e4451; /* Darker cell background */
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
    transition: background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.falling-piece {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: absolute;
}

.falling-piece.player1 {
    background-color: #ff6b6b; /* Adjusted player 1 color */
}

.falling-piece.player2 {
    background-color: #ffe66d; /* Adjusted player 2 color */
}

.cell:hover {
    background-color: #555c69; /* Darker hover effect */
}

#game-info {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #f0f0f0;
}

#reset-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #61dafb; /* Accent color for button */
    color: #282c34; /* Dark text on accent button */
    transition: background-color 0.3s, color 0.3s;
}

#reset-button:hover {
    background-color: #21a1f1;
    color: white;
}

/* --- Setup Overlay --- */
#game-setup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 44, 52, 0.95); /* Semi-transparent background */
    z-index: 10;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#game-setup h2, #game-setup h3 {
    color: #f0f0f0;
}

#game-setup button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 5px;
    cursor: pointer;
    border: 2px solid #61dafb; /* Accent border */
    border-radius: 5px;
    background-color: transparent; /* Transparent background */
    color: #61dafb; /* Accent text */
    transition: background-color 0.3s, color 0.3s;
}

#game-setup button:hover {
    background-color: #61dafb;
    color: #282c34;
}

#game-setup button:active {
    background-color: #21a1f1;
    color: white;
}

#ai-difficulty {
    margin-top: 15px;
}
