-
Notifications
You must be signed in to change notification settings - Fork 0
/
style2.css
214 lines (184 loc) · 4.61 KB
/
style2.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/* Reset & Typography */
body {
margin: 0;
font-family: sans-serif;
line-height: 1.6;
}
h1,
h2,
h3 {
margin-bottom: 1rem;
}
ul {
padding: 0;
list-style: none;
}
/* Navbar Styling */
.nav {
display: flex;
justify-content: space-between; /* Centers the entire navbar content */
align-items: center; /* Ensures vertical alignment */
gap: 2rem; /* Adds spacing between logo and links */
}
.nav ul {
display: flex; /* Aligns the links horizontally */
gap: 30rem; /* Adds space between each link */
list-style: none; /* Removes bullet points */
margin: 0; /* Ensures no extra spacing */
padding: 0; /* Ensures no extra spacing */
}
.nav a {
text-decoration: none; /* Removes underline */
font-size: 1rem; /* Adjusts the font size */
color: #000000; /* Black text color */
font-weight: 500; /* Semi-bold */
transition: color 0.3s ease; /* Smooth hover transition */
}
.nav a:hover {
color: #007bff; /* Changes color on hover */
}
/* Hero Section */
.hero {
background-color: #6c757d;
color: white;
text-align: center;
padding: 5rem 0;
}
.hero h1 {
font-size: 3rem;
font-weight: bold;
}
.hero-overlay p {
margin-top: 0.5rem;
}
/* Contact Section */
.contact-section {
margin-top: 2rem;
}
.contact-details {
padding: 1rem 0;
}
.contact-image img {
width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Contact Form */
.contact-form {
background-color: #f8f9fa;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 0.8rem;
margin-bottom: 1rem;
border: 1px solid #dddddd;
border-radius: 4px;
}
.contact-form button {
width: 100%;
padding: 0.8rem;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.contact-form button:hover {
background-color: #0056b3;
}
/* Footer */
.footer {
background-color: #f8f9fa;
text-align: center;
padding: 1rem 0;
margin-top: 2rem;
}
.product-details .btn-view-here {
display: inline-block; /* Ensures button stays inline */
margin-top: 1rem; /* Adds spacing above the button */
/* padding: 10px 20px;
border: 2px solid ;
border-radius: 5px;
background: #007BFF;
font-weight: bold;
color: #FFFFFF;
position: absolute; Absolute positioning
bottom: 10px; Aligns button 20px from the bottom
left: 50%; Centers the button horizontally
transform: translateX(-50%); /* Adjusts for the button's width */
display: inline-block; /* Ensures buttons behave like inline-block elements */
justify-content:center;
font-weight: 400; /* Regular font weight */
text-align: center; /* Centers the text inside the button */
white-space: nowrap; /* Prevents text from wrapping */
vertical-align: middle; /* Aligns the button properly in a line of text */
user-select: none; /* Prevents text selection */
border: 1px solid transparent; /* Default border with no visible color */
padding: 0.375rem 0.75rem; /* Adds inner spacing (padding) */
font-size: 1rem; /* Default font size */
line-height: 1.5; /* Default line height */
border-radius: 0.375rem; /* Rounded corners */
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Smooth transitions for hover/focus */
}
.product-container {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 2rem;
text-align: center;
}
.product-container.reverse {
flex-direction: column-reverse; /* Reverse the stack for alternating items */
}
@media (min-width: 768px) {
.product-container {
flex-direction: row; /* Row layout for larger screens */
text-align: left; /* Left-align content */
}
.product-container.reverse {
flex-direction: row-reverse; /* Reverse row layout for larger screens */
}
}
.product-image {
flex: 1;
}
.product-image img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out;
}
.product-image img:hover {
transform: scale(1.05); /* Subtle zoom effect on hover */
}
.product-details {
flex: 1;
}
.product-details h1 {
font-size: 2rem;
font-weight: bold;
color: #333;
margin-bottom: 1rem;
}
.product-details p {
font-size: 1rem;
color: #6c757d;
margin-bottom: 1.5rem;
line-height: 1.6;
}
.btn-primary {
padding: 0.75rem 1.5rem;
background-color: #007bff;
border: none;
font-size: 1rem;
transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.btn-primary:hover {
background-color: #0056b3;
transform: scale(1.05);
}