-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
72 lines (63 loc) · 1.44 KB
/
style.css
File metadata and controls
72 lines (63 loc) · 1.44 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
/* Overall styling for the body */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
padding: 20px;
}
h1 {
text-align: center;
color: #333;
font-size: 3em;
}
/* Container for the cards */
.cards-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
gap: 20px;
width: 80%;
max-width: 1200px;
margin-top: 40px;
justify-items: center;
}
/* Card styling */
.card {
background-color: #f7f7f7; /* Light grey background */
padding: 20px;
width: 200px;
text-align: center;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
/* Image styling */
.card img {
width: 100%;
height: auto;
border-radius: 10%;
margin-bottom: 15px;
}
/* Name and occupation text */
.card h2 {
font-size: 1.1em;
color: #333;
margin-bottom: 5px;
}
/* Birthday styling */
.card p {
font-size: 0.9em;
color: #777;
}
/* For smaller screens, arrange 2 in the first row and 3 in the second */
@media (max-width: 800px) {
.cards-container {
grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
}
}