-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
235 lines (199 loc) · 4.89 KB
/
styles.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/* Reset and Basic Styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(45deg, #e0f7fa, #a5d6a7);
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Use min-height to prevent overflow issues */
overflow-x: hidden; /* Fix overflow due to large elements */
}
.container {
max-width: 1200px;
width: 100%;
padding: 100px 20px 20px;
}
.logo {
font-size: 24px;
font-weight: bold;
color: #2e7d32;
}
nav {
display: flex;
gap: 30px;
}
nav a {
color: #2e7d32;
text-decoration: none;
font-size: 16px;
font-weight: 500;
}
nav a:hover {
text-decoration: underline;
}
/* Main Content Section */
.main-content {
display: flex;
justify-content: space-between;
align-items: flex-start; /* Ensures alignment starts from the top */
margin-top: 40px;
}
.iframe-container {
margin-top: 40px;
height: 1900px; /* Updated height */
width: 100%; /* Keep full width */
}
iframe {
width: 100%; /* Full width of the container */
height: 100%; /* Match the height of the iframe container */
border-radius: 2%;
}
.text-content {
max-width: 50%;
display: flex;
flex-direction: column;
}
.text-content h1 {
font-size: 48px; /* Adjusted for better scaling */
font-weight: 800;
color: #2e7d32;
line-height: 1.2;
}
.text-content p {
font-size: 18px;
color: #666;
margin-top: 20px;
line-height: 1.6;
width: 80%;
}
.input-box {
display: flex;
margin-top: 20px;
}
.input-box input {
padding: 10px;
font-size: 16px;
border-radius: 10px;
border: 1px solid #a5d6a7;
width: 250px;
margin-right: 10px;
}
.btn {
padding: 15px 40px;
font-size: 16px;
font-weight: 600;
border-radius: 10px;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
.btn-secondary {
background-color: transparent;
border: 2px solid #2e7d32;
color: #2e7d32;
}
.btn-secondary:hover {
background-color: #2e7d32;
color: white;
}
/* Right Section with Cards */
.cards {
display: grid;
grid-template-columns: repeat(3, 2fr); /* Use fractional units for flexible sizing */
grid-gap: 25px;
align-items: center; /* Aligns cards vertically */
justify-content: space-evenly; /* Centers the grid items horizontally */
}
.card {
width: 200px;
height: 150px;
border-radius: 12px;
display: flex;
flex: 1 1 calc(33.333% - 40px);
align-items: center;
justify-content: center;
animation: float 2s ease-in-out infinite;
}
.card img {
width: 100px;
height: 100px;
object-fit: cover;
}
.card:hover {
transform: scale(1.05); /* Slight zoom effect on hover */
}
@keyframes float {
0% { transform: translateY(0); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0); }
}
/* Circular Motion */
@keyframes circular-motion {
0% { transform: translate(0, 0); }
25% { transform: translate(100px, 0); }
50% { transform: translate(100px, 100px); }
75% { transform: translate(0, 100px); }
100% { transform: translate(0, 0); }
}
.card:nth-child(1) { animation: circular-motion 4s ease-in-out infinite; }
.card:nth-child(2) { animation: circular-motion 4s ease-in-out infinite 0.2s; }
.card:nth-child(3) { animation: circular-motion 4s ease-in-out infinite 0.4s; }
.card:nth-child(4) { animation: circular-motion 4s ease-in-out infinite 0.6s; }
.card:nth-child(5) { animation: circular-motion 4s ease-in-out infinite 0.8s; }
.card:nth-child(6) { animation: circular-motion 4s ease-in-out infinite 1s; }
/* Decorative Shapes */
.decorative {
position: absolute;
width: 100px;
height: 100px;
border: 2px solid #2e7d32;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
}
/* Response Message */
#response-message {
color: rgb(43, 210, 43);
margin-top: 20px;
font-weight: bold;
font-size: medium;
}
/* Responsive Design */
@media (max-width: 768px) {
.main-content {
flex-direction: column;
align-items: center;
text-align: center;
}
.text-content {
max-width: 100%;
}
.cards {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 480px) {
.cards {
grid-template-columns: 1fr;
}
.text-content h1 {
font-size: 36px;
}
}
.text {
color: white; /* Initial color */
font-size: larger; /* Font size */
font-weight: 600; /* Font weight */
text-transform: none; /* Initial text transformation */
transition: color 1s ease, text-transform 2s ease; /* Smooth transitions */
}
.text:hover {
color: aqua; /* Change text color on hover */
}