-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
117 lines (102 loc) · 2.26 KB
/
styles.css
File metadata and controls
117 lines (102 loc) · 2.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
/* General Reset */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
/* Header Styles */
header {
position: relative;
width: 100%;
height: 100px; /* Adjust height as needed */
overflow: hidden;
}
header .header-img {
width: 100%;
height: 500%;
object-fit: cover; /* Ensure the image covers the entire header */
position: absolute;
top: 0;
left: 0;
}
header h1 {
position: absolute;
top: 50%; /* Centers the text vertically */
left: 50%; /* Centers the text horizontally */
transform: translate(-50%, -50%); /* Perfectly centers the text */
color: #1ec9fd; /* Text color */
font-size: 3rem; /* Text size */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Optional: shadow for better visibility */
z-index: 1; /* Ensures the text stays on top of the image */
margin: 0;
}
/* Navigation Bar Styles */
nav {
background-color: #264653;
overflow: hidden;
}
nav a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
nav a:hover {
background-color: #2a9d8f;
}
/* Main Content Styles */
main {
padding: 20px;
}
/* Gallery Section */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.gallery img {
width: 250px;
height: 250px;
object-fit: cover;
border-radius: 8px;
}
/* Footer Styles */
footer {
background-color: #264653;
color: white;
text-align: center;
padding: 10px 0;
position: fixed;
bottom: 0;
width: 100%;
}
/* Active Navigation Link */
nav a.active {
background-color: #e76f51;
}
/* Image Gallery Styles */
.image-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
padding: 20px;
justify-items: center;
}
.image-item {
overflow: hidden;
border-radius: 8px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-item img {
width: 100%;
height: auto;
display: block;
object-fit: cover;
}
.image-item:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}