@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

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

h1 {
    margin-block: 2rem;
    font-size: 3em;
    font-weight: 800;
    color: #333;
}

h2 {
    font-size: 1.85rem;
    margin-block: 2rem 1rem;
    color: #777;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    margin-block: auto;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    cursor: pointer;
    background-color: #EEE;
    border-radius: 20px;
    border: solid 2px #DDD;
    animation: fadeInCard .7s .2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes fadeInCard {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cell:hover {
    background-color: #DDD;
}

#restartButton {
    padding: 15px 20px;
    font-size: 1.3em;
    cursor: pointer;
    margin-bottom: 2rem;
    background-color: #333;
    color: #FFF;
    border: none;
    font-weight: 700;
    border-radius: 20px;
}

.cell.x,
#gameStatus.x {
    color: #6f0fed;
}

.cell.o,
#gameStatus.o {
    color: #F32FAB;
}

.cell.winX {
    background-color: rgba(111, 15, 237, 0.2);
}

.cell.winO {
    background-color: rgba(243, 47, 171, 0.2);
}