-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
227 lines (195 loc) · 4.96 KB
/
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
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
225
226
227
/* CSS Variables for Consistent Theme */
:root {
--primary-gradient: linear-gradient(135deg, #6a11cb, #2575fc); /* Purple Gradient */
--header-gradient: linear-gradient(135deg, #e0f7fa, #b3e5fc);
--footer-gradient: linear-gradient(135deg, #1e3c72, #2a5298);
--button-bg: #007bff; /* Blue Button Background */
--button-bg-hover: #0056b3; /* Darker Blue Button Hover */
--button-active-like: green; /* Like Button Active Color */
--button-active-dislike: red; /* Dislike Button Active Color */
--button-gray: gray; /* Gray Buttons Background */
--text-color: White; /* General Text Color */
--white: #ffffff; /* White Color */
}
/* General Styles */
html, body {
height: 100%;
margin: 0;
font-family: 'Roboto', sans-serif;
color: var(--text-color);
background: var(--primary-gradient); /* Set background to purple gradient */
}
/* Header Styles */
header {
background: var(--header-gradient);
color: var(--text-color);
text-align: center;
padding: 30px 20px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin: 20px auto;
max-width: 90%; /* Ensure it fits well on smaller screens */
}
header h1 {
margin: 0;
font-size: 2em;
font-weight: 300;
color: #0277bd;
}
header p {
margin: 10px 0 0;
font-size: 1em;
line-height: 1.4;
color: #01579b;
}
/* Main Styles */
main {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
max-width: 1200px;
margin: 0 auto;
}
/* Image Section */
.image-section {
text-align: center;
margin-bottom: 20px; /* Space between image and buttons */
}
.image-section img {
width: 70%;
max-width: 70%;
height: auto;
object-fit: cover;
border-radius: 50px;
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
/* Button Container */
.button-container, .other-buttons {
display: flex;
justify-content: center;
gap: 15px;
margin: 10px 0;
flex-wrap: wrap;
}
/* Button Styles */
button {
padding: 15px 30px;
font-size: 18px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
background-color: var(--button-bg);
color: var(--white);
}
button:hover {
background-color: var(--button-bg-hover);
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
/* Active States */
button.active-like {
background-color: var(--button-active-like);
}
button.active-dislike {
background-color: var(--button-active-dislike);
}
/* Specific Button Styles */
#externalLink {
background-color: #ff6f61; /* Coral Color */
}
#externalLink:hover {
background-color: #ff3d2e; /* Darker Coral on Hover */
}
/* Footer Styles */
footer {
background: var(--footer-gradient);
color: var(--white);
text-align: center;
padding: 20px;
margin-top: 20px;
box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}
/* General Styles for Comment Section */
.comment-section {
display: flex;
flex-direction: column;
align-items: center;
margin: 20px auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px;
max-width: 800px;
}
#comment-text-area {
width: 100%;
height: 100px;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
margin-bottom: 10px;
}
.comment-section button {
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
background-color: var(--button-bg);
color: var(--white);
}
/* Responsive Styles */
@media (max-width: 768px) {
header h1 {
font-size: 1.5em;
}
header p {
font-size: 0.9em;
}
button {
width: 100%;
max-width: 300px;
}
}
.image-section img {
opacity: 0; /* Start fully transparent */
transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.image-section img.show {
opacity: 1; /* Fade in */
}
button:hover {
background-color: var(--button-bg-hover);
transform: scale(1.1); /* Increase scale slightly on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
/* Animation for liked state */
@keyframes likeAnimation {
0% { transform: scale(1); }
25% { transform: scale(1.1); background-color: green; }
50% { transform: scale(1); }
75% { transform: scale(1.1); }
100% { transform: scale(1); }
}
/* Animation for disliked state */
@keyframes dislikeAnimation {
0% { transform: scale(1); }
25% { transform: scale(1); background-color: red; }
50% { transform: scale(1.1); }
75% { transform: scale(1); }
100% { transform: scale(1); }
}
.liked {
animation: likeAnimation 1s forwards;
}
.disliked {
animation: dislikeAnimation 1s forwards;
}
#comment-box {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-in-out; /* Smooth transition */
}
#comment-box.open {
max-height: 200px; /* Adjust as needed for content */
}