-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
289 lines (259 loc) · 5.38 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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
/* Calcolatrice Gravidanza by Armando "FL3R" Fiore */
/* Font Nunito-Regular (OFL): https://fonts.google.com/specimen/Nunito */
@font-face {
font-family: 'Nunito-Regular';
src: url('Nunito-Regular.ttf') format('truetype');
}
/* Applica lo sfondo gradient al testo */
.text-gradient, h2 {
background-image: linear-gradient(45deg, #f906cc 25%, #f93306);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-background-clip: text;
-moz-text-fill-color: transparent;
display: inline;
}
body {
font-family: 'Nunito-Regular', sans-serif;
margin: 0;
padding: 0;
color: #1f2650;
background: #e4d5c3;
font-size: 20px;
line-height: 1.5;
font-size: 1.4em;
}
p {
margin-top: 0;
}
a {
text-decoration: none;
}
.social {
float: right;
width: 50%;
text-align: right;
margin-right: 40px;
}
a.social-item {
text-decoration: none;
margin-right: 20px;
}
/* Stile fluent per l'intestazione */
h1 {
font-size: 2em;
}
/* Contenitore principale del calcolatore */
#calculator {
margin: 20px auto;
padding: 20px 40px;
max-width: 90%;
border: 1px solid #e4d4c1;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
background: #ffffff;
background-image: linear-gradient(45deg, #f906cc 25%, #f93306);
background-size: 100% 10px;
background-position: bottom;
background-repeat: no-repeat;
padding-bottom: 10px;
}
/* Stile coerente per le etichette */
label {
display: block;
margin-top: 15px;
font-weight: bold;
}
.calculator-input {
zoom: 1.2;
margin-top:0
}
/* Input e select */
input[type="date"],
select {
width: 25%;
padding: 8px;
font-size: 16px;
border: 1px solid #d1d1d1;
border-radius: 5px;
background-color: #f7f7f7;
transition: border-color 0.3s, background-color 0.3s;
}
/* Al passaggio del mouse, cambia il colore dei bordi e lo sfondo */
input[type="date"]:focus,
select:focus {
border-color: #0078d4;
background-color: #fff;
outline: none;
}
/* Pulsante in stile Fluent */
button {
width: 100%;
padding: 10px;
background: linear-gradient(45deg, #f906cc 25%, #f93306);
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 1s;
max-width: 100px;
margin-top: 20px;
font-size: 16px;
}
button:hover {
background: linear-gradient(45deg, #f93306 25%, #f906cc);
}
/* Stile per pulsante disabilitato */
button[disabled] {
background: #f5e7d8;
cursor: not-allowed;
}
/* Stile risultato */
#result {
margin-top: 20px;
display: none;
}
/* Immagine di rischio */
#riskImage {
max-width: 100%;
margin-top: 15px;
}
/* Stile per dispositivi mobili */
@media screen and (max-width: 600px) {
#calculator {
width: 100%;
padding: 15px;
}
}
img#x-symbol {
float: right;
cursor: pointer;
width: 20px;
margin-top: 20px;
}
img#fetalImage, img#dueDateImage, img#pregnancyWeekImage {
max-width:128px;
}
#dueDateImage {
animation: bounce 1s infinite alternate;
transform-origin: center bottom;
}
@keyframes bounce {
from {
transform: translate(0, 0);
}
to {
transform: translate(0, -10px);
}
}
@keyframes swing {
0%, 100% {
transform: rotate(-10deg);
transform-origin: center bottom;
}
50% {
transform: rotate(10deg);
transform-origin: center bottom;
}
}
img#fetalImage {
animation: swing 3s infinite ease-in-out;
}
.result-top {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 20px;
}
.result-column {
width: calc(33.33% - 10px);
margin: 5px;
text-align: center;
}
.result-image {
max-width: 100%;
}
.result-text {
margin-top: 10px;
}
@media screen and (max-width: 768px) {
.result-column {
width: 100%;
}
}
.hidden {
display: none;
}
.share-image {
width: 512px;
height: 512px;
padding: 40px;
box-sizing: border-box;
background:url("share-background.png") bottom no-repeat #F3F4F5;
background-size: contain;
position: absolute;
left: -600px;
top: 0px;
}
.share-progress-bar {
width: 100%;
height: 5px;
background-color: #fff;
margin-top: 20px;
border-radius: 5px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(45deg, #065af9 25%, #06aef9);
width: 0; /* Inizialmente la larghezza è 0 */
transition: width 0.3s; /* Aggiungi una transizione per animare la larghezza */
}
.share-image-week {
font-size: 96px;
font-weight: bold;
color: #065af9;
line-height: 1;
margin-top: 40px;
display: inline;
}
p.share-image-week-text {
font-size: 1.75em;
color: #065af9;
line-height: 1;
display: inline;
}
/* Stile del banner di condivisione */
.share-banner {
text-align: left;
padding: 40px;
background: url(share-background.png) bottom right no-repeat #F3F4F5;
background-size: cover;
border-radius: 5px;
margin: 40px 0 20px 0;
}
.share-banner-h2 {
background: linear-gradient(45deg, #065af9 25%, #06aef9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-background-clip: text;
-moz-text-fill-color: transparent;
display: inline;
}
/* Pulsante in stile Fluent */
#shareButton {
width: 100%;
padding: 10px;
background: linear-gradient(45deg, #065af9 25%, #06aef9);
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 1s;
max-width: 200px;
margin-top: 20px;
font-size: 16px;
}
#shareButton:hover {
background: linear-gradient(45deg, #06aef9 25%, #065af9);
}