-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
72 lines (60 loc) · 1.1 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
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');
body {
background-color: #EEF9BF;
}
.top {
display: flex;
justify-content: center;
align-items: center;
}
h1 {
font-family: 'Roboto', sans-serif;
font-weight: 700;
color: #75b79e;
font-size: 56px;
text-align: center;
margin: 40px auto;
}
.cards-container{
display: flex;
width: 900px;
justify-content: center;
margin: 0 auto;
flex-wrap: wrap;
}
.card{
width: 117px;
height: 146px;
background-color: #A7E9AF;
border: 1px solid #99CEA8;
margin: 17px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
transition: all .5s;
}
.card-turn {
transform: rotateY(180deg);
}
.back-img {
width: 100px;
}
.front-img {
width: 80px;
position: absolute;
}
.hidden {
display: none;
z-index: -1;
}
@media(max-width: 414px){
.top {
width: 90%;
}
.cards-container{
width: 90%;
flex-direction: column;
align-items: center;
}
}