-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathstyle.css
87 lines (77 loc) · 1.42 KB
/
style.css
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
77
78
79
80
81
82
83
84
85
86
87
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #eeddf0;
}
h1 {
color: #d38692;
font-size: 2em;
}
.container {
text-align: center;
background-color: #a7f1c5;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.game-board {
display: grid;
grid-template-columns: repeat(4, 100px);
grid-template-rows: repeat(4, 100px);
gap: 10px;
margin-bottom: 20px;
}
.card {
width: 100px;
height: 100px;
background-color: #eee;
display: flex;
align-items: center;
justify-content: center;
font-size: 2em;
cursor: pointer;
color: transparent;
perspective: 1000px; /* Added for 3D effect */
}
.card-inner {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.6s;
transform-style: preserve-3d;
position: relative;
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.card-front {
background-color: #e68ce0;
}
.card-back {
background-color: #fff;
font-size: 60px;
color: #000;
transform: rotateY(180deg);
}
.card.flipped .card-inner {
transform: rotateY(180deg);
}
button {
padding: 15px 20px;
font-size: 18px;
font-weight: 600;
color: rgb(228, 240, 240);
border: none;
cursor: pointer;
background-color: #008cba;
}