flpolprojects commited on
Commit
4596eed
·
verified ·
1 Parent(s): e425aa6

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +31 -73
styles.css CHANGED
@@ -50,7 +50,7 @@ body {
50
 
51
  header {
52
  text-align: center;
53
- padding: 8rem 0;
54
  }
55
 
56
  .cosmo-title {
@@ -86,77 +86,46 @@ header {
86
  animation: fadeIn 4s ease-in-out;
87
  }
88
 
89
- .header-cream {
90
- width: 20%;
91
- max-width: 300px;
92
- margin-top: 3rem;
93
- filter: drop-shadow(0 0 30px rgba(0, 255, 204, 0.8));
94
- animation: floatHeader 8s infinite ease-in-out;
95
- }
96
-
97
- @keyframes floatHeader {
98
- 0%, 100% { transform: translateY(0); }
99
- 50% { transform: translateY(-20px); }
100
- }
101
-
102
  @keyframes fadeIn {
103
  0% { opacity: 0; transform: translateY(30px); }
104
  100% { opacity: 0.9; transform: translateY(0); }
105
  }
106
 
107
- .hero {
108
- display: flex;
109
- align-items: center;
110
- justify-content: space-between;
111
- padding: 5rem 0;
112
- flex-wrap: wrap;
113
- gap: 6rem;
114
- }
115
-
116
- .cosmo-product {
117
- width: 50%;
118
- height: 45rem;
119
  position: relative;
 
 
120
  transform-style: preserve-3d;
121
- transition: transform 0.8s ease;
122
- }
123
-
124
- .holo-layer {
125
- position: absolute;
126
- width: 100%;
127
- height: 100%;
128
- }
129
-
130
- .layer-1 {
131
- background: url('cream.png') no-repeat center/contain;
132
- filter: drop-shadow(0 0 70px rgba(0, 255, 204, 1)) brightness(1.4);
133
- animation: holoFloat 12s infinite ease-in-out;
134
  }
135
 
136
- .layer-2 {
137
- background: radial-gradient(circle, rgba(0, 255, 204, 0.6), transparent 70%);
138
- filter: blur(25px);
139
- animation: holoPulse 6s infinite ease-in-out;
140
  }
141
 
142
- .layer-3 {
143
- background: radial-gradient(circle, rgba(255, 0, 122, 0.4), transparent 70%);
144
- filter: blur(15px);
145
- animation: holoPulse 8s infinite ease-in-out reverse;
146
  }
147
 
148
- @keyframes holoFloat {
149
- 0%, 100% { transform: translateY(0) rotateZ(5deg) translateZ(0); }
150
- 50% { transform: translateY(-50px) rotateZ(-5deg) translateZ(150px); }
151
- }
152
-
153
- @keyframes holoPulse {
154
- 0%, 100% { opacity: 0.6; transform: scale(1); }
155
- 50% { opacity: 0.9; transform: scale(1.15); }
156
  }
157
 
158
  .hero-text {
159
- width: 45%;
 
160
  }
161
 
162
  .hero-text h2 {
@@ -243,26 +212,15 @@ header {
243
  font-size: 1.8rem;
244
  }
245
 
246
- .header-cream {
247
- width: 40%;
248
- max-width: 200px;
249
  }
250
 
251
  .hero {
252
- flex-direction: column;
253
- text-align: center;
254
  padding: 3rem 0;
255
  }
256
 
257
- .cosmo-product {
258
- width: 90%;
259
- height: 30rem;
260
- }
261
-
262
- .hero-text {
263
- width: 100%;
264
- }
265
-
266
  .hero-text h2 {
267
  font-size: 3rem;
268
  }
@@ -290,9 +248,9 @@ header {
290
  font-size: 1.4rem;
291
  }
292
 
293
- .header-cream {
294
- width: 50%;
295
- max-width: 150px;
296
  }
297
 
298
  .hero-text h2 {
 
50
 
51
  header {
52
  text-align: center;
53
+ padding: 8rem 0 4rem;
54
  }
55
 
56
  .cosmo-title {
 
86
  animation: fadeIn 4s ease-in-out;
87
  }
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  @keyframes fadeIn {
90
  0% { opacity: 0; transform: translateY(30px); }
91
  100% { opacity: 0.9; transform: translateY(0); }
92
  }
93
 
94
+ .main-cream {
95
+ width: 30%;
96
+ max-width: 400px;
97
+ height: auto;
98
+ background: url('cream.png') no-repeat center/contain; /* Замените на реальное изображение */
 
 
 
 
 
 
 
99
  position: relative;
100
+ margin: 4rem auto 0;
101
+ filter: drop-shadow(0 0 40px rgba(0, 255, 204, 0.9)) brightness(1.3);
102
  transform-style: preserve-3d;
103
+ transition: transform 0.6s ease, filter 0.6s ease;
104
+ animation: creamFloat 10s infinite ease-in-out;
 
 
 
 
 
 
 
 
 
 
 
105
  }
106
 
107
+ .main-cream:hover, .main-cream.active {
108
+ transform: translateY(-30px) rotateZ(5deg) translateZ(50px);
109
+ filter: drop-shadow(0 0 60px rgba(0, 255, 204, 1)) brightness(1.5);
 
110
  }
111
 
112
+ @keyframes creamFloat {
113
+ 0%, 100% { transform: translateY(0) rotateZ(0deg) translateZ(0); }
114
+ 50% { transform: translateY(-20px) rotateZ(5deg) translateZ(30px); }
 
115
  }
116
 
117
+ .hero {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ padding: 5rem 0;
122
+ flex-wrap: wrap;
123
+ gap: 6rem;
 
124
  }
125
 
126
  .hero-text {
127
+ width: 100%;
128
+ text-align: center;
129
  }
130
 
131
  .hero-text h2 {
 
212
  font-size: 1.8rem;
213
  }
214
 
215
+ .main-cream {
216
+ width: 50%;
217
+ max-width: 250px;
218
  }
219
 
220
  .hero {
 
 
221
  padding: 3rem 0;
222
  }
223
 
 
 
 
 
 
 
 
 
 
224
  .hero-text h2 {
225
  font-size: 3rem;
226
  }
 
248
  font-size: 1.4rem;
249
  }
250
 
251
+ .main-cream {
252
+ width: 60%;
253
+ max-width: 200px;
254
  }
255
 
256
  .hero-text h2 {