-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
72 lines (63 loc) · 1.12 KB
/
styles.css
File metadata and controls
72 lines (63 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
* {
box-sizing: border-box;
}
body {
margin: 0;
background: rgb(238, 174, 202);
background: linear-gradient(
90deg,
rgba(238, 174, 202, 1) 0%,
rgba(148, 187, 233, 1) 100%
);
}
.container {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.board {
width: 450px;
display: flex;
flex-wrap: wrap;
background-color: #63e89e;
padding: 10px;
border-radius: 10px;
}
.card-container {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 25%;
height: 100px;
position: relative;
transition: transform 1s;
transform-style: preserve-3d;
perspective: 600px;
}
.card-face {
background-color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
border: 5px solid #fff810;
font-size: 35px;
position: absolute;
height: 90%;
width: 90%;
backface-visibility: hidden;
cursor: pointer;
}
.solved {
background-color: greenyellow;
}
.card-back {
background-color: #ffd4f6 !important;
}
.card-front {
transform: rotateY(180deg);
}
.card-container.flipped {
transform: rotateY(180deg);
}