.memory-container {
    display: grid;
    grid-template-columns: repeat(4, 160px);
    grid-template-rows: repeat(4, 160px);
    gap: 10px;
    justify-content: center;
    margin: 40px auto;
    align-items: center;
}

.memory-card {
    width: 150px;
    height: 150px;
    perspective: 800px;
    cursor: pointer;
    position: relative;
}

.memory-card .front,
.memory-card .back {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.5s;
}

.memory-card .front {
    background-image: url('./../img/logo-klecks.png');
    background-size: contain;
    background-position: center;
    transform: rotateY(0deg);
    border: 1px solid #ccc;
}

.memory-card .back {
    border: 1px solid #ccc;
    transform: rotateY(180deg);
    background-size: contain;
    background-position: center;
}

.memory-card.flipped .front {
    transform: rotateY(-180deg);
}

.memory-card.flipped .back {
    transform: rotateY(0deg);
}

.memory-icon-container img {
    height: 170px;
    width: auto;
    transform: translate(-120%, -90%);
}

.memory-icon-container {
    margin-bottom: -170px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.memory-result {
    display: none;
    text-align: center;
    margin-top: 15px;
}

