-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeathScreen.css
More file actions
69 lines (64 loc) · 1.27 KB
/
deathScreen.css
File metadata and controls
69 lines (64 loc) · 1.27 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
/* Death Screen Styles */
.death-screen {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.8);
padding: 30px;
border-radius: 10px;
text-align: center;
display: none;
border: 3px solid #ff0000;
box-shadow: 0 0 20px #ff0000;
animation: pulse 2s infinite;
}
.death-screen h2 {
color: #ff0000;
font-size: 48px;
margin-top: 0;
text-shadow: 0 0 10px #ff0000;
animation: flicker 1s infinite;
}
.restart-button {
background-color: #ff0000;
color: white;
border: none;
padding: 15px 30px;
margin: 20px 0;
border-radius: 25px;
cursor: pointer;
font-size: 20px;
font-weight: bold;
transition: all 0.3s;
box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}
.restart-button:hover {
background-color: #cc0000;
transform: scale(1.1);
box-shadow:
0 0 15px #ff0000,
0 6px 12px rgba(255, 0, 0, 0.4);
}
@keyframes pulse {
0% {
box-shadow: 0 0 20px #ff0000;
}
50% {
box-shadow: 0 0 30px #ff0000;
}
100% {
box-shadow: 0 0 20px #ff0000;
}
}
@keyframes flicker {
0% {
opacity: 1;
}
50% {
opacity: 0.8;
}
100% {
opacity: 1;
}
}