-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
122 lines (107 loc) · 2.16 KB
/
style.css
File metadata and controls
122 lines (107 loc) · 2.16 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
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
body {
margin: 0;
padding: 0;
background: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: 'Courier New', monospace; /* Fonte retro */
position: relative;
}
canvas {
border: none;
cursor: crosshair;
}
canvas:hover {
cursor: crosshair;
}
#ui-layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#hud {
padding: 20px;
display: flex;
justify-content: flex-start;
}
#faith-bar-container {
display: flex;
align-items: center;
gap: 10px;
}
#faith-label {
color: #FFD700; /* Dourado */
font-size: 18px;
font-weight: bold;
text-shadow: 2px 2px 0px #000;
}
#faith-bar {
width: 200px;
height: 20px;
background: #333;
border: 2px solid #FFD700;
position: relative;
overflow: hidden;
}
#faith-fill {
height: 100%;
background: linear-gradient(to right, #FFD700, #FFFFFF);
transition: width 0.3s ease, background-color 0.3s ease;
width: 100%;
}
#faith-bar.damage {
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
20%, 40%, 60%, 80% { transform: translateX(5px); }
}
#game-over {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
#game-over-content {
text-align: center;
color: #FFD700;
background: rgba(20, 20, 20, 0.9);
padding: 40px;
border: 3px solid #FFD700;
border-radius: 10px;
}
#game-over-content h1 {
font-size: 24px;
margin-bottom: 20px;
text-shadow: 2px 2px 0px #000;
}
#restart-btn {
background: #FFD700;
color: #000;
border: none;
padding: 10px 20px;
font-size: 16px;
font-family: inherit;
cursor: pointer;
pointer-events: all;
border-radius: 5px;
font-weight: bold;
}
#restart-btn:hover {
background: #FFFFFF;
}