-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
181 lines (155 loc) · 2.8 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
:root {
--pale-blue: hsl(225, 100%, 94%);
--bright-blue: hsl(245, 75%, 52%);
--very-pale-blue: hsl(225, 100%, 98%);
--desaturated-blue: hsl(224, 23%, 55%);
--dark-blue: hsl(223, 47%, 23%);
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Manrope", sans-serif;
background-color: var(--pale-blue);
display: flex;
align-items: center;
justify-content: center;
}
.bg_desktop {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.bg_mobile {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
display: none;
}
.card {
box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.25);
width: 25rem;
background-color: white;
border-radius: 1rem;
overflow: hidden;
margin: 1rem 0;
}
.card_hero {
width: 100%;
}
.card_heading {
color: var(--dark-blue);
font-weight: 700;
font-size: 1.5rem;
margin: 2rem 0 0rem 0;
text-align: center;
}
.card_info {
color: var(--desaturated-blue);
text-align: center;
padding: 0.5rem 2rem;
}
.card_pricing {
background-color: var(--very-pale-blue);
width: 80%;
margin: 1rem auto;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 1rem;
}
.pricing_text {
display: flex;
align-items: center;
}
.pricing_text img {
margin-right: 0.5rem;
}
.pricing_text div {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 100%;
}
.pricing_text h4 {
color: var(--dark-blue);
}
.card_link {
color: var(--bright-blue);
transition: all 0.3s ease 0s;
}
.pricing_text p {
color: var(--desaturated-blue);
}
.card_btn {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin: 2rem 0 1rem 0;
}
.btn_pay {
background-color: var(--bright-blue);
box-shadow: 0px 8px 15px rgba(0, 0, 255, 0.25);
transition: all 0.3s ease 0s;
cursor: pointer;
border: none;
color: white;
width: 80%;
padding: 0.8rem;
border-radius: 0.75rem;
font-size: 1rem;
font-weight: 500;
}
.btn_cancel {
background-color: transparent;
transition: all 0.3s ease 0s;
cursor: pointer;
border: none;
color: var(--desaturated-blue);
width: 80%;
padding: 0.8rem;
border-radius: 0.75rem;
font-size: 1rem;
font-weight: 700;
margin-top: 1rem;
}
.btn_pay:hover {
background-color: hsl(245, 100%, 68%);
transform: scale(1.05);
}
.btn_cancel:hover {
transform: scale(1.05);
color: var(--dark-blue);
}
.card_link:hover {
text-decoration: none;
transform: scale(1.05);
}
/* responsive styles for mobile width */
@media (max-width: 375px) {
.card {
width: 18rem;
}
.card_pricing,
.btn_pay,
.btn_cancel {
width: 90%;
}
.card_info {
padding: 1rem;
}
.bg_desktop {
display : none
}
.bg_mobile {
display : block
}
}