File size: 3,301 Bytes
762ce3b
 
 
 
0b8aaaf
 
762ce3b
 
 
 
 
 
 
 
44aad89
0b8aaaf
 
762ce3b
 
93d3823
7437fa8
d18a0f6
7437fa8
762ce3b
381e63b
7437fa8
0b8aaaf
 
762ce3b
 
93d3823
762ce3b
381e63b
 
d3889e3
762ce3b
0b8aaaf
 
762ce3b
 
 
 
 
 
0137a51
762ce3b
381e63b
0137a51
7cd9682
762ce3b
 
 
 
 
 
 
0137a51
 
762ce3b
 
6ff97c2
 
 
 
 
0137a51
 
6ff97c2
 
762ce3b
 
 
 
 
 
0137a51
6ff97c2
 
7437fa8
 
 
 
 
 
 
 
f45a25c
7437fa8
 
 
 
6ff97c2
 
 
 
 
 
 
 
0137a51
 
 
467d6a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f45a25c
467d6a4
 
 
 
 
 
 
 
0137a51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b8aaaf
7437fa8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
467d6a4
 
 
 
 
7437fa8
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 600px;
    border: 3px solid #fff;
    border-radius: 25px;
    background: linear-gradient(135deg, #000 0%, #111 100%);
}

#game-area {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 600px;
    padding-left: 25px;
    overflow: hidden;
}

.player {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 100px;
    height: 20px;
    background-color: #fff;
    transform: translateX(-50%);
    border-radius: 20px;
    box-shadow: 0 0 10px 2px #fff;
    transition: left 0.1s ease; /* Плавное движение */
}

.orb {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.5);
}

.bonus {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #00ff00 0%, #00cc00 100%);
    box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.5);
}

#score-board {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#pause-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 48px;
    display: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

#pause-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    display: none;
    text-align: center;
}

.resume-button {
    background-color: #fff;
    color: #000;
    font-size: 24px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-shadow: none;
}

.resume-button:hover {
    background-color: #ddd;
}

/* Trail effect for orbs and bonuses */
.trail {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0.5;
    animation: fade-out 1s linear forwards;
}

@keyframes fade-out {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    #pause-button {
        display: block;
    }

    .player {
        width: 60px;
        height: 12px;
    }

    .orb, .bonus, .trail {
        width: 20px;
        height: 20px;
    }

    #score-board {
        font-size: 18px;
    }

    #game-over {
        font-size: 36px;
    }

    .resume-button {
        font-size: 20px;
        padding: 10px 15px;
    }
}