-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
120 lines (102 loc) · 2.43 KB
/
styles.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: cursive;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
margin: 0;
background-image: url(images/darkwall.jpg);
background-position: center;
background-size: cover;
}
.game-container {
display: grid;
grid-template-columns: repeat(3, 150px);
grid-gap: 0px;
}
.cell {
width: 150px;
height: 150px;
display: flex;
justify-content: center;
align-items: center;
font-size: 120px;
color: #fff;
cursor: pointer;
transition: 1s;
/* animation: grow 1s forwards; */
}
.cell.first {
box-shadow: 5px 5px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.second {
box-shadow: 0px 5px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.third {
box-shadow: -5px 5px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.fourth {
box-shadow: 5px 0px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.fifth {
box-shadow: 0px 0px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.sixth {
box-shadow: -5px 0px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.seventh {
box-shadow: 5px -5px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.eighth {
box-shadow: 0px -5px 5px 3px rgba(0, 200, 225, 0.8)
}
.cell.nineth {
box-shadow: -5px -5px 5px 3px rgba(0, 200, 225, 0.8)
}
@keyframes grow{
0%{
opacity: 0.1;
}
100%{
opacity: 1;
}
}
.popup {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
justify-content: center;
align-items: center;
}
.popup-content {
background: linear-gradient(to bottom right, blue, pink);
padding: 20px;
border-radius: 5px;
text-align: center;
font-size: 55px;
font-weight: bolder;
color: red;
}
#restartButton {
padding: 8px 16px;
background: linear-gradient(to bottom right, pink, blue);
border-radius: 50%;
box-shadow: 0px 0 5px 5px rgba(200, 200, 225, 0.6);
color: #fff;
border: none;
font-weight: bolder;
border-radius: 6px;
font-size: 20px;
cursor: pointer;
margin-top: 10px;
}