forked from HeleneWestrin/project-buzzfeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
77 lines (73 loc) · 1.27 KB
/
style.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
body {
background-color: #ffc1cc;
font-family: Arial, sans-serif;
margin: 0;
}
.merriweather-bold-italic {
font-family: "Merriweather", serif;
font-weight: 700;
font-style: italic;
}
.top-section {
padding: 80px;
background-color: #d9445e;
margin-bottom: 40px;
}
.top-section h1 {
text-align: center;
font-size: 50px;
max-width: 1200px;
margin: 0 auto;
color: white;
}
.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
justify-content: space-between;
}
.card {
width: calc(33% - 20px);
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
margin-bottom: 40px;
}
.card img {
width: 100%;
}
.card .card-content {
padding: 20px;
}
.card .card-content h2 {
margin-top: 0;
}
.card a:hover {
background-color: darkgrey;
}
.card:hover {
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.5);
transform: translateY(-3px);
transition: all 0.3s ease-in-out;
}
.card a {
display: inline-block;
background-color: black;
color: white;
text-align: center;
border-radius: 5px;
text-decoration: none;
margin: 10px 0 0;
padding: 10px;
}
footer {
padding-bottom: 50px;
}
footer p {
color: #d9445e;
text-align: center;
}