.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

#mode-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.game-button {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 3px 3px 0px #000000;
}

.game-button:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px #000000;
}

#game-board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    background-color: #000000; /* Grid lines */
    border: 2px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 5px 5px 0px #000000;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cell:hover {
    background-color: #f0f0f0;
}

.cell.x {
    color: #ff6b6b; /* Red for X */
}

.cell.o {
    color: #feca57; /* Yellow for O */
}

.cell.winning {
    background-color: #d4edda; /* Light green for winning cells */
}

#turn-display {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#result-popup {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

#result-message {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}
