-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
89 lines (74 loc) · 1.73 KB
/
Copy pathstyle.css
File metadata and controls
89 lines (74 loc) · 1.73 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: aqua;
}
.main {
margin: 20px auto;
max-width: 1100px;
background-color: white;
padding: 30px 2%;
}
.main h2 {
font-size: 45px;
color: #ff6f61; /* A more contrasting color than salmon */
text-align: center;
}
:root {
--primary-color: #ff6f61;
--background-color: aqua;
--box-background: rgb(230, 230, 230);
}
body {
background-color: var(--background-color);
}
.main h2 {
color: var(--primary-color);
}
.pokemon-box {
background-color: var(--box-background);
}
.pokemon-boxes {
margin: 20px 0;
display: flex;
flex-wrap: wrap; /* Allow boxes to wrap to the next line */
justify-content: space-between; /* Distribute space evenly */
}
.pokemon-box {
border-radius: 10px;
width: 29%; /* Adjust width for responsiveness */
margin: 20px 2%;
background-color: rgb(230, 230, 230);
text-align: center;
}
.pokemon-box img {
width: 100%;
border-radius: 10px 10px 0 0; /* Rounded corners for the top of the image */
}
.pokemon-box p {
color: black;
font-size: 21px;
text-align: center;
padding: 10px 0;
}
.pokemon-box:hover {
transform: scale(1.05);
transition: transform 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Responsive Design */
@media screen and (max-width: 768px) {
.pokemon-box {
width: 48%; /* Two boxes per row on smaller screens */
margin: 10px 1%;
}
}
@media screen and (max-width: 480px) {
.pokemon-box {
width: 100%; /* One box per row on very small screens */
margin: 10px 0;
}
}