main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.memo-container {
    box-sizing: border-box;
    transform-style: preserve-3d;
    padding: 10px;
}

.memo-row {
    display: flex;
    height: 25%;
    width: 100%;
}

.memo-cell {
    box-sizing: border-box;
    height: 100%;
    width: 25%;
    background-color: rgb(20, 20, 20);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 1px solid black;
}

.memo-cell.matched {
    background-color: rgb(40, 100, 40);
}

.in-animation {
    animation: flip 400ms ease-in-out;
}

.scores {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 25px;
    bottom: 25px;
}

.scores div {
    display: flex;
}

.scores div .score-value {
    text-align: center;
    width: 30px;
}

@keyframes flip {
    50% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}