Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wellsousaaa
GitHub Repository: wellsousaaa/Five-Nights-at-Freddys-Web
Path: blob/main/src/css/Game.css
270 views
1
* {
2
-webkit-touch-callout: none; /* iOS Safari */
3
-webkit-user-select: none; /* Safari */
4
-khtml-user-select: none; /* Konqueror HTML */
5
-moz-user-select: none; /* Old versions of Firefox */
6
-ms-user-select: none; /* Internet Explorer/Edge */
7
user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
8
}
9
10
:root {
11
--background-color: black;
12
--button-color: rgba(255, 255, 255, 0.2);
13
}
14
15
body {
16
width: 100vw;
17
height: 100vh;
18
}
19
20
.custom-night {
21
background-image: url("../media/FNAF.webp");
22
background-size: cover;
23
background-position: center;
24
background-repeat: no-repeat;
25
}
26
27
.animation {
28
background-size: 100vw;
29
background-repeat: no-repeat;
30
background-position: center;
31
}
32
33
.animation[data-right-door="false"][data-left-door="false"] {
34
background-image: url("../media/Textures/Office/Default.webp");
35
}
36
.animation[data-right-door="true"][data-left-door="false"] {
37
background-image: url("../media/Textures/Office/RD.webp");
38
}
39
.animation[data-right-door="false"][data-left-door="true"] {
40
background-image: url("../media/Textures/Office/LD.webp");
41
}
42
.animation[data-right-door="true"][data-left-door="true"] {
43
background-image: url("../media/Textures/Office/RD_LD.webp");
44
}
45
46
@keyframes up {
47
0% {
48
background-position: 0px;
49
}
50
85% {
51
background-position: -9500px;
52
opacity: 1;
53
}
54
100% {
55
opacity: 0;
56
}
57
}
58
@keyframes down {
59
0% {
60
background-position: -9500px;
61
opacity: 1;
62
}
63
100% {
64
background-position: 0px;
65
}
66
}
67
68
@keyframes disappear {
69
from {
70
display: unset !important;
71
z-index: 1;
72
opacity: 1;
73
}
74
to {
75
display: none !important;
76
opacity: 0;
77
z-index: -10;
78
}
79
}
80
81
body {
82
margin: 0;
83
overflow: hidden;
84
background-color: var(--background-color);
85
}
86
87
.camera-button {
88
pointer-events: all !important;
89
margin-left: 26vw;
90
bottom: 0;
91
opacity: 0.5;
92
}
93
94
.true,
95
.false {
96
transform: scale(1.3);
97
animation: up 0.6s steps(8) forwards;
98
}
99
100
.map {
101
bottom: 0;
102
right: 0;
103
width: fit-content;
104
}
105
@media only screen and (max-width: 750px) {
106
.map img {
107
width: 250px !important;
108
opacity: 0.7;
109
}
110
.map {
111
margin-bottom: 30px;
112
}
113
.camera-button {
114
width: 100vh !important;
115
}
116
}
117
118
area {
119
outline: none;
120
}
121
122
area.hover {
123
cursor: pointer;
124
}
125
126
.true,
127
.false,
128
.animatronics-true,
129
.static {
130
width: 100vw;
131
height: 100vh;
132
}
133
.animatronics-true {
134
background-color: var(--background-color);
135
}
136
137
.static {
138
opacity: 0.9;
139
animation: noise 0.12s infinite alternate-reverse;
140
}
141
142
.hour,
143
.energy {
144
font-weight: lighter;
145
opacity: 0.4;
146
z-index: 1;
147
font-family: "Consolas";
148
color: white;
149
position: "absolute";
150
}
151
.hour {
152
position: absolute;
153
margin-right: 0;
154
margin-left: 90vw;
155
}
156
.energy {
157
position: absolute;
158
bottom: 0;
159
margin-left: 3vw;
160
font-size: 15pt;
161
}
162
163
.opening {
164
z-index: 1;
165
animation: disappear 0.5s steps(1) forwards;
166
}
167
168
@keyframes opening {
169
from {
170
opacity: 0;
171
}
172
to {
173
opacity: 1;
174
}
175
}
176
177
.open {
178
animation: opening 0.5s steps(1) forwards;
179
}
180
181
img[data-disabled="false"] {
182
opacity: 0.3;
183
}
184
185
@media screen and (max-width: 700px) {
186
.camera-img {
187
width: 100vw;
188
height: 90vh;
189
}
190
191
.hour {
192
font-size: 17pt;
193
}
194
.camera-button {
195
margin-left: 22vw;
196
}
197
}
198
.office-img {
199
margin: auto;
200
width: 100vw;
201
}
202
203
.office-container {
204
width: 100vw;
205
height: 100vh;
206
display: flex;
207
justify-content: center;
208
align-items: center;
209
}
210
211
img {
212
pointer-events: none;
213
}
214
215
* {
216
-moz-user-select: none;
217
-webkit-user-select: none;
218
user-select: none;
219
}
220
221
.camera-container {
222
width: 100vw;
223
height: 100vh;
224
display: flex;
225
justify-content: center;
226
align-items: center;
227
}
228
229