body {
    background-color: white;
}

.grid {
    /* background-color: rgba(0,0,0,.2); */
    margin: 50px auto;
    vertical-align: center;
    width: 300px;
    height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template rows: 1fr 1fr 1fr;
    grid-gap: 12px;
    /* border-radius: 4px; */
    /* box-shadow: rgba(0, 0, 0, 0.3) 0px 17px 50px; */
    background-image: url(../images/grid.png);
    background-size: 100%;
    background-position: center left;
}

.space {
    /* background-color: white; */
    transition: background-color .5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.space:hover {
    background-color: rgba(0,0,0,0);
    transition: background-color .5s;
    cursor: pointer;
}

.x, .o {
    font-size: 70px;
    position: absolute;
    background-size: 55%;
    width: 80px;
    height: 80px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
    transition: .4s ease;
}

.x {
    color: tomato;
    background-image: url(../images/ico-movil.png);
}

.o {
    color: #33DBFF;
    background-image: url(../images/ico-fibra.png);
    background-size: 65%;
    width: 80px;
    height: 80px;
}

.win .x {
    background-image: url(../images/ico-movil-win.png);
    background-size: 70%;
}

.win .o {
    background-image: url(../images/ico-fibra-win.png);
    background-size: 80%;
}

.game-end .space:not(.win) .x {
    background-size: 40%;
}

.game-end .space:not(.win) .o {
    background-size: 50%;
}

.header {
    font-size: 35px;
    color: tomato;
    text-align: center;
    margin-top: 50px;
}


.wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.p1, .p2 {
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}

.p1 {
    color: tomato;
    margin-left: 20px;
}

.p2 {
    color: #33DBFF;
    margin-right: 20px;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
