-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyling.css
183 lines (155 loc) · 3.17 KB
/
styling.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
171
172
173
174
175
176
177
178
179
180
181
182
183
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4e7c3; /* Soft, warm yellow */
color: #333; /* Soft charcoal */
font-size: 16px;
}
/* Adjust font sizes for different elements */
.hero h1 {
font-size: 2.5rem; /* 2.5 times the base font size */
margin-bottom: 20px;
color: #d48929;
}
.info-block h2 {
font-size: 1.5rem; /* Adjust this based on your needs */
margin-bottom: 10px;
color: #d48929;
}
.resources-list a {
font-size: 1.2rem;
}
/* Navbar */
.navbar {
background-color: #d48929; /* Warm amber */
color: white;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
}
.logo-text {
font-size: 1.5em;
font-weight: bold;
}
.nav-links a {
color: white;
padding: 10px;
margin-right: 10px;
text-decoration: none;
transition: color 0.3s;
}
.nav-links a:hover {
color: #f47b6d; /* Accent coral */
}
/* Hero Section */
.hero {
position: relative;
background: url("happiness.jpeg") no-repeat center center / cover;
height: 800px;
color: white; /* Ensure text is readable on the background */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-attachment: fixed;
}
.hero-content {
text-align: center;
z-index: 2; /* Position content above background */
}
.hero p {
font-size: 1.25rem;
margin-bottom: 60px;
}
/* Info Section */
.info-section {
display: flex;
justify-content: space-between;
padding: 10px;
position: absolute;
bottom: 10px;
width: 80%;
z-index: 1;
}
.info-block {
width: 30%;
background-color: #f4e7c3;
padding: 10px;
border-radius: 10px;
text-align: center;
height: 200px;;
}
.info-block h2 {
font-size: 2em;
margin-bottom: 20px;
color: #d48929;
}
.info-block p{
color:rgb(27, 114, 27);
font-size: large;
}
.background-2 {
background-image: url("bg2.PNG");
background-repeat: no-repeat;
background-position: center center; /* Center the image */
background-size: cover; /* Ensure the image covers the entire section */
height: 800px;
position: relative;
}
/* About Section */
.about-section {
background-color: #faf3e0; /* Light cream */
padding: 80px;
text-align: center;
}
/* Resources Section */
.resources-section {
background-color: #faf3e0; /* Light cream */
padding: 50px;
}
.resources-list {
list-style: none;
}
.resources-list li {
margin-bottom: 15px;
}
.resources-list a {
color: #333;
text-decoration: none;
font-size: 1.2em;
transition: color 0.3s;
}
.resources-list a:hover {
color: #d48929; /* Warm amber */
}
/* Footer */
.footer {
background-color: #d48929; /* Warm amber */
color: white;
text-align: center;
padding: 20px;
}
/* Animation */
.animated {
opacity: 0;
transition: opacity 1.5s ease-in-out;
}
.in-view {
opacity: 1;
}