-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemoryMatch.css
More file actions
138 lines (109 loc) · 2.08 KB
/
memoryMatch.css
File metadata and controls
138 lines (109 loc) · 2.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
body {
text-align: center;
font-family: Arial;
background: radial-gradient(circle, #1f2a44, #0b0f1a);
color: white;
margin: 0;
display: flex;
justify-content: center;
min-height: 100vh;
overflow-x: hidden;
}
#gameBoard {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
width: 90vw;
max-width: 420px;
margin: 20px auto;
border-radius: 6px;
box-shadow: 0 10px 25px rgba(0,0,0,0.6);
box-sizing: border-box;
}
.card {
width: 100%;
aspect-ratio: 1 / 1;
background: linear-gradient(145deg, #555, #333);
border-radius: 10px;
border: 2px solid #222;
color: white;
font-size: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: scale(1.05);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8);
}
.card.flipped {
background: linear-gradient(145deg, #4f7fff, #2a54c7);
}
a {
color: #00d4ff;
}
a:hover {
color: #66e6ff;
}
#gameContainer {
text-align: center;
max-width: 800px;
width: 100%;
padding: 0 15px;
}
#gameInfo h2 {
font-size: 40px;
margin-bottom: 10px;
}
.description,
.instructions {
font-size: 18px;
max-width: 650px;
margin: 10px auto;
line-height: 1.6;
}
#playerSetup {
margin-top: 15px;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
#playerName input {
margin: 0 10px;
padding: 6px;
}
#status {
font-size: 24px;
font-weight: bold;
margin-top: 15px;
}
button {
padding: 8px 18px;
font-size: 15px;
background: #3a6df0;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
button:hover {
background: #2b52b8;
}
@media (max-width: 600px) {
#gameInfo h2 {
font-size: 28px;
}
.description,
.instructions {
font-size: 16px;
padding: 0 15px;
}
.card {
font-size: 28px;
}
}