-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
117 lines (107 loc) · 2.39 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
body {
background-color: #f0f0f0;
font-family: "Poppins", sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100vh;
overflow: hidden;
align-items: center;
background-image: url('background.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
#timer {
font-size: 7rem;
font-weight: 700;
text-shadow: 2px 2px #f8a5c2;
width: 600px;
text-align: center;
margin: 40px auto;
background: linear-gradient(90deg, #6a0dad, #0000ff, #6a0dad, #f92672);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradientText 5s infinite;
}
@keyframes gradientText {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
#buttons {
display: flex;
justify-content: center;
}
button {
position: relative;
background: linear-gradient(90deg, #6a0dad, #0000ff, #6a0dad, #f92672);
background-size: 200% 200%;
border: none;
font-size: 2rem;
font-weight: bold;
padding: 1.5rem 4rem;
margin: 1rem;
border-radius: 30px;
cursor: pointer;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
transition: all 0.2s;
animation: backgroundGradient 5s infinite;
color: transparent;
-webkit-background-clip: text;
background-clip: text;
}
@keyframes backgroundGradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
button::before {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(90deg, #6a0dad, #0000ff, #6a0dad, #f92672);
background-size: 200% 200%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
animation: gradientText 5s infinite;
}
button:hover {
background-color: #f44583;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
button[disabled] {
opacity: 0.5;
cursor: default;
}
@media (max-width: 800px) {
#timer {
font-size: 4rem;
width: 350px;
}
button {
font-size: 1.5rem;
padding: 1rem 2rem;
}
}