.memory-game {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    height: 100vh;
}
h1{
    margin-right: 20px;
    margin-bottom: 20px;
}
p{
    margin-right: 20px;
}
button{
    margin:10px;
}
.cards {
    /*display: grid;
    grid-template-columns: repeat(5, 150px);
    grid-gap: 10px;*/
    display: flex;
    flex-wrap: wrap;
    /*min-width: 325px;*/
}

.card {
    width: 121px;
    height: 137px;
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    font-family: cursive;
    border: solid darkgray 3px;
}

.card .front, .back, img {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.card .back {
    background: #f2f2f2;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.card.matched {
    background: #7FFF00;
    cursor: default;
}

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

.card.flipped .front {
    display: none;
}
.topdiv{
    width: 550px; 
}
#personName{
    font-size: small;
}
