-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
176 lines (154 loc) · 4.26 KB
/
Copy pathstyles.css
File metadata and controls
176 lines (154 loc) · 4.26 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
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
/* Ensure the body and html take full height */
html, body {
height: 100%; /* Make sure the body and html take up the full height */
margin: 0; /* Remove default margin */
}
/* Apply flexbox to the body to ensure the footer stays at the bottom */
body {
font-family: Arial, sans-serif;
background-image: url("./assets/images/pexels-eduardo-sepulveda-3187799-7799219.jpg"); /* Background image */
background-size: cover; /* Cover the entire body with the image */
background-position: center; /* Center the background image */
display: flex;
flex-direction: column;
background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
}
/* Navigation bar styles */
nav {
position: sticky;
top: 0;
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000; /* Ensure nav is always on top */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for depth */
}
/* Logo styling in the nav */
nav .logo a {
font-size: 1.8em;
font-weight: bold;
color: #007bff;
text-decoration: none;
}
/* Navigation links list style */
nav .nav-links {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
/* Navigation link styling */
nav .nav-links li {
margin-right: 20px;
}
nav .nav-links a {
text-decoration: none;
color: #343a40;
font-size: 1.1em;
padding: 8px 15px;
transition: background-color 0.3s ease, color 0.3s ease;
border-radius: 4px;
}
/* Hover effects for nav links */
nav .nav-links a:hover {
background-color: #007bff;
color: white;
}
/* Header style */
header {
padding: 50px;
text-align: center;
background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white for header */
}
header > h1 {
font-size: 2.5em;
}
header p {
font-size: 1.2em;
}
/* Button styling */
.button {
background-color: #007bff;
color: white;
padding: 10px 20px;
margin: 10px;
text-decoration: none;
border-radius: 5px;
}
/* Section (overview and other sections) styling with transition */
section {
position: relative;
padding: 40px 20px;
text-align: center;
margin: 20px auto;
max-width: 900px;
background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
opacity: 0; /* Initially hidden */
transform: translateY(20px); /* Slightly translated down */
transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}
/* Hover effect for sections */
section:hover {
background-color: rgba(0, 123, 255, 0.1); /* Light blue background on hover */
transform: translateY(0); /* Move back to original position */
}
/* Add visible class to trigger transition when section is in view */
section.visible {
opacity: 1; /* Fade in */
transform: translateY(0); /* Slide into position */
}
/* Overview section specific styling */
.overview {
background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent */
border-radius: 8px;
padding: 20px;
text-align: center;
margin-top: 20px;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.overview h2 {
color: #343a40;
transition: color 0.3s ease;
}
.overview p {
color: #6c757d;
transition: color 0.3s ease;
}
/* Footer styling */
footer {
background-color: #343a40;
color: white;
text-align: center;
padding: 20px;
margin-top: auto; /* Push footer to the bottom */
}
/* Adopt section */
.adopt {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
/* Pet card styling */
.pet-card {
border: 1px solid #ccc;
border-radius: 8px;
margin: 15px;
padding: 10px;
width: 200px;
text-align: center;
background-color: #fff;
transition: transform 0.3s ease;
}
.pet-card img {
width: 100%;
height: auto;
border-radius: 8px;
}
/* Pet card hover effect */
.pet-card:hover {
transform: scale(1.05); /* Scale up when hovering */
}