-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
170 lines (144 loc) · 3.29 KB
/
style.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
158
159
160
161
162
163
164
165
166
167
168
169
170
/* General Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #f4f4f4;
color: #333;
transition: background-color 0.3s ease, color 0.3s ease;
}
body.light-mode {
background-color: #ffffff;
color: #333;
}
body.dark-mode {
background-color: #121212;
color: #e0e0e0;
}
/* Header Styles */
header {
padding: 1.5rem 2rem;
background-color: #007BFF;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
header .logo {
font-size: 2rem;
font-weight: bold;
color: #fff;
}
header .theme-toggle {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #fff;
transition: transform 0.3s;
}
header .theme-toggle:hover {
transform: scale(1.1);
}
/* Hero Section */
.hero {
text-align: center;
padding: 4rem 2rem;
background-color: #ff7f50;
color: white;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
margin-top: 3rem;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 1.5rem;
}
.hero .cta-button {
padding: 1rem 2rem;
font-size: 1.1rem;
background-color: #fff;
color: #ff7f50;
border: none;
border-radius: 5px;
cursor: pointer;
transition: transform 0.3s, background-color 0.3s;
}
.hero .cta-button:hover {
transform: scale(1.1);
background-color: #ff5722;
color: white;
}
/* Cards Section */
.cards-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
padding: 2rem;
}
.card {
background: linear-gradient(135deg, #ff6b6b, #fcbf49);
color: white;
border-radius: 10px;
padding: 2rem;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: transform 0.3s, background 0.5s ease;
}
.card:hover {
transform: translateY(-10px);
background: linear-gradient(135deg, #ff8e53, #ffdd4a);
}
.card h2 {
font-size: 1.8rem;
margin-bottom: 1rem;
}
.card p {
font-size: 1rem;
line-height: 1.5;
}
/* Footer Styles */
footer {
text-align: center;
padding: 2rem;
background-color: #007BFF;
color: white;
margin-top: 3rem;
}
footer p {
font-size: 1rem;
}
/* Responsive Styles */
@media (max-width: 768px) {
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1rem;
}
.cards-container {
grid-template-columns: 1fr;
}
}
/* Ensure the link fills the card and makes the card fully clickable */
.card a {
display: block;
color: inherit;
text-decoration: none;
height: 100%;
}
.card:hover {
transform: translateY(-10px); /* Optional: Enhance hover effect */
background: linear-gradient(135deg, #ff8e53, #ffdd4a); /* Optional: Hover background effect */
}