-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
76 lines (65 loc) · 1.08 KB
/
style.css
File metadata and controls
76 lines (65 loc) · 1.08 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
73
74
75
76
body {
margin: 0;
font-family: Arial, sans-serif;
}
header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 20px;
}
#game_status {
display: flex;
justify-content: space-around;
width: 100%;
margin-bottom: 10px;
}
#controls {
display: flex;
justify-content: space-around;
width: 100%;
margin-bottom: 20px;
}
#game_grid {
border: 2px solid tomato;
width: 600px;
height: 600px;
margin: auto;
display: flex;
flex-wrap: wrap;
perspective: 1000px;
justify-content: center;
align-items: center;
}
.card {
width: calc(100% / 4);
height: calc(100% / 4);
position: relative;
transition: transform 1s;
transform-style: preserve-3d;
margin: 5px;
}
img {
width: 100%;
height: 100%;
}
.front_face, .back_face {
position: absolute;
backface-visibility: hidden;
width: 100%;
height: 100%;
}
.flip {
transform: rotateY(180deg);
}
.front_face {
transform: rotateY(180deg);
}
body.light-theme {
background-color: #ffffff;
color: #000000;
}
body.dark-theme {
background-color: #000000;
color: #ffffff;
}