File tree Expand file tree Collapse file tree 1 file changed +87
-0
lines changed Expand file tree Collapse file tree 1 file changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ body {
2+ font-family : Arial, sans-serif;
3+ display : flex;
4+ justify-content : center;
5+ align-items : center;
6+ height : 100vh ;
7+ margin : 0 ;
8+ background-color : # eeddf0 ;
9+ }
10+
11+ h1 {
12+ color : # d38692 ;
13+ font-size : 2em ;
14+ }
15+
16+ .container {
17+ text-align : center;
18+ background-color : # a7f1c5 ;
19+ padding : 20px ;
20+ border-radius : 8px ;
21+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.1 );
22+ }
23+
24+ .game-board {
25+ display : grid;
26+ grid-template-columns : repeat (4 , 100px );
27+ grid-template-rows : repeat (4 , 100px );
28+ gap : 10px ;
29+ margin-bottom : 20px ;
30+ }
31+
32+ .card {
33+ width : 100px ;
34+ height : 100px ;
35+ background-color : # eee ;
36+ display : flex;
37+ align-items : center;
38+ justify-content : center;
39+ font-size : 2em ;
40+ cursor : pointer;
41+ color : transparent;
42+ perspective : 1000px ; /* Added for 3D effect */
43+ }
44+
45+ .card-inner {
46+ width : 100% ;
47+ height : 100% ;
48+ display : flex;
49+ align-items : center;
50+ justify-content : center;
51+ transition : transform 0.6s ;
52+ transform-style : preserve-3d;
53+ position : relative;
54+ }
55+
56+ .card-front ,
57+ .card-back {
58+ position : absolute;
59+ width : 100% ;
60+ height : 100% ;
61+ backface-visibility : hidden;
62+ }
63+
64+ .card-front {
65+ background-color : # e68ce0 ;
66+ }
67+
68+ .card-back {
69+ background-color : # fff ;
70+ font-size : 60px ;
71+ color : # 000 ;
72+ transform : rotateY (180deg );
73+ }
74+
75+ .card .flipped .card-inner {
76+ transform : rotateY (180deg );
77+ }
78+
79+ button {
80+ padding : 15px 20px ;
81+ font-size : 18px ;
82+ font-weight : 600 ;
83+ color : rgb (228 , 240 , 240 );
84+ border : none;
85+ cursor : pointer;
86+ background-color : # 008cba ;
87+ }
You can’t perform that action at this time.
0 commit comments