-
-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathstyle.css
More file actions
108 lines (94 loc) · 1.71 KB
/
style.css
File metadata and controls
108 lines (94 loc) · 1.71 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
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(90deg, #fcff9e 0%, #c67700 100%);
transition: background 0.4s ease;
}
.alarm-finished {
background: linear-gradient(90deg, #FC466B 0%, #3F5EFB 100%);
animation: flashBg 0.6s infinite alternate;
}
@keyframes flashBg {
0% {
background: linear-gradient(90deg, #FC466B 0%, #3F5EFB 100%);
}
100% {
background: linear-gradient(90deg, #fcff9e 0%, #c67700 100%);
}
}
.centre {
width: 360px;
padding: 26px;
background: #ffffff;
border-radius: 20px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
text-align: center;
}
label {
display: block;
margin-bottom: 10px;
font-size: 15px;
color: #555;
}
#timeRemaining {
margin: 0 0 22px;
font-size: 30px;
font-weight: bold;
color: #333;
}
label {
display: block;
margin-bottom: 10px;
font-size: 15px;
color: #555;
}
#alarmSet {
width: 100%;
padding: 12px;
font-size: 16px;
border: 2px solid #ddd;
border-radius: 12px;
outline: none;
margin-bottom: 18px;
transition: 0.2s;
}
#alarmSet:focus {
border-color: #667eea;
box-shadow: 0 0 6px rgba(102, 126, 234, 0.4);
}
.button-group {
display: flex;
gap: 12px;
}
button {
flex: 1;
padding: 12px;
font-size: 15px;
border: none;
border-radius: 12px;
cursor: pointer;
color: white;
font-weight: bold;
transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#set {
background: #4CAF50;
}
#set:hover {
background: #43a047;
transform: translateY(-2px);
}
#stop {
background: #f44336;
}
#stop:hover {
background: #e53935;
transform: translateY(-2px);
}