-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
130 lines (116 loc) · 2.67 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
121
122
123
124
125
126
127
128
129
130
body {
margin: 0;
padding: 0;
overflow: hidden;
font-size: 24px;
letter-spacing: 2px;
color: white;
font-family: Arial, sans-serif;
background-color: #000000;
text-align: center;
text-shadow:
-1px -1px 3px #000,
1px -1px 3px #000,
-1px 1px 3px #000,
1px 1px 3px #000;
}
canvas {
display: block;
}
.hud {
display: none;
position: absolute;
width: 100%;
height: 64px;
box-sizing: border-box;
justify-content: space-between;
align-items: center;
padding: 4px 8px;
background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
}
.main-menu-screen {
display: none;
position: absolute;
user-select: none;
font-size: 38px;
letter-spacing: 8px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 66%;
flex-direction: column;
justify-content: space-between;
}
.game-title {
font-size: 38px;
letter-spacing: 12px;
color: #ffffff;
animation: glow 2s infinite alternate;
}
@keyframes glow {
from {
text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}
to {
text-shadow: 0 0 25px rgba(0, 255, 255, 1);
}
}
.controls {
font-size: 24px;
letter-spacing: 4px;
}
.asteroid-counter {
text-align: left;
}
.timer {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.score {
text-align: right;
}
.game-over-screen {
display: none;
position: absolute;
user-select: none;
font-size: 38px;
letter-spacing: 8px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
flex-direction: column;
justify-content: center;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
animation: glow 2s infinite alternate;
}
.button {
cursor: pointer;
font-size: 18px;
letter-spacing: 2px;
color: #00ffff;
background: #00000030;
padding: 12px 24px;
border-radius: 50px;
border: 2px solid #00ffff;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.2);
transition: all 0.05s ease;
}
.button:hover {
transform: scale(1.05);
color: #ffffff;
background: #00000030;
border: 2px solid #00ffff;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4);
}
.button:active {
transform: scale(0.95);
color: #ffffff;
background: #00000030;
border: 2px solid #00ffff;
box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
}