-
Notifications
You must be signed in to change notification settings - Fork 0
/
blue_styles.css
144 lines (128 loc) · 2.71 KB
/
blue_styles.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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #E0F7FA; /* Very light blue */
font-family: 'Arial', sans-serif;
margin: 0;
}
.container {
text-align: center;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
h1 {
margin-bottom: 20px;
color: #333;
}
.piggy-bank {
position: relative;
width: 200px;
height: 200px;
background: url('https://pic.chaopx.com/chao_origin_pic/23/06/29/eb987242bec513e22fa60e2e912f05d5.jpg!/fw/572/quality/90/unsharp/true/compress/true') no-repeat center center;
background-size: cover;
margin-bottom: 20px;
}
.glasses {
position: absolute;
top: 40px; /* Adjusted for better alignment */
left: 50%;
width: 100px;
height: 40px;
display: flex;
justify-content: space-between;
transform: translateX(-50%);
}
.lens {
width: 40px;
height: 40px;
background-color: rgba(255, 255, 255, 0.5); /* Transparent color */
border: 3px solid #FFD700; /* Yellow frame */
border-radius: 50%;
position: relative;
}
.coins {
position: absolute;
bottom: 0;
width: 100%;
height: 0;
background-color: rgba(255, 255, 178, 0.7); /* Transparent light yellow */
transition: height 0.5s;
border-radius: 0 0 50% 50%;
opacity: 0.8;
}
.caption {
position: absolute;
bottom: 10px;
width: 100%;
font-size: 18px;
font-weight: bold;
color: #FF69B4;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.progress-bar-container {
width: 100%;
margin: 20px 0;
position: relative;
}
.progress-bar {
position: relative;
width: 100%;
background-color: #ddd;
height: 30px;
border-radius: 15px;
overflow: hidden;
}
.progress {
height: 100%;
width: 0;
background-color: #A5D6A7; /* Light green */
transition: width 0.5s;
border-radius: 15px 0 0 15px;
}
.progress-segments {
position: absolute;
top: 0;
left: 0;
height: 100%;
display: flex;
width: 100%;
z-index: 1;
color: #fff;
font-size: 12px;
font-weight: bold;
}
.segment {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background-color: rgba(0, 0, 0, 0.2);
}
#progress-percent {
margin-top: 10px;
font-size: 16px;
font-weight: bold;
}
#time-period, #current-time {
margin-top: 10px;
font-size: 14px;
color: #666;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
.piggy-bank {
animation: bounce 2s infinite;
}