/* Apply a lighter gradient background and center the container */
:root {
    --player1col: #0f9;
}
:root {
    --player2col: #f09;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, var(--player1col), #3a3a3a);
    color: #f4f4f4;
    transition: background 1s ease-out; /* Adjusted transition */
}



/* Style the main container and add some padding and shadow */
.container {
    text-align: center;
    background: #3b3b3b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style the heading */
h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #f4f4f4;
}

/* Adjust the grid layout for the board */
.board {
    display: grid;
    grid-template-columns: repeat(7, 60px);
    grid-template-rows: repeat(6, 60px);
    gap: 5px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Style the cells with better colors and transitions */
.cell {
    width: 60px;
    height: 60px;
    background-color: #555;
    border: 2px solid #777;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.5s, opacity 0.5s;
}

/* Differentiate player pieces with distinctive colors */
.cell.player1 {
    background-color: var(--player1col);
}

.cell.player2 {
    background-color: var(--player2col);
}

/* Add hover effect to columns for empty cells */
.board .cell.empty {
    opacity: 1;
}

.board .cell.empty:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

/* Highlight winning cells */
.board .cell.win {
    background-color: #0ff; /* Adjust as needed */
}

/* Style the info section and button */
.info {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #00bcd4;
    color: #2c2c2c;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0097a7;
}

/* Style the message display */
#message {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
