-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles9.css
237 lines (198 loc) · 4.1 KB
/
styles9.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
236
237
/* Global Styles */
body {
background: linear-gradient(to right, #ffb6c1, #e84393);
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.header-container {
background-color: rgba(255, 255, 255, 0);
padding: 10px 20px;
position: relative;
z-index: 1000;
border-bottom: 1px solid #000; /* Maintain border style */
}
.header-container nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
max-width: 80px;
height: auto;
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
nav ul li {
margin: 0 10px;
}
nav ul li a {
text-decoration: none;
color: #000000;
font-weight: bold;
}
/* Modal Styles */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
background-color: #fefefe;
margin: 10% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px; /* Adjust max-width for better display */
}
.modal-content h2 {
text-align: center;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Register and Login Sections */
.register-section, .login-section {
background-color: #ffffffcc;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
padding: 20px;
margin: 50px auto;
max-width: 400px;
text-align: center;
transform: translateY(-5%);
}
.register-section h1, .login-section h1 {
font-size: 2em;
color: #060606;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
.form-group input {
width: 80%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background-color: #e84393;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
}
button:hover {
background-color: #d32f7a;
}
.login-section p {
margin-top: 10px;
}
.login-section p a {
color: #e84393;
text-decoration: none;
font-weight: bold;
}
.login-section p a:hover {
text-decoration: underline;
}
/* Responsive Styles */
@media (max-width: 1200px) {
.register-section, .login-section {
max-width: 350px; /* Adjust width for medium screens */
}
.form-group input {
width: 90%; /* Adjust width for input fields */
}
.modal-content {
max-width: 90%; /* Adjust max-width for better display on smaller screens */
}
.header-container nav {
flex-direction: column;
align-items: flex-start;
}
nav ul {
flex-direction: column;
padding: 0;
}
nav ul li {
margin: 5px 0;
}
}
@media (max-width: 768px) {
.register-section, .login-section {
max-width: 300px; /* Adjust width for smaller screens */
padding: 15px;
margin: 30px auto;
}
.register-section h1, .login-section h1 {
font-size: 1.8em; /* Adjust font size */
}
.form-group input {
width: 100%; /* Full width for input fields */
}
.modal-content {
max-width: 95%; /* Adjust max-width for very small screens */
}
.header-container nav {
flex-direction: column;
align-items: center;
}
nav ul {
flex-direction: column;
padding: 0;
}
nav ul li {
margin: 10px 0;
}
}
@media (max-width: 480px) {
.register-section, .login-section {
max-width: 250px; /* Adjust width for very small screens */
padding: 10px;
margin: 20px auto;
}
.register-section h1, .login-section h1 {
font-size: 1.5em; /* Adjust font size */
}
.form-group input {
width: 100%; /* Full width for input fields */
padding: 8px;
}
button {
padding: 8px 16px; /* Adjust padding */
font-size: 0.9em; /* Adjust font size */
}
.modal-content {
max-width: 100%; /* Full width for very small screens */
padding: 15px;
}
}