-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
119 lines (109 loc) · 1.92 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
:root{
--sedans-card: hsl(31, 77%, 52%);
--suvs-card: hsl(184, 100%, 22%);
--luxury-card: hsl(179, 100%, 13%);
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body,
button{
font-family:"Lexend Deca",sans-serif;
}
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
h3{
font-family:"Big Shoulders Display",sans-serif ;
text-transform: uppercase;
font-size: 30px;
}
p{
font-size: 15px;
line-height: 1.6;
}
.btn{
background-color:#fff;
border: 2px solid #fff;
border-radius: 30px;
padding: 10px 20px;
cursor: pointer;
margin-top:30px;
transition: all 0.4s ease-in-out;
}
.sedans-card{
background-color: var(--sedans-card);
border-radius: 10px 10px 0 0;
color: #fff;
}
.sedans-card .btn{
color:var(--sedans-card);
}
.suvs-card{
background-color: var(--suvs-card);
color: #fff;
}
.suvs-card .btn{
color:var(--suvs-card);
}
.luxury-card{
background-color: var(--luxury-card);
border-radius:0 0 10px 10px ;
color: #fff;
}
.luxury-card .btn{
color: var(--luxury-card);
}
.btn:hover{
background-color: transparent;
color: #fff;
}
.card-container{
padding: 20px;
}
.card{
padding:30px;
}
.car img{
margin-bottom: 25px;
}
.card h3{
margin-bottom: 20px;
}
.car p{
margin-bottom: 30px;
}
@media (min-width:992px) {
.card-container{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
max-width: 900px;
margin: auto;
}
.sedans-card{
border-radius: 10px 0 0 10px;
}
.luxury-card{
border-radius: 0 10px 10px 0;
}
.card{
padding: 45px;
}
.car p{
margin-bottom: 80px;
}
}
@media (min-width:375px)
{
.card-container{
min-width: 300px;
}
}