forked from jaiyankargupta/OCD-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContactUs.css
198 lines (173 loc) · 3.97 KB
/
ContactUs.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
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
svg {
height: 23rem;
margin-right: 4rem;
}
.contact-us-page{
display: flex;
justify-content: center;
height:100%;
}
.contact-container{
display: flex;
align-items: center;
justify-content: center;
height:100vh;
padding: 1rem; /* Added padding for spacing */
box-sizing: border-box; /* Ensure padding and border are included in total width/height */
}
.title-contact{
margin-bottom: 5px;
font-family: 'Courier New', Courier, monospace;
color:#C5291D;
font-size: 40px;
text-align: center; /* Center the title for better appearance on smaller screens */
}
.just{
display: flex;
justify-content: space-around;
width: 100%; /* Changed width to 100% for responsiveness */
max-width: 50%;
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}
#envelope {
animation: float 2s ease-in-out infinite;
}
#star1, #star2, #star3, #star4, #star5, #star6 {
animation: blink 1s ease-in-out infinite;
}
#star2 { animation-delay: 100ms; }
#star3 { animation-delay: 500ms; }
#star4 { animation-delay: 700ms; }
#star5 { animation-delay: 300ms; }
#star6 { animation-delay: 200ms }
@keyframes float {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0px);
}
}
@keyframes blink {
0% {
opacity: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 1;
}
}
#formMessage{
margin-top: 50px;
width: 80%; /* Changed width to 100% for responsiveness */
background-color: white;
}
.contact-form {
min-width: 25rem;
.title {
font-family: 'Pacifico', cursive;
color: #212529;
font-size: 2.5rem;
}
.form-control {
background-color: #f2f6f8;
border-radius: 2rem;
border: none;
box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
&.thick {
height: 3.3rem;
padding: .5rem 3.5rem;
}
&:focus {
background-color: #f2f6f8;
border: none;
box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
}
}
.message .form-control {
padding: .5rem 1.8rem;
}
::placeholder {
font-family: 'Quicksand', sans-serif;
font-weight: 600;
font-size: 1.1rem;
color: #838788;
position: relative;
left: 0;
}
input,
textarea {
font-family: 'Quicksand', sans-serif;
color: #212529;
font-size: 1.1rem;
margin-bottom: 12px;
}
.icon {
color: #57565c;
height: 1.3rem;
position: absolute;
left: 1.5rem;
top: 1.1rem;
}
}
.btn.btn-primary {
font-family: 'Quicksand', sans-serif;
font-weight: bold;
height: 2.5rem;
line-height: 2.5rem;
padding: 0 3rem;
border: 0;
border-radius: 3rem;
background-image:linear-gradient(131deg, #ffd340, #ff923c, #ff923c, #ff923c);
background-size: 300% 100%;
transition: all 0.3s ease-in-out;
}
.btn.btn-primary:hover:enabled {
box-shadow: 0 0.5em 0.5em -0.4em #ff923cba;
background-size: 100% 100%;
transform: translateY(-0.15em);
}
@media (max-width: 768px) { /* Tablet screens */
svg {
height: 18rem; /* Adjust height for tablets */
margin-right: 2rem; /* Adjust margin for tablets */
margin-bottom: 12px;
}
.just {
flex-direction: column; /* Stack items vertically */
align-items: center; /* Center items */
width: 100%; /* Full width for smaller screens */
}
.title-contact {
font-size: 35px; /* Adjust font size for tablets */
}
.contact-container{
display: flex;
flex-direction: column;
justify-content: center;
}
.contact-us-page{
overflow-x: hidden;
}
#formMessage {
width: 100%; /* Full width for smaller screens */
}
}
@media (max-width: 480px) { /* Mobile phones */
svg {
height: 15rem; /* Adjust height for mobile phones */
margin-right: 1rem; /* Adjust margin for mobile phones */
}
.title-contact {
font-size: 30px; /* Adjust font size for mobile phones */
}
.btn.btn-primary {
padding: 0 2rem; /* Adjust padding for mobile phones */
}
}