-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
153 lines (136 loc) · 2.53 KB
/
styles.css
File metadata and controls
153 lines (136 loc) · 2.53 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
/* Reset style */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
font-family: Arial, sans-serif;
color: #fff;
background: linear-gradient(45deg, #9ac2ff, #6e65ec, #523c9f, #5dc7be);
background-size: 400% 400%;
animation: gradientBackground 8s ease infinite;
padding: 0;
}
/* Animasi Gradien */
@keyframes gradientBackground {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Card Styling */
.card {
background: rgba(255, 255, 255, 0.1);
color: #fff;
padding: 2rem;
border-radius: 10px;
width: 80%;
max-width: 450px;
text-align: center;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
animation: popIn 1s ease-out;
position: relative;
overflow: hidden;
}
.heading {
font-size: 2.5rem;
color: #ffda79;
animation: pulse 1.5s infinite alternate ease-in-out;
text-shadow: 0px 0px 15px #ffd966;
}
.message {
font-size: 1rem;
color: #ddd;
margin-top: 1rem;
line-height: 1.5;
animation: slideUp 1.2s ease-in-out;
}
.celebrate-btn {
margin-top: 1.5rem;
padding: 0.5rem 1rem;
font-size: 1rem;
color: #333;
background-color: #ffda79;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.celebrate-btn:hover {
background-color: #ffd966;
box-shadow: 0 0 8px #ffd966;
}
/* Animations */
@keyframes popIn {
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes pulse {
from {
text-shadow: 0px 0px 15px #ffd966;
}
to {
text-shadow: 0px 0px 25px #ffda79;
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Canvas for fireworks */
#fireworksCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
/* Responsiveness */
@media (max-width: 768px) {
.heading {
font-size: 2rem;
}
.message {
font-size: 0.9rem;
}
.celebrate-btn {
font-size: 0.9rem;
padding: 0.4rem 0.8rem;
}
}
@media (max-width: 480px) {
.heading {
font-size: 1.8rem;
}
.message {
font-size: 0.8rem;
}
.celebrate-btn {
font-size: 0.8rem;
padding: 0.3rem 0.6rem;
}
}