-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz.css
160 lines (134 loc) · 2.98 KB
/
quiz.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
/* font-awesome */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400&display=swap');
/* All elements styling */
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
/* body styling */
body {
font-family: 'Josefin Sans', sans-serif;
}
/* Parent styling */
.outer-box {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to top left, #3ed8ff, #a8ffff);
}
/* child styling (positioning 2nd div) */
.inner-box {
margin: 0 auto;
width: 90%; /* Changed from fixed width to percentage */
max-width: 450px; /* Set a max-width for larger screens */
padding: 20px 40px;
background-color: white;
border-radius: 9px;
box-shadow: 2px 2px 5px #005669;
z-index: 2;
}
/* signup header */
.signup-header h1 {
font-size: 2.5rem;
color: #212121;
text-align: center;
}
span {
color: #00ccff;
}
.signup-header p {
font-size: 0.9rem;
color: #555;
margin-top: 10px;
text-align: center;
}
/* main signup body (input) */
.signup-body {
margin: 20px 0;
}
.signup-body p {
margin: 15px 0px;
}
.signup-body label {
display: block; /* Ensures label takes full width */
font-weight: bold;
}
.signup-body p input {
width: 100%;
padding: 10px;
border: 2px solid #d4f6ff;
border-radius: 6px;
margin-top: 5px;
margin-left: -3px;
font-size: 0.9rem;
color: black;
font-weight: lighter;
}
.signup-body input[type="button"] {
padding: 11px;
background-color: #7de5ff;
font-weight: bold;
color: black;
border-radius: 20px;
width: 100%; /* Ensure the button takes full width */
}
.signup-body input[type="button"]:hover {
background-color: #05c4f4;
cursor: pointer;
}
.signup-footer {
text-align: center;
font-size: 14px;
}
.round {
height: 200px;
width: 200px;
border-radius: 100px;
background: linear-gradient(to top right, #bcbcbc33, #ffffff);
}
.c1 {
position: absolute;
top: 40px;
left: 40px;
}
.c2 {
position: absolute;
bottom: 40px;
right: 40px;
}
.center {
text-align: center;
color: red;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
.inner-box {
padding: 20px 15px; /* Adjust padding for smaller screens */
}
.signup-header h1 {
font-size: 2rem; /* Reduce header size */
}
.signup-body p input {
font-size: 0.8rem; /* Reduce input font size */
}
.signup-body input[type="button"] {
font-size: 0.9rem; /* Reduce button font size */
}
}
@media (max-width: 480px) {
.signup-header h1 {
font-size: 1.8rem; /* Further reduce header size */
}
.signup-body p input {
padding: 8px; /* Reduce input padding */
}
.signup-body input[type="button"] {
padding: 10px; /* Reduce button padding */
}
.outer-box {
flex-direction: column; /* Stack elements vertically */
}
}