.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 2px 30px;
    background-color: #f0f0f0;
    max-width: 1240px;
    margin: 0 auto;
    box-shadow: 0 0 4px 4px #f0f0f0;
    border-radius: 18px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 20px;
}

.move-counter {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

button { margin:0; }

button:hover { background-color: #0056b3;color:#fff; }

.game-board {
    display: grid;
    gap: 5px;
    width: 100%;
    height: 100%;
}

.card {
    background-color: #303032;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: calc(3vw + 3vh);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: black 0px 2px 4px;
    overflow: hidden;
}

.card .rune-symbol,
.card .rune-name {
    display: none; /* Ukrywamy symbole i nazwy domyślnie */
    font-size: 70%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -5px;
}

.card .rune-name {
    font-size: 20%;
    margin-top: -10px;
}

.card.flipped .rune-symbol,
.card.flipped .rune-name {
    display: block;
}

.card.flipped {
    background-color: white;
    color: black;
    cursor: default;
}

.card.match {
    background-color: #28a745;
    color: white;
    cursor: default;
}