body {
    background: #f4f4f4;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.home-button {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}
.home-button:hover {
    background: #555;
}

.title {
    font-size: 32px;
    margin-bottom: 20px;
}

#ttt-container {
    width: 500px;          /* match your canvas width */
    margin: 0 auto;        /* center everything */
    text-align: center;
}

#commentary {
    margin-top: 20px;
    font-size: 20px;
    color: #444;
    width: 100%;           /* same width as board */
    max-width: 500px;      /* enforce alignment */
    margin-left: auto;
    margin-right: auto;
}


#game-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    
}

#board {
    background: #FAE4C0;
    border-radius: 5px;
    border: 2px solid #333;
    width: 500px;
    height: 500px;
    display: block;
}

#mode-buttons {
    margin-bottom: 20px;
}

#mode-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
}

/* TTT Thinking Indicator */
.ttt-thinking {
    display: none;
    font-size: 20px;
    font-weight: bold;
    color: #4da3ff;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Animated dots */
.ttt-thinking .dots::after {
    content: '';
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: ttt-dots 1.2s steps(4, end) infinite;
}

/* Keyframes */
@keyframes ttt-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

