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.
65 lines
1.0 KiB
65 lines
1.0 KiB
body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background-color: #f0f0f0;
|
|
margin-left: 15vh;
|
|
margin-right: 15vh;
|
|
}
|
|
|
|
#memory-game {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
grid-template-rows: repeat(4, minmax(0, 1fr));
|
|
gap: 10px;
|
|
margin: auto;
|
|
}
|
|
|
|
.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: background-color 0.3s ease;
|
|
min-height: 10vh;
|
|
min-width: 20vh;
|
|
aspect-ratio: 1/1;
|
|
}
|
|
|
|
.flipped {
|
|
background: url("../assets/img/carte.png") no-repeat scroll center;
|
|
background-size: cover;
|
|
}
|
|
|
|
.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;
|
|
}
|