-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
168 lines (147 loc) · 3.05 KB
/
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'PT Sans', sans-serif; /* Ensure PT Sans is loaded */
color: #fff;
overflow-y: scroll;
scroll-behavior: smooth;
background: linear-gradient(120deg, #1a1a2e, #16213e, #0f3460);
background-size: 300% 300%;
animation: gradient-animation 8s ease infinite; /* Animate the background */
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* Content Container */
.container {
text-align: center;
padding: 20px;
max-width: 800px;
}
header {
margin-bottom: 20px;
}
header h1 {
font-size: 3em;
margin-bottom: 10px;
text-shadow: 2px 2px 5px #000;
}
header p {
font-size: 1.2em;
color: #ccc;
}
main section {
margin: 20px 0;
}
h2 {
font-size: 2em;
margin-bottom: 10px;
}
p {
font-size: 1em;
line-height: 1.5;
color: #ddd;
}
.buttons {
display: flex;
justify-content: center;
}
.btn {
display: inline-block;
text-decoration: none;
color: #fff;
background: #0f3460;
padding: 10px 20px;
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background 0.3s ease, transform 0.2s, box-shadow 0.3s ease;
position: relative;
overflow: hidden; /* To keep the snow effect contained */
}
.btn:hover {
background: #1a659e;
transform: translateY(-3px);
box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.6); /* Blurry glow effect */
}
/* Snowflakes (white dots falling around the button) */
.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none; /* Ensure snowflakes don’t interfere with button clicks */
opacity: 0;
}
.btn:hover::before {
animation: snowflakes 2s linear infinite;
opacity: 1;
}
.btn:active {
transform: scale(0.95); /* Shrinks the button */
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Slightly reduces shadow */
}
@keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes snowflakes {
0% {
transform: translateY(-100px); /* Start above the button */
opacity: 1;
}
100% {
transform: translateY(100px); /* Move snowflakes down */
opacity: 0;
}
}
/* Snowflake (dot) styling */
@keyframes snowflake {
0% {
transform: scale(0);
opacity: 1;
}
100% {
transform: scale(1) translateY(20px);
opacity: 0;
}
}
/* Random snowflakes generation and movement */
.btn:hover::after {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
}
.btn:hover::after {
animation: snowflake-falling 3s linear infinite;
}
/* Snowflakes' falling animation */
@keyframes snowflake-falling {
0% {
top: -20%;
opacity: 1;
}
100% {
top: 100%;
opacity: 0;
}
}