* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif, sans-serif;
    text-align: center;
    padding: 30px;
}

h1 {
    margin-bottom: 20px;
}

#scoreboard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#player1, #player2 {
    font-size: 20px;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(8, 80px); /* 8 Spalten, jede 80px breit */
    grid-template-rows: repeat(8, 80px);    /* 8 Zeilen, jede 80px hoch */
    gap: 8px;                               /* Abstand zwischen den Karten */
    justify-content: center;
    margin-top: 30px;
}

.card {
    width: 80px;
    height: 80px;
    background-color: #eb0ca0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card img {
    display: none;
    width: 70%;  /* Bildgröße anpassen */
    height: 70%;
    border-radius: 5px;
}

.card.flipped img {
    display: block;
}

.card.matched {
    background-color: #2cc96d;
    cursor: not-allowed;
}

#winner {
    font-size: 24px;
    margin-top: 20px;
    font-weight: bold;
}

#restart-container {
    margin-top: 20px;
}

#restart-button {
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#restart-button:hover {
    background-color: #45a049;
}
