-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
157 lines (143 loc) · 3.05 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
153
154
155
156
157
/* Resets and Defaults */
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.text-center {
text-align: center;
}
.hidden {
animation: fade-out 0.5s ease forwards;
}
/* Typography */
body {
font-family: Arial, sans-serif; /* Use a more common font */
font-size: 16px;
line-height: 1.6;
color: #333; /* Use a default dark text color */
background-color: #f8f8f8; /* Lighter background for contrast */
animation: fade-down 0.5s 0.4s backwards;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #007bff; /* Blue for primary headings */
text-align: center;
animation: fade-down 0.5s 0.4s backwards;
}
p {
font-size: 1.2rem;
margin-bottom: 1rem;
color: #666; /* Slightly lighter text color */
text-align: center;
animation: fade-down 0.5s 0.4s backwards;
}
/* Utility Classes */
.text-center {
text-align: center;
}
/* Components */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px; /* Less padding for a cleaner look */
animation: fade-down 0.5s 0.4s backwards;
}
.button {
display: inline-block;
padding: 10px 20px;
margin-top: 1rem;
border: none;
background-color: #007bff;
color: #fff;
font-size: 1rem;
font-weight: bold;
text-transform: uppercase;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
animation: fade-down 0.5s 0.4s backwards;
}
.button:hover {
background-color: #0056b3; /* Darker shade of blue on hover */
}
/* Dark Mode */
.dark-mode {
background-color: #222; /* Dark background */
color: #fff;
}
.dark-mode p {
color: #fff; /* Lighter color for paragraphs in dark mode */
}
/* Toggle Button */
#darkModeToggle {
position: fixed;
top: 30px;
right: 30px;
width: 50px;
height: 50px;
border: none;
background-color: transparent;
color: #fff;
font-size: 2rem;
cursor: pointer;
transition: transform 0.3s ease;
z-index: 999;
}
#darkModeToggle:hover {
transform: scale(1.2);
}
@keyframes fade-down {
0% {
transform: translateY(-30px) scale(0.9);
opacity: 0; }
100% {
transform: translateY(0px) scale(1);
opacity: 1; }
}
@keyframes fade-out {
from {scale: (1); opacity: 1;}
to {scale: (0.8); opacity: 0;}
}
/* Responsive Design */
@media screen and (max-width: 1200px) {
.container {
padding: 0 10px; /* Smaller padding for smaller screens */
}
}
@media screen and (max-width: 768px) {
h1 {
font-size: 2rem;
}
p {
font-size: 1rem;
}
.button {
padding: 8px 16px;
margin-top: 0.5rem;
font-size: 0.9rem;
}
}
@media screen and (max-width: 576px) {
h1 {
font-size: 1.8rem;
}
p {
font-size: 0.8rem;
}
.button {
padding: 6px 12px;
margin-top: 0.3rem;
font-size: 0.8rem;
}
}
@media screen and (max-width: 480px) {
.button {
padding: 4px 10px;
margin-top: 0.2rem;
font-size: 0.7rem;
}
}