#game-wrapper{
    margin: 30px auto 0;
    width: 300px;
    font-family: 'Open Sans', sans-serif;
}

#game-wrapper .grid{
    width: 300px;
    height: 300px;
    display: flex;
    flex-flow: row wrap;
}

#game-wrapper .cell{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    background-color: #587a78;
    cursor: pointer;
    transition: all .5s;
    position: relative;
    transform-style: preserve-3d;
    color: #ddd;
}

#game-wrapper .cell::after {
    width: 100%;
    height: 100%;
    background-color: #339a76;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transform: rotateY(180deg);
}

#game-wrapper .cell.hide {
    transform: rotateY(180deg);
}

#game-wrapper .info-panel{
    text-align: center;
    font-weight: bold;
    padding: 20px 0;
    font-size: 24px;
}

#game-wrapper .info-panel .red{
    color: darkred;
}
#game-wrapper .info-panel .green{
    color: darkgreen;
}
