/*
    This is the CSS file.
    CSS stands for Cascading Style Sheets. It lets us control how HTML elements look (their color, size, etc).
*/


body {
    background: #f6f6f6;
    font-family: 'Roboto', sans-serif;
}

/* Board Styles */
.game-board {
    display: grid;
    /* A grid arranges its children in a matrix (3 rows x 3 columns) */
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 6px;
    background: #333;
    border-radius: 12px;
    margin: 0 auto;
    padding: 6px;
    /* gives a nice shadow */
    box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1.5px 3px rgba(0,0,0,0.1);
}

.square {
    width: 80px;
    height: 80px;
    background: #fff;
    border: none;
    outline: none;
    font-size: 3rem;
    color: #283593;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0.5px 2px rgba(0,0,0,0.09);
    transition: background 0.18s;
}

.square:disabled {
    cursor: default;
    background: #eaeaea;
    color: #bdbdbd;
}

.square.winner {
    background: #ffc107;
    color: #d32f2f;
}

#game-status {
    margin-top: 22px;
    text-align: center;
    font-size: 1.45rem;
    min-height: 40px;
    font-weight: 500;
}

.game-title {
    letter-spacing: 2px;
    color: #283593;
    font-weight: bold;
    font-size: 2.5rem;
}

#reset-btn {
    font-size: 1.05rem;
    min-width: 120px;
}

/* For smaller screens, make it responsive */
@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(3, 55px);
        grid-template-rows: repeat(3, 55px);
    }
    .square {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }
}

