forked from AnujShrivastava01/AnimateItNow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpomodoro.css
More file actions
105 lines (92 loc) · 1.68 KB
/
pomodoro.css
File metadata and controls
105 lines (92 loc) · 1.68 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
/* Reset default margins */
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
/* Ensure navbar stays fixed */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
/* Push content below navbar */
.main-container {
display: flex;
justify-content: center;
align-items: center;
min-height: calc(100vh - 80px); /* adjust depending on navbar height */
padding-top: 80px; /* same as navbar height */
box-sizing: border-box;
}
/* Timer card */
.timer-container {
background-color: #fff;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
h1 {
color: #333;
margin-bottom: 1.5rem;
}
.timer {
margin-bottom: 1.5rem;
}
.time-display {
font-size: 4rem;
font-weight: bold;
color: #333;
margin-bottom: 1rem;
}
/* Buttons */
.controls button {
font-size: 1rem;
padding: 0.5rem 1rem;
margin: 0 0.5rem;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#start-btn {
background-color: #4CAF50;
color: white;
}
#start-btn:hover {
background-color: #45a049;
}
#pause-btn {
background-color: #f44336;
color: white;
}
#pause-btn:hover {
background-color: #d32f2f;
}
#reset-btn {
background-color: #2196F3;
color: white;
}
#reset-btn:hover {
background-color: #1e88e5;
}
/* Mode buttons */
.modes button {
background-color: #ddd;
border: none;
padding: 0.5rem 1rem;
margin: 0 0.5rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.modes button.active {
background-color: #2c3e50;
color: white;
}
.modes button:hover:not(.active) {
background-color: #ccc;
}