#game {
    padding: 0 0 0 0;
    width: 484px;
    height: 484px;
    text-align: center;
    clear: both;
    flex-direction: row;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    white-space: nowrap;
}

#game {
    border: 2px solid #000;
}

.back #game {
    border-color: #e0e0e0;
}

#game_place .table .back {
    border-color: #e0e0e0;
    opacity: 0.4;
}

#game_place.back .cell, .back .tr {
    border-color: #e0e0e0;
}

#game .table {
    width: 100%;
    height: 100%;
    padding: 0 0 0 0;
}

#game .cell {
    display: inline-block;
    cursor: default;
    width: 33px;
    height: 100%;
    padding: 0 0 0 0;
    border: 1px solid #000;
    margin-left: -1px;
    margin-top: -1px;
    margin-bottom: -1px;
    overflow: hidden;
}

#game .cell:first-child {
    border-left: none;
}

#game .cell:last-child {
    border-right: none;
}

#game .tr {
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    width: 100%;
    height: 33px;
    margin-top: -1px;
}

#game .tr:first-child {
    margin-top: 0px;
    margin-bottom: 1px;
}

#game .tr:first-child .cell {
    border-top: none;
    margin-top: 0px;
}

#game .tr:last-child .cell {
    border-bottom: none;
}


.x {
    background: url('../img/x.png') center center no-repeat;
    background-size: 70% 70%;
    width: 100%;
    height: 100%;
}

.x-win {
    transition: all 0.5s ease;
    background: url('../img/x_win.png') center center no-repeat;
    background-size: 70% 70%;
}

.o {
    background: url('../img/o.png') center center no-repeat;
    background-size: 70% 70%;
    width: 100%;
    height: 100%;
}

.o-win {
    transition: all 0.5s ease;
    background: url('../img/o_win.png') center center no-repeat;
    background-size: 70% 70%;
}

.last-turn {
    background-color: rgba(139, 195, 74, 0.50) !important
}


.back .game-itself {
    overflow: hidden !important;
}

.back .x {
    background-image: url('../img/xd.png');
}

.back .o {
    background-image: url('../img/od.png');
}

.cell:hover {
    background: #73a8bf80;
    position: relative;
}

.back .cell:hover {
    background: none;
}

@media (max-width: 767px) {
    #game {
        width: auto;
        height: 560px;
    }

    #game .cell {
        display: inline-block;
        cursor: default;
        width: 38px;
        height: 38px;
    }

    #game .tr {
        height: 38px;
    }

    #game .table {
        overflow: auto;
    }
}

@media (max-width: 515px), (max-width: 767px) and (max-height: 720px) {
    #game .table {
        overflow: scroll;
    }

    #game {
        width: auto;
        height: 484px;
    }

    #game .cell {
        width: 33px;
        height: 33px;
    }

    #game .tr {
        height: 33px;
    }
}