body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    background-color: #acc2c2;
    margin: 2% 15%;
    overflow: hidden;
}

h1{
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Varela Round", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    text-align: center;
    font-size: 5vh;
}

#memory-game {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: auto;
    perspective: 1000px;
    min-width: 70vw;
    max-height: 70vh;
}

.card {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    min-height: 5%;
    max-width: 100%;
    aspect-ratio: 1/1;
}

.card span {
    backface-visibility: hidden;
}


.flipped {
    background: url("../assets/img/carte.png") no-repeat scroll center;
    background-size: cover;
    transform: rotateY(180deg);
}

.flipped>span{
    opacity: 0;
}

.wrong{
    border-color: red;
}

.found {
    background-color: #8aff8a;
    cursor: default;
}

.invisibleFound{
    opacity: 0;
}

.center-text {
    text-align: center;
}

.hidden {
    display: none;
}