body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #8b8b8b;
}

#app {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-image: url('mesa.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-grid {
    display: grid;
    gap: 5px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.card {
    width: 90px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    background-color: #892222;
    transition: transform 0.3s ease-in-out;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.nivel {
    background-color: #6dd283bb;
    border-radius: 10px;
}

.card.flipped,
.card.matched {
    background-color: transparent;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card div {
    font-size: 2rem;
    font-weight: bold;
}

.grid-3 {
    grid-template-columns: repeat(3, 90px);
}

.grid-5 {
    grid-template-columns: repeat(5, 90px);
}

.grid-7 {
    grid-template-columns: repeat(5, 90px);
    grid-template-rows: repeat(3, 120px);
}