-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
163 lines (156 loc) · 3.7 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
body{
background: linear-gradient(90deg, #001f3f, #003366, #004080);
}
.grid{
width: 300px;
height: 300px;
display: flex;
flex-wrap: wrap;
border: 5px solid transparent;
border-radius: 15px;
box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 20%, transparent 40%);
background-clip: border-box;
margin-left: 30rem;
margin-top: 5rem;
}
.grid div{
height: 20px;
width: 20px;
}
.invaders {
position: relative;
width: 20px;
height: 20px;
background: radial-gradient(circle, #ff3333 50%, #cc0000 70%);
border-radius: 3px; /* Slight rounding for pixelated look */
box-shadow: 0 0 4px rgba(255, 0, 0, 0.8);
}
.invaders::before, .invaders::after {
content: '';
position: absolute;
width: 4px;
height: 4px;
background: radial-gradient(circle, #ff3333 50%, #cc0000 70%);
border-radius: 50%;
}
.invaders::before {
top: 2px;
left: 2px;
}
.invaders::after {
bottom: 2px;
right: 2px;
}
.shooter {
width: 20px;
height: 20px;
background: radial-gradient(circle, rgba(0, 255, 255, 0.9) 50%, rgba(0, 255, 255, 0) 70%);
border-radius: 50%;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
transition: all 0.3s ease;
}
.shooter:hover {
background: radial-gradient(circle, rgba(0, 255, 255, 1) 50%, rgba(0, 255, 255, 0) 70%);
box-shadow: 0 0 12px rgba(0, 255, 255, 1);
}
.laser {
position: relative;
width: 20px;
height: 4px;
background: linear-gradient(to bottom, #00ff99, #009966);
border-radius: 2px;
box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
animation: pulse 0.5s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}
50% {
box-shadow: 0 0 16px rgba(0, 255, 255, 1);
}
100% {
box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}
}
.boom {
position: relative;
width: 20px;
height: 20px;
background: radial-gradient(circle, #ff0000 0%, transparent 60%);
border-radius: 50%;
opacity: 1;
pointer-events: none;
animation: explode 0.5s ease-out forwards;
}
@keyframes explode {
0% {
transform: scale(1);
opacity: 1;
}
100% {
transform: scale(3);
opacity: 0;
}
}
.str-btn{
margin-left: 34rem;
margin-top: 3rem;
display: inline-block;
padding: 15px 30px;
font-size: 20px;
font-weight: bold;
color: #fff;
background-color: #00ff99;
border: 2px solid #00ff99;
border-radius: 10px;
text-align: center;
text-transform: uppercase;
cursor: pointer;
box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
transition: all 0.3s ease;
}
.str-btn:hover {
background-color: #00cc99;
border-color: #00cc99;
box-shadow: 0 0 25px rgba(0, 255, 255, 1);
}
.result{
font-size: 24px;
font-weight: bold;
color: #00ff99;
padding: 10px 20px;
text-align: center;
margin: 20px auto;
width: 90%;
max-width: 600px;
}
.score{
font-size: 24px;
font-weight: bold;
color: #00ff99;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
border: 2px solid #00ff99;
border-radius: 10px;
padding: 10px 20px;
text-align: center;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
margin: 20px auto;
width: 90%;
max-width: 600px;
}
.hidden{
font-size: 24px;
font-weight: bold;
color: #00ff99;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
border: 2px solid #00ff99;
border-radius: 10px;
padding: 10px 20px;
text-align: center;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
margin: 20px auto;
width: 90%;
max-width: 600px;
}