-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
139 lines (124 loc) · 2.93 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
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
139
body {
font-family: "Verdana", sans-serif; /* Change the font family to Verdana */
background-color: #170020;
color: #ffffff;
animation: animateBackground 10s ease infinite;
}
@keyframes animateBackground {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
section {
text-align: center;
}
body {
position: relative;
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
background-color: #11213a;
}
.cell {
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
width: 100px;
height: 100px;
box-shadow: 2px 2px 2px 2px #8307b0;
border: 2px solid #52005e;
cursor: pointer;
line-height: 100px;
font-size: 60px;
border-radius: solid 60px;
}
.game--title {
font-size: 100px;
color: #9c36c8;
margin: 10px auto;
}
.game--container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Update grid-template-columns */
max-width: 306px; /* Change width to max-width */
width: 100%; /* Add this to make it responsive */
margin: 10px auto;
background-color: #426193;
color: #fbfbfb;
border-radius: solid 2px;
}
.game--status {
font-size: 50px;
color: #8b2fb3;
margin: 20px auto;
}
.game--restart {
background-color: #3b0377;
width: 200px;
height: 50px;
font-size: 18px;
color: #efeeef;
border: none;
cursor: pointer;
border-radius: 25px; /* Increase the border-radius for a rounded button */
margin: 20px auto;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s ease, color 0.3s ease; /* Add a smooth transition effect */
}
.game--restart:hover {
color: #a740d3; /* Change the background color on hover */
color: #c035ca; /* Change the text color on hover */
}
/* Rest of the CSS code */
/* Add the following CSS for animations */
@keyframes cellAnimation {
0% {
transform: scale(0);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.cell {
width: 100px;
height: 100px;
display: inline-block;
border: 2px solid #ccc;
background-color: #440268;
font-size: 60px;
text-align: center;
line-height: 100px;
cursor: pointer;
animation: cellAnimation 0.5s ease;
}
#message {
font-size: 24px;
margin-top: 20px;
display: none;
}
#restart-btn {
margin-top: 20px;
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
#restart-btn:hover {
background-color: #45a049;
}
.footer {
text-align: center;
margin-top: 40px;
font-size: 12px;
color: #5e5e5e;
}