-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
94 lines (83 loc) · 1.6 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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f4f4;
flex-direction: column;
}
.page-header {
text-align: center;
margin-bottom: 20px;
border: 2px solid black;
border-radius: 10px;
padding: 30px;
}
.page-header h1 {
font-size: 2em;
margin: 0;
color: #333;
}
.page-header p {
font-size: 1.2em;
color: #777;
}
.container {
display: flex;
flex-wrap: wrap;
gap: 20px;
max-width: 1200px;
padding: 20px;
}
.card {
background-color: white;
border: 1px solid lavender;
border-radius: 8px;
box-shadow: 0 2px 5px lightpink;
overflow: hidden;
flex: 1 1 calc(10% - 40px);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
transition: transform 0.3s;
}
.card img {
width: 100%;
height: 150px;
transition: transform 0.3s;
}
.card h3 {
margin: 16px 0;
font-size: 18px;
color: #333;
}
.card p {
padding: 0 16px;
font-size: 14px;
color: #777;
}
.card button {
margin: 16px 0;
padding: 10px 20px;
border: none;
border-radius: 4px;
background-color: #007bff;
color: white;
cursor: pointer;
}
.card button:hover {
background-color: #0056b3;
box-shadow: 0 2px 5px black;
}
.card img:hover {
transform: scale(1.05);
}
.card:hover {
transform: translateY(-10px); /* Move card up on hover */
box-shadow: 0 10px 15px pink; /* Add shadow on hover */
transition: transform 0.9s;
}