-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
115 lines (98 loc) · 2.01 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
/* General styles for the page */
body {
font-family: 'Arial', sans-serif;
background-color: #fef6e4; /* Light pastel background */
color: #272343; /* Dark pastel text */
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
position: relative; /* To contain absolutely positioned button */
}
.container {
text-align: center;
}
.title {
font-size: 2.5rem;
margin-bottom: 20px;
}
.counter {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.btn {
font-size: 2rem;
padding: 10px 20px;
background-color: #e3f6f5;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.btn:hover {
background-color: #bae8e8;
}
#count {
font-size: 2rem;
font-weight: bold;
width: 60px;
text-align: center;
color: #272343; /* Dark pastel text */
}
/* Responsive layout for mobile */
@media (max-width: 600px) {
.title {
font-size: 1.8rem;
}
.btn {
font-size: 1.5rem;
}
#count {
font-size: 1.8rem;
}
}
/* Theme Toggle Button */
.theme-toggle-btn {
position: fixed; /* Fixed position to stay in the top-right corner */
top: 20px;
right: 20px;
background-color: transparent;
border: none;
font-size: 24px;
cursor: pointer;
color: #ffb3b3; /* Light pastel color */
transition: color 0.3s ease;
z-index: 100; /* Ensure the button is on top of other elements */
}
@media (max-width: 400px) {
.theme-toggle-btn {
font-size: 20px;
top: 10px;
right: 10px;
}
}
/* Day theme (default) */
body {
background-color: #fef6e4; /* Light pastel background */
color: #272343; /* Dark pastel text */
}
#count {
color: #ffb3b3; /* Pastel pink */
}
.theme-toggle-btn.day {
color: #ffb3b3; /* Light pastel pink */
}
/* Night theme */
body.night {
background-color: #2c3e50; /* Dark background */
color: #ecf0f1; /* Light pastel text */
}
#count.night {
color: #f39c12; /* Pastel yellow */
}
.theme-toggle-btn.night {
color: #f39c12; /* Light pastel yellow */
}