body {
    font-family: "Roboto", sans-serif;
    text-align: center;
    background: #0a0914;
    color: #fff;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*Título */
h1 {
    margin-bottom: 20px;
    color: #6a5acd;
}

/*Tabuleiro*/
.tabuleiro {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
}

/*Quadrados do tabuleiro*/
.celula {
    width: 100px;
    height: 100px;
    background-color: #222;
    border: 2px solid #555;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.celula:hover {
    background-color: #333;
}

/*Botão reiniciar jogo*/
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #6a5acd;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-align: center;
}

button:hover {
    background-color: #555;
    transition: 0.2s;
}

button:active {
    background-color: #222;
    transition: 0.2s;
}

/*cor do X e O */
.celula.x {
    color: #00bfff;
}

.celula.o {
    color: #ff4c4c;
}

@media (max-width: 480px) { /*Telas pequenas */
    h1 {
        font-size: 22px;
    }

    .tabuleiro {
        gap: 8px;
    }

    .celula {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}


@media (max-width: 600px) { /*celulares grandes*/
    .tabuleiro {
        grid-template-columns: repeat(3, 90px);
    }

    .celula {
        width: 90px;
        height: 90px;
        font-size: 40px;
    }
}

@media (max-width: 900px) { /*tablets */
    .tabuleiro {
        grid-template-columns: repeat(3, 110px);
    }

    .celula {
        width: 110px;
        height: 110px;
        font-size: 48px;
    }
}

@media (min-width: 1200px) { /*desktop grande */
    .tabuleiro {
        grid-template-columns: repeat(3, 120px);
    }

    .celula {
        width: 120px;
        height: 120px;
        font-size: 52px;
    }
}