forked from iamrahulmahato/master-web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style1.css
190 lines (168 loc) · 4.51 KB
/
style1.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
/* Variables for light and dark mode */
:root {
--bg: #f8fafc; /* Light mode background */
--primary: #f43f5e;
--btn-color: #fa2b4d;
--btn-text: #fff;
--head: #334155;
--card: #fff; /* Light mode card background */
--p: #4b5563;
}
[data-theme="dark"] {
--bg: #1e293b; /* Dark mode background */
--btn-color: #fecdd3;
--btn-text: #1e293b;
--head: #fff;
--card: #192333; /* Dark mode card background */
--p: #94A3B8;
}
body {
background-color: var(--bg); /* Matches the theme */
color: var(--p);
font-family: 'Arial', sans-serif;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
#back_to_home {
background-color: #696a6b; /* Blue background */
color: white; /* White text */
padding: 10px 20px; /* Padding for the button */
border: none; /* Remove default borders */
border-radius: 5px; /* Rounded corners */
font-size: 16px; /* Font size */
cursor: pointer; /* Change cursor to pointer */
margin-top: 20px;
transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition for hover effects */
}
#back_to_home:hover {
background-color: #357ABD; /* Darker blue on hover */
transform: translateY(-2px); /* Slight lift on hover */
}
#back_to_home:active {
transform: translateY(0); /* Reset lift when clicked */
}
/* Feedback Form Styling */
.feedback-form {
background-color: var(--card); /* Matches the theme */
padding: 20px;
border-radius: 10px;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
max-width: 500px;
margin: 50px auto;
transition: all 0.3s ease-in-out;
}
.feedback-form h2 {
color: var(--head);
text-align: center;
margin-bottom: 20px;
}
/* Rating Styling */
.rating-stars {
display: flex;
gap: 10px;
}
.rating-stars label {
width: 20px;
height: 20px;
background-color: var(--p); /* Use theme color */
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
cursor: pointer;
transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.rating-stars input[type="radio"] {
display: none;
}
.rating-stars input[type="radio"]:checked ~ label {
background-color: var(--primary);
}
.rating-stars label:hover {
transform: scale(1.2);
}
/* Form Group Styling */
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: var(--head);
}
.form-group label {
display: flex;
align-items: center;
font-size: 16px;
color: #333;
margin-bottom: 10px;
}
.form-group label i {
margin-right: 8px;
color: #000000; /* Icon color */
}
.form-group input,
.form-group textarea {
width: 90%;
padding: 10px;
border: 1px solid var(--p);
border-radius: 5px;
background-color: var(--bg); /* Matches the theme */
color: var(--p);
transition: border-color 0.3s ease-in-out;
}
.form-group input:focus,
.form-group textarea:focus {
border-color: var(--primary);
outline: none;
}
/* Submit Button Styling */
.submit-btn {
width: 100%;
padding: 12px;
background-color: var(--btn-color);
color: var(--btn-text);
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.submit-btn:hover {
background-color: var(--primary);
padding: 14px; /* Responsive button hover effect */
}
/* Responsive Design */
@media (max-width: 600px) {
.feedback-form {
padding: 15px;
}
.submit-btn {
font-size: 14px;
}
}
.form-group input {
/* This inherits styles from the existing input rules */
transition: border-color 0.3s ease-in-out;
}
/* Animation for name and email fields */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.form-group {
animation: fadeIn 0.5s ease forwards; /* Apply animation */
}
.name-email-bg {
background-color: var(--card); /* Background color to match theme */
border-radius: 5px; /* Rounded corners for the background */
padding: 10px; /* Padding around the fields */
margin-bottom: 20px; /* Space below the section */
}
.form-group {
margin-bottom: 20px; /* Space between each field */
width: 100%; /* Ensure it takes full width */
}