-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
95 lines (85 loc) · 2 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
body {
font-family: consolas;
margin: 0;
overflow: hidden;
}
#background-video {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1;
background-size: cover;
}
.game-over,
.game-start {
font-family: 'Gothic', sans-serif;
font-size: 24px;
color: #ffffff;
background-color: #333333;
padding: 20px;
text-align: center;
border: 2px solid #000000;
border-radius: 10px;
cursor: pointer;
}
.game-over:hover {
background: linear-gradient(#480e0e);
}
.hidden {
display: none;
}
.game-area {
height: 100vh;
overflow: hidden;
}
.experience-gain {
font-family: 'Gothic', sans-serif;
font-size: 18px;
color: #ffffff;
background-color: #333333;
padding: 10px;
text-align: center;
border: 2px solid #000000;
border-radius: 5px;
position: absolute;
z-index: 100;
transition: opacity 0.5s ease;
}
.experience-gain.hidden {
opacity: 0;
pointer-events: none;
}
@keyframes experienceGainAnimation {
0% { transform: translateY(0); opacity: 1; }
50% { transform: translateY(-30px); opacity: 1; }
100% { transform: translateY(-60px); opacity: 0; }
}
.experience-gain {
font-family: 'Gothic', sans-serif;
font-size: 18px;
color: #ffffff;
background-color: #333333;
padding: 10px;
text-align: center;
border: 2px solid #000000;
border-radius: 5px;
position: absolute;
z-index: 100;
animation: experienceGainAnimation 1s ease;
}
.experience-gain.hidden {
display: none;
}
.experience-gain {
font-family: 'Gothic', sans-serif; /* Използвайте готически шрифт или подходящ шрифт */
font-size: 18px;
color: #ffffff; /* Бял текст */
position: absolute; /* Абсолютно позициониране */
border-radius: 5px; /* Закръгленост на ъглите */
padding: 5px 10px; /* Подходящ вътрешен padding */
background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачен тъмно сив фон */
}