body {
    font-family: sans-serif;
    text-align: center;
    background: #ebaaff;
}

#grid {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
}

.card {
    width: 80px;
    height: 80px;
    background: #444;
    border-radius: 8px;
    font-size: 2rem;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.revealed {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    color: rgb(0, 0, 0);
}

.matched {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: lightgreen;
    color: black;
    cursor: default;
}
