p {
    text-align: center;
    font-size: 24px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(7, 53, 70, 0.958);
}

.memory-board {
    display: flex;
    flex-wrap: wrap;
    width: 550px;
}

.memory-card {
    width: 100px;
    height: 100px;
    margin: 5px;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 5px;
}

.memory-card-front {
    transform: rotateY(180deg);
}

.memory-card-back {
    background-image: url('media/cards/back.png');
}

.memory-card-front,
.memory-card-back {
    background-size: cover;
}

#win-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    color: #02874D; /* Grön färgkod */
    text-decoration: none; /* Ta bort standard understrykning */
}
