You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae_2a_anglais/Project/php/css/memory.css

78 lines
1.4 KiB

body {
display: flex;
justify-content: center;
align-items: center;
height: 90vh;
background-color: #acc2c2;
margin: 2vh 15vh;
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;
}
.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: 5vh;
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;
}