body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: #282c34;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-image: url('wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(5, 150px); /* 5 cards per row */
    grid-gap: 10px;
    margin-top: 50px;
}

.memory-card {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    transform: scale(1);
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.memory-card img, .back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
}

.front-face {
    transform: rotateY(180deg);
}

.back-face {
    background-color: #1171f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: white;
}

h1 {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-top: 20px;
}