body {
    text-align: center;
    vertical-align: middle;
    color: black;
}

a {
    text-decoration: none;
}

div {
    margin: auto;
}

button {
    display: inline-block;
    cursor: pointer;
    padding: 20px;
    margin: 2px 1px;
    vertical-align: middle;
}

/* Resize per smartphone */
@media only screen and (max-width: 1024px) {
    button {
        padding: 12px;
    }
}

.container {
    position: relative;
    justify-content: center;
    align-items: center;
    width: 40%;
}

/* Resize per smartphone */
@media only screen and (max-width: 1024px) {
    .container {
        width: 80%;
    }
}

.board {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto;
    justify-content: center;
    align-items: center;
}

.line {
    grid-column-start: 1;
    grid-column-end: 8;
}

.player {
    display: inline-block;
    padding: 20px;
    vertical-align: middle;
}

.actions {
    padding: 20px;
    vertical-align: middle;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #e1e4e8;
    margin-top: 2rem;
}

/* The element to apply the animation to */
.win1 {
    animation-name: player1Animation;
    animation-duration: 2s;
}

.win2 {
    animation-name: player2Animation;
    animation-duration: 2s;
}

#win {
    display: none;
    padding: 30px;
}

#tie {
    display: none;
    padding: 30px;
}

#next {
    display: none;
}