-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
80 lines (68 loc) · 1.41 KB
/
Copy pathindex.css
File metadata and controls
80 lines (68 loc) · 1.41 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
body,
html {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
background-color: bisque;
height: 100;
}
header {
background-color: rgb(116, 116, 10);
color:blanchedalmond;
padding: 30px;
text-align: center;
font-family: Georgia, 'Times New Roman', Times, serif;
border-radius: 5cqmin;
}
main {
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
}
.characters-list {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.character-item {
background-color: rgb(228, 253, 253);
border: 1px salmon;
border-radius: 40px;
padding: 10px;
text-align: center;
cursor: pointer;
width: 100px;
box-shadow: 0 2px 4px rgba(red, green, blue, alpha);
transition: transform 0.2s ease-in-out;
}
.characters-item img {
max-width: 100%;
height: auto;
}
.character-item:hover {
transform: scale(1.05);
}
.character-details {
margin-top: 40px;
padding: 20px;
background-color:whitesmoke;
border-radius: 30px;
box-shadow: 0 4px 6px rgba(red, green, blue, alpha);
text-align: center;
}
/* Responsive design */
@media screen and (max-width: 768px){
.characters-list {
flex-direction: column;
align-items: center;
}
.character-item {
max-width :100%;
height: auto;
}
}