-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
252 lines (228 loc) · 5.35 KB
/
style.css
File metadata and controls
252 lines (228 loc) · 5.35 KB
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
/* Universal selector */
* {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Element selector */
body {
background-color: lightblue; /* Doraemon sky blue */
}
/* ID selector */
#title {
color: black; /* Doraemon blue */
text-align: center;
}
/* Class selector */
.intro {
color: blue; /* White for contrast like Doraemon's face */
}
/* Element selector */
h2 {
color: lightblue; /* Doraemon blue */
}
/* Class selector */
.characters {
background-color: lightblue; /* Doraemon soft blue */
padding: 10px;
}
/* Descendant selector */
.characters li {
color: lightblue; /* Dark blue for text */
}
/* Group selector */
h1, h2, p {
margin: 10px;
}
img {
width: 200px;
display: block;
margin: auto;
border-radius: 15px;
border: 3px solid blue;
padding: 5px;
background-color: white;
}
/* Doraemon style for all videos */
video {
border: 5px solid lightblue; /* Doraemon blue border */
border-radius: 15px; /* Rounded corners */
background-color: white; /* White background */
box-shadow: 0 0 15px skyblue; /* Soft blue shadow */
padding: 5px; /* Small padding */
max-width: 100%; /* Responsive width */
display: block;
margin: 20px auto; /* Center videos */
}
video:hover {
transform: scale(1.05); /* Slight zoom on hover */
transition: 0.3s ease;
}
/* Doraemon style for all audio */
audio {
border: 4px solid lightblue; /* Blue border */
border-radius: 12px; /* Rounded corners */
background-color: white; /* White background */
box-shadow: 0 0 10px skyblue; /* Soft blue shadow */
padding: 5px;
display: block;
margin: 20px auto; /* Centered */
}
/* Doraemon style for all GIFs */
/* Doraemon style for all GIFs */
img[src$=".gif"] {
border: 5px solid lightblue; /* Doraemon blue border */
border-radius: 15px; /* Rounded corners */
background-color: white; /* White background */
box-shadow: 0 0 15px skyblue; /* Soft blue shadow */
padding: 5px;
max-width: 100%;
display: block;
margin: 20px auto; /* Center GIFs */
transition: transform 0.3s ease;
}
img[src$=".gif"]:hover {
transform: scale(1.05); /* Fun zoom on hover */
}
header {
background: lightblue;
padding: 15px;
text-align: center;
border-bottom: 4px solid skyblue;
}
#title {
color: white;
font-family: "Comic Sans MS", cursive;
font-size: 2em;
margin: 0;
text-shadow: 2px 2px 5px skyblue;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
gap: 15px;
}
nav ul li a {
text-decoration: none;
color: white;
font-weight: bold;
border-radius: 8px;
padding: 5px 10px;
}
nav ul li a:hover {
background: white;
color: lightblue;
}
body {
font-family: Arial, Helvetica, sans-serif;
background: #d0e8ff;
padding: 30px;
}
/* Main Heading */
h1 {
text-align: center;
color: #0052a3;
text-transform: uppercase;
text-shadow: 3px 3px 5px gray;
}
/* Character Heading */
.character-box h2 {
color: #ff3b3b;
text-decoration: underline;
text-transform: capitalize;
letter-spacing: 2px;
text-shadow: 2px 2px 4px lightgray;
}
/* Character Paragraph */
.character-box p {
font-size: 18px;
text-indent: 50px;
line-height: 1.6;
color: #333;
}
/* Image Styling */
.character-box img{
width:200px;
height:200px;
object-fit: cover;
border-radius:10px;
display:block;
margin:10px auto;
box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}body {
margin: 0;
font-family: Arial, sans-serif;
color: #fff;
/* Background image + properties */
background-image: url("images/imli.jpg");
background-repeat: no-repeat;
background-position: center;
background-attachment: fixed;
background-size: cover;
}
/* HEADER WITH GRADIENT */
header {
padding: 20px;
text-align: center;
background: linear-gradient(90deg, #00c6ff, #0072ff);
animation: slideDown 2s ease;
}
@keyframes slideDown {
from {
transform: translateY(-100px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* MAIN CONTAINER */
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
padding: 40px;
}
/* GADGET CARD */
.card {
background-color: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 12px;
text-align: center;
/* Background gradient inside card */
background-image: linear-gradient(135deg, #1e3c72, #2a5298);
/* Animation */
animation: fadeIn 2s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
}
.card img {
width: 150px;
height: 150px;
}
/* FOOTER */
footer {
text-align: center;
padding: 15px;
background-color: rgba(0, 0, 0, 0.7);
}
/* Gradient Subtitle */
.subtitle{
text-align: center;
font-size: 22px;
font-weight: bold;
background: linear-gradient(to right, #ff0080, #ff6600);
-webkit-background-clip: text;
color: transparent;
word-spacing: 5px;
text-transform: capitalize;
}