-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
152 lines (131 loc) · 2.14 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
@import "https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap";
:root {
--color-red: #cc0e0e;
--color-black: #000000;
}
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #282a36;
font-family: "Roboto", sans-serif;
color: white;
}
header {
padding: 32px;
border-bottom: 1px solid #333333;
background: rgba(0, 0, 0, 0.1);
}
.links {
text-align: center;
}
.links a {
color: white;
font-size: 18px;
line-height: 28px;
margin: 0 16px;
text-decoration: none;
}
.links a:hover {
color: var(--color-red);
transition: color 700ms;
}
#wrapper {
text-align: center;
padding: 32px;
}
#wrapper img {
border-radius: 50%;
border: 5px solid var(--color-red);
margin-bottom: 32px;
height: 250px;
}
#wrapper h1 {
font-size: 42px;
line-height: 52px;
}
#wrapper h2 {
font-size: 24px;
line-height: 34px;
font-weight: normal;
margin-top: 8px;
opacity: 0.8;
}
#wrapper p {
max-width: 500px;
margin: 32px auto;
font-size: 24px;
line-height: 34px;
}
#wrapper p a {
color: var(--color-red);
}
#links-footer a {
border-bottom: 1px solid var(--color-red);
}
/* === cards ===*/
.cards {
max-width: 800px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 20px;
}
.card {
background-color: var(--color-black);
}
.card_image-container img {
width: 100%;
}
.card_content,
.card_info {
padding: 24px;
}
.card_info {
display: grid;
grid-template-columns: 1fr 1fr;
}
.card_price {
background-color: var(--color-red);
filter: brightness(90%);
padding: 5px 20px;
border-radius: 20px;
text-align: center;
}
/* === MODAL == */
.modal-overlay {
background-color: rgba(9, 8, 10, 0.1);
width: 100%;
height: 100%;
position: fixed;
top: 0;
opacity: 0;
visibility: hidden;
}
.modal {
background: white;
width: 90%;
height: 90%;
margin: 5vh auto;
position: relative;
}
.modal .close-modal {
color: black;
position: absolute;
right: 8px;
top: 8px;
cursor: pointer;
}
/* === MODAL.ACTIVE == */
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
iframe {
width: 100%;
height: 90%;
position: absolute;
top: 5%;
}