forked from Manupriya-Vayalambron/symposium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
151 lines (131 loc) · 3.89 KB
/
styles.css
File metadata and controls
151 lines (131 loc) · 3.89 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
/* === General Styles === */
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #f0f4f8; /* Lighter background */
color: #333;
line-height: 1.6;
}
/* === Banner Styles === */
.banner-header {
position: relative; /* For positioning the overlay */
height: 400px; /* Set a height for the header */
overflow: hidden; /* Hide overflow */
}
.banner-image {
background-image: url('banner.jpeg'); /* Set your banner image */
background-size: cover; /* Ensure the entire image fits without cropping */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Prevent the image from repeating */
width: 100%;
height: 100%;
position: absolute; /* Position it absolutely */
top: 0;
left: 0;
z-index: 1; /* Send it to the back */
}
/* Add a pseudo-element for the blur effect */
.banner-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
z-index: 2; /* Place it above the banner image */
}
/* === Header Styles === */
header {
position: relative; /* Ensure header is above the banner */
color: white;
padding: 60px 20px; /* Increased padding */
text-align: center;
z-index: 3; /* Ensure header is above the overlay */
}
/* === Navigation Bar === */
nav {
background: #333; /* Dark background for nav */
padding: 10px 0; /* Padding for nav */
}
nav ul {
list-style: none; /* Remove bullet points */
padding: 0; /* Remove padding */
text-align: center; /* Center the nav items */
}
nav ul li {
display: inline; /* Horizontal list */
margin: 0 15px; /* Spacing between items */
}
nav ul li a {
color: white; /* White text */
text-decoration: none; /* Remove underline */
font-weight: bold; /* Bold text */
}
/* === Grid Container === */
.grid-container {
display: grid;
grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
gap: 20px; /* Space between grid items */
padding: 20px; /* Padding around the grid */
}
/* === Letter Labels === */
.letter-label {
font-size: 2.5rem; /* Increased size */
font-weight: bold;
text-align: center;
background: #e0e0e0; /* Light background for visibility */
border-radius: 10px;
padding: 30px 0; /* Increased padding */
grid-column: span 5; /* Span all columns */
}
/* === Grid Items === */
.grid-item {
background: white;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
overflow: hidden; /* Ensures images fit within the rounded corners */
transition: transform 0.3s; /* Smooth transition for hover effect */
}
.grid-item:hover {
transform: scale(1.05); /* Slightly enlarge on hover */
}
.grid-item img {
width: 100%;
height: 200px; /* Fixed height for uniformity */
object-fit: cover; /* Ensures images cover the area without distortion */
}
/* === Footer Styles === */
footer {
background: #444; /* Darker footer */
color: white;
text-align: center;
padding: 30px; /* Increased padding */
margin-top: 40px;
}
/* === Media Queries for Mobile Responsiveness === */
@media (max-width: 768px) {
.grid-container {
grid-template-columns: repeat(2, 1fr); /* Two columns on mobile */
}
.letter-label {
font-size: 2rem; /* Smaller font size on mobile */
padding: 20px 0; /* Reduced padding */
}
header {
padding: 40px 10px; /* Reduced padding for mobile */
}
nav ul li {
margin: 0 10px; /* Reduced spacing for mobile */
}
}
@media (max-width: 480px) {
.grid-container {
grid-template-columns: 1fr; /* Single column on very small screens */
}
.letter-label {
font-size: 1.5rem; /* Further reduced font size for very small screens */
padding: 15px 0; /* Further reduced padding */
}
}