-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
59 lines (53 loc) · 1.29 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
body {
margin-top: 100px;
font-family: Arial, sans-serif;
text-align: center;
background-color: #b0e0e6; /* Baby blue */
}
h1 {
margin: 20px;
color: #555;
}
.game-board {
display: grid;
grid-template-columns: repeat(3, 100px);
grid-gap: 5px;
margin: 0 auto;
max-width: 315px;
border: 5px solid #ccc;
border-radius: 10px;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.cell {
width: 100px;
height: 100px;
background-color: #f1c40f; /* bright yellow */
display: flex;
justify-content: center;
align-items: center;
font-size: 40px;
cursor: pointer;
border-radius: 10px;
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.cell:hover {
background-color: transparent; /* Set the background to transparent for the sparkles effect */
transform: scale(.9) rotateZ(360deg); /* Apply scale and rotation for the sparkles */
box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.9), 0px 0px 30px rgba(255, 255, 255, 0.7), 0px 0px 40px rgba(255, 255, 255, 0.5);
}
/* Add animation to indicate cell selection */
.cell.selected {
animation: pulse 0.5s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}