-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
152 lines (132 loc) · 2.76 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
body {
font-family: 'Roboto', Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background-image: url('images/janos-venczak-3HCYzSVQ5K4-unsplash.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
}
.stopwatch-container {
background-color: rgba(255, 255, 255, 0.85);
border-radius: 20px;
padding: 40px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
max-width: 450px;
width: 100%;
}
.stopwatch-header {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 30px;
}
.stopwatch-header i {
font-size: 42px;
color: #3498db;
margin-right: 20px;
}
.stopwatch-header h1 {
font-size: 32px;
color: #2c3e50;
margin: 0;
font-weight: 700;
}
.time-display {
font-size: 56px;
text-align: center;
margin-bottom: 40px;
color: #2c3e50;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
letter-spacing: 2px;
}
.controls {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-bottom: 40px;
}
button {
padding: 15px 25px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
background-color: #3498db;
color: white;
border: none;
border-radius: 10px;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
button:hover {
background-color: #2980b9;
transform: translateY(-3px);
box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}
button:disabled {
background-color: #bdc3c7;
color: #7f8c8d;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.material-icons {
font-size: 24px;
margin-right: 10px;
}
.lap-times {
max-height: 250px;
overflow-y: auto;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 10px;
padding: 20px;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.lap-times h3 {
text-align: center;
color: #2c3e50;
margin-top: 0;
margin-bottom: 15px;
font-size: 24px;
font-weight: 600;
}
#lapList {
list-style-type: none;
padding: 0;
}
#lapList li {
padding: 10px 0;
border-bottom: 1px solid #ecf0f1;
color: #34495e;
font-size: 16px;
}
#lapList li:last-child {
border-bottom: none;
}
@media (max-width: 480px) {
.stopwatch-container {
padding: 30px;
margin: 20px;
}
.time-display {
font-size: 48px;
}
.controls {
grid-template-columns: 1fr;
}
.stopwatch-header i {
font-size: 36px;
}
.stopwatch-header h1 {
font-size: 28px;
}
}