html,
body {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5em;
}

h2 {
    text-align: center;
    margin-top: 1em;
    font-size: 2rem;
    margin-bottom: 0.5em;
}

.play-area {
    margin: 50px auto;
    display: grid;
    width: 300px;
    height: 300px;
    grid-template-columns: auto auto auto;
}

.space {
    width: 100px;
    height: 100px;
    align-content: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    border: 3px solid black;
    transition: background 0.2s ease-in-out;
    cursor: pointer;
}

.space:hover {
    background: lightgrey;
}

#space_0,
#space_1,
#space_2 {
    border-top: none;
}

#space_0,
#space_3,
#space_6 {
    border-left: none;
}

#space_6,
#space_7,
#space_8 {
    border-bottom: none;
}

#space_2,
#space_5,
#space_8 {
    border-right: none;
}

button {
    outline: none;
    border: 4px solid green;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    background: none;
    transition: all 0.2s ease-in-out;
}

button:hover {
    cursor: pointer;
    background: green;
    color: white;
}

.greenText {
    color: green;
}

.redText {
    color: red;
}

.draw {
    color: orangered;
}

img {
    padding: 10px;
    height: 80px;
    width: 80px;
}

.win {
    background-color: aquamarine;
}

@media only screen and (max-width: 600px) {

    h1 {
        font-size: 3rem;
        margin-bottom: 0.5em;
    }

    h2 {
        margin-top: 1em;
        font-size: 1.3rem;
    }
}
