-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (110 loc) · 2.35 KB
/
Copy pathstyle.css
File metadata and controls
127 lines (110 loc) · 2.35 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
/* --- General Reset --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
/* --- Background --- */
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #3a0ca3, #7209b7, #f72585);
color: #fff;
overflow: hidden;
}
/* --- Main container --- */
main {
text-align: center;
backdrop-filter: blur(12px);
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 20px;
padding: 50px 70px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
animation: fadeIn 1s ease-in-out;
}
/* --- Title --- */
h1 {
font-size: 2.5rem;
margin-bottom: 30px;
letter-spacing: 2px;
}
/* --- Stopwatch Display --- */
.stopwatch {
margin-bottom: 40px;
}
.counter {
font-size: 3.5rem;
font-weight: 600;
letter-spacing: 3px;
color: #000000;
text-shadow: 0 0 10px #f72585, 0 0 20px #f72585;
transition: all 0.3s ease;
}
/* --- Buttons --- */
.buttons {
display: flex;
justify-content: center;
gap: 25px;
}
button {
font-size: 1.1rem;
padding: 12px 30px;
border-radius: 30px;
border: none;
cursor: pointer;
transition: all 0.3s ease;
color: #fff;
font-weight: 500;
}
.btn1 {
background: #f72585;
}
.btn2 {
background: #4361ee;
}
.btn3 {
background: #4cc9f0;
}
/* --- Button Hover Effects --- */
button:hover {
transform: translateY(-4px);
box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
/* --- Button Active (Click) --- */
button:active {
transform: scale(0.97);
}
/* --- Animations --- */
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* --- Responsive --- */
/* Small phones */
@media (max-width: 600px) {
main { padding: 30px 40px; }
.counter { font-size: 2.5rem; }
button { padding: 10px 20px; font-size: 1rem; }
}
/* Tablets */
@media (max-width: 900px) and (min-width: 601px) {
main { padding: 40px 60px; }
.counter { font-size: 3rem; }
button { padding: 12px 25px; font-size: 1.1rem; }
}
/* Laptops / Desktops */
@media (min-width: 901px) {
main { padding: 50px 70px; }
.counter { font-size: 3.5rem; }
button { padding: 14px 30px; font-size: 1.2rem; }
}