-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
215 lines (189 loc) · 3.98 KB
/
Copy pathstyle.css
File metadata and controls
215 lines (189 loc) · 3.98 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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
width: 100%;
min-height: 100%;
overflow-x: hidden;
}
body {
min-height: 100vh;
font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
background: #0a0a0a;
background-image:
repeating-linear-gradient(45deg, #0a0a0a 0px, #0a0a0a 40px, #1a1a1a 40px, #1a1a1a 80px);
display: flex;
align-items: center;
justify-content: center;
position: relative;
color: #000;
padding: 16px;
}
.card {
background: #c9c9c9;
border: 6px dashed #ff9100;
border-radius: 3px;
padding: 28px 22px;
max-width: 460px;
width: 100%;
text-align: center;
box-shadow: 12px 12px 0px #000;
position: relative;
z-index: 2;
transform: rotate(-1deg);
}
.stamp {
position: absolute;
top: -22px;
right: -18px;
background: #ff9100;
color: #000;
font-weight: bold;
padding: 6px 12px;
border: 3px solid #000;
transform: rotate(12deg);
font-size: 0.8rem;
text-transform: uppercase;
box-shadow: 3px 3px 0 #000;
}
h1 {
font-size: 1.7rem;
line-height: 1.3;
margin: 6px 0 4px;
color: #111;
text-shadow: 2px 2px 0 #39ff14, -2px -2px 0 #000;
animation: wiggle 0.6s infinite alternate;
}
@keyframes wiggle {
from { transform: rotate(-2deg); }
to { transform: rotate(2deg); }
}
.subtitle {
font-size: 0.95rem;
margin-bottom: 22px;
font-weight: bold;
color: #222;
}
marquee {
font-size: 0.85rem;
font-weight: bold;
color: #ff9100;
margin-bottom: 16px;
border-top: 2px dotted #000;
border-bottom: 2px dotted #000;
padding: 4px 0;
}
.buttons {
display: flex;
gap: 14px;
justify-content: center;
align-items: center;
flex-wrap: wrap;
min-height: 70px;
}
button {
outline: none;
cursor: pointer;
font-family: inherit;
font-weight: 900;
padding: 16px 30px;
font-size: 1.1rem;
border: 4px solid #000;
box-shadow: 5px 5px 0 #000;
-webkit-tap-highlight-color: transparent;
text-transform: uppercase;
transition: background-color 0.5s ease, color 0.5s ease;
}
#yesBtn,
#noBtn.converted {
background: #39ff14;
color: #000;
transition: transform 0.25s ease, background-color 0.5s ease;
}
#noBtn.converted {
position: static !important;
}
#yesBtn:hover,
#noBtn.converted:hover {
transform: scale(1.1) rotate(-3deg);
background: #2be000;
}
#yesBtn:active,
#noBtn.converted:active {
transform: scale(0.9) rotate(3deg);
}
#noBtn {
background: #555;
color: #fff;
position: relative;
z-index: 10;
touch-action: none; /* убираем задержку/скролл-жесты на мобиле при тапе */
will-change: transform, background-color;
transition: transform 0.35s cubic-bezier(.22,.61,.36,1),
background-color 0.6s ease,
color 0.6s ease;
}
#noBtn.fixed-fly {
position: fixed;
left: 0;
top: 0;
}
.result-screen {
display: none;
flex-direction: column;
align-items: center;
}
.result-screen.show {
display: flex;
animation: shake 0.5s;
}
@keyframes shake {
0%, 100% { transform: translate(0,0) rotate(-1deg); }
25% { transform: translate(-4px,2px) rotate(1deg); }
50% { transform: translate(4px,-2px) rotate(-2deg); }
75% { transform: translate(-3px,1px) rotate(2deg); }
}
.result-emoji {
font-size: 4rem;
margin-bottom: 6px;
}
.result-text {
font-size: 1.35rem;
font-weight: 900;
line-height: 1.35;
color: #111;
}
.result-sub {
font-size: 0.9rem;
margin-top: 10px;
font-weight: bold;
color: #444;
}
.counter {
margin-top: 14px;
font-size: 0.9rem;
font-weight: bold;
color: #ff9100;
min-height: 18px;
}
.confetti-piece {
position: fixed;
top: -10px;
width: 12px;
height: 12px;
z-index: 999;
pointer-events: none;
animation: fall linear forwards;
}
@keyframes fall {
to {
transform: translateY(110vh) rotate(900deg);
opacity: 0.9;
}
}
@media (max-width: 480px) {
h1 { font-size: 1.35rem; }
.card { padding: 22px 16px; }
button { padding: 14px 22px; font-size: 0.95rem; }
.stamp { font-size: 0.7rem; top: -18px; right: -10px; }
}