-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
224 lines (181 loc) Β· 4.38 KB
/
style.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
*{
margin: 0;
padding: 0;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
box-sizing: border-box;
transition: all 0.3s ease-in-out;
}
.total {
width: 100%;
min-height: 100vh;
background: linear-gradient(45deg, rgb(6, 12, 96), #b133cd);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: white;
transition: background 0.5s ease;
animation: fadeIn 1s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.total h1 {
font-size: 45px;
font-weight: bold;
margin-top: -50px;
margin-bottom: 50px;
opacity: 0;
animation: slideIn 1s ease forwards;
text-align: center;
}
@keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
}
@keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.total h1 span {
color: #ff2963;
}
textarea {
width: 600px;
height: 250px;
background: #6460a6;
color: white;
font-size: 1.2rem;
border: 0;
outline: 0;
padding: 20px;
border-radius: 10px;
resize: none;
margin-bottom: 30px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
transition: box-shadow 0.3s ease;
}
textarea:hover, textarea:focus {
box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
}
textarea::placeholder {
font-size: 1.2rem;
font-size: 1.2rem;
border: 0;
outline: 0;
padding: 20px;
border-radius: 10px;
resize: none;
margin-bottom: 30px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
transition: box-shadow 0.3s ease;
}
textarea:hover, textarea:focus {
box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
}
textarea::placeholder {
font-size: 1.2rem;
color: white;
}
.row {
width: 600px;
display: flex;
flex-direction: column; /* Make this column direction */
align-items: center; /* Align items in the center */
align-items: center;
gap: 20px;
animation: fadeIn 1.5s ease;
}
/* Center the text in the heading */
.row h1 {
font-size: 22px;
color: white;
text-align: center;
margin-bottom: 10px;
}
button {
background: #ff2963;
color: white;
font-size: 1.2rem;
padding: 10px 30px;
border-radius: 35px;
border: 0;
outline: 0;
cursor: pointer;
font-weight: bold;
transition: background 0.4s ease, transform 0.2s;
}
button:hover {
background: #ff174e;
transform: scale(1.05);
box-shadow: 0px 4px 12px rgba(255, 41, 99, 0.5);
}
select {
flex: 1;
width: 100%; /* Make the select take the full width */
color: white;
font-size: 1.2rem;
font-weight: bold;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
background: #6460a6;
height: 50px;
padding: 0 20px;
outline: 0;
border: 0;
border-radius: 35px;
appearance: none;
background-image: url(dropdown.png);
background-repeat: no-repeat;
background-size: 15px;
background-position-x: calc(100% - 20px);
background-position-y: 20px;
transition: background-color 0.3s ease;
}
select:hover {
background-color: #7c6ebf;
}
/* Add animation when the page is loaded */
@keyframes dropdownSlide {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
select {
animation: dropdownSlide 0.5s ease;
height: 50px; /* Ensure the select box height is consistent */
line-height: 50px; /* Align the text vertically */
padding: 0 20px; /* Padding for inner spacing */
background-size: 15px;
background-position-x: calc(100% - 20px);
background-position-y: center; /* Align dropdown arrow in the center */
}
/* Ensure the select and button align properly */
.row {
display: flex;
flex-direction: column; /* Keep the column structure */
align-items: center;
}
.row h1, .row select, .row button {
width: 100%; /* Make each child of row fill the full width */
text-align: center; /* Center align the text */
margin-bottom: 15px;
}
/* Add some padding to ensure spacing is correct */
.row h1 {
padding-bottom: 10px;
}
.row button {
height: 50px; /* Match the height of the button and select */
}