-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionnaire_styles.css
157 lines (136 loc) · 2.69 KB
/
questionnaire_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
/* Universal Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
}
body {
background-color: #e3f2fd;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
/* Form Container */
form {
background-color: #ffffff;
padding: 40px;
border-radius: 8px;
max-width: 600px;
width: 100%;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
border: 1px solid #bbdefb;
}
/* Heading */
h1 {
font-size: 2rem;
color: #0d47a1;
text-align: center;
margin-bottom: 1.5rem;
}
/* Question Styling */
.question {
margin-bottom: 20px;
}
.question label {
font-size: 1.1rem;
color: #1565c0;
margin-bottom: 8px;
display: block;
}
input[type="number"],
select {
font-size: 1rem;
padding: 12px;
width: 100%;
border: 1px solid #90caf9;
border-radius: 6px;
margin-top: 8px;
margin-bottom: 15px;
font-family: 'Arial', sans-serif;
background-color: #e3f2fd;
}
/* Radio Buttons */
input[type="radio"] {
margin-right: 10px;
}
input[type="radio"] + label {
display: inline-block;
font-size: 1rem;
color: #0d47a1;
margin-bottom: 10px;
}
/* Button Styling */
button {
display: block;
width: 100%;
padding: 14px 0;
background-color: #42a5f5;
color: white;
border: none;
border-radius: 6px;
font-size: 1.2rem;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 20px;
}
button:hover {
background-color: #1e88e5;
}
/* Placeholder Styling */
input::placeholder {
color: #a9a9a9;
}
/* Responsive Design */
@media screen and (max-width: 768px) {
form {
padding: 20px;
}
h1 {
font-size: 1.8rem;
}
label,
input,
select,
button {
font-size: 1rem;
}
button {
padding: 12px 0;
}
}
/* Result Section Styling */
#result {
margin-top: 30px;
padding: 20px;
background-color: #bbdefb;
border-radius: 8px;
border: 1px solid #90caf9;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#result h2 {
color: #0d47a1;
font-size: 1.8rem;
text-align: center;
margin-bottom: 15px;
}
#result p {
font-size: 1.2rem;
color: #1565c0;
padding: 10px 0;
border-bottom: 1px solid #90caf9;
}
#result p:last-child {
border-bottom: none;
}
/* Responsive Design for Result Section */
@media screen and (max-width: 768px) {
#result h2 {
font-size: 1.6rem;
}
#result p {
font-size: 1rem;
}
}