body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
    margin: 0;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    font-size: 24px;
}

nav {
    background-color: #333;
    overflow: hidden;
}

nav button {
    background-color: #333;
    color: white;
    border: none;
    padding: 14px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    float: left;
}

nav button:hover {
    background-color: #ddd;
    color: black;
}

.game {
    display: none;
    padding: 20px;
    background-color: white;
    margin: 20px auto;
    border: 1px solid #ccc;
    width: 50%;
}

canvas {
    border: 1px solid black;
    background-color: #fff;
}

#matchingCards, #puzzlePieces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card, .puzzle-piece {
    width: 60px;
    height: 60px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
}
