-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
86 lines (75 loc) · 1.41 KB
/
style.css
File metadata and controls
86 lines (75 loc) · 1.41 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
77
78
79
80
81
82
83
84
85
86
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Segoe UI", sans-serif;
}
body {
min-height: 100vh;
background: linear-gradient(135deg, #667eea, #764ba2);
display: flex;
justify-content: center;
align-items: center;
}
.container {
background: #ffffff;
padding: 25px 30px;
border-radius: 15px;
width: 360px;
text-align: center;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
h1 {
margin-bottom: 15px;
color: #333;
}
.stats {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
font-size: 16px;
font-weight: 600;
}
.game-board {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
margin-bottom: 20px;
}
.card {
height: 65px;
background: #4f46e5;
color: white;
font-size: 28px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
cursor: pointer;
transition: transform 0.2s ease, background 0.2s ease;
}
.card:hover {
transform: scale(1.05);
}
.card.flipped {
background: #22c55e;
}
.card.matched {
background: #16a34a;
cursor: default;
}
button {
width: 100%;
padding: 10px;
font-size: 16px;
font-weight: bold;
background: #ef4444;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s ease;
}
button:hover {
background: #dc2626;
}