-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
126 lines (107 loc) · 1.76 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
120
121
122
123
124
125
126
* {
box-sizing: border-box;
}
body {
background-color: #eef9bf;
font-family: 'Roboto';
}
header {
display: flex;
justify-content: center;
margin: 40px auto;
font-weight: 700;
font-size: 56px;
color: #75b79e;
}
.container {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.card {
width: 117px;
height: 146px;
position: relative;
margin-right: 34px;
margin-bottom: 34px;
}
.pointer {
pointer-events: none;
}
.timer {
width: 40px;
height: 20px;
background-color: rgba(255, 255, 255, 0.5);
position: absolute;
top: 10px;
right: 10px;
display: flex;
justify-content: center;
align-items: center;
}
.restart {
width: 60px;
height: 20px;
background-color: rgba(255, 255, 255, 0.5);
position: absolute;
top: 10px;
left: 10px;
display: flex;
justify-content: center;
align-items: center;
}
.face {
width: 100%;
height: 100%;
background-color: #a7e9af;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
backface-visibility: hidden;
transition: all 0.5s;
transform-style: preserve-3d;
}
.back-face {
transform: rotateY(180deg);
}
.card-selected .back-face {
transform: rotateY(0deg);
}
.card-selected .front-face {
transform: rotateY(-180deg);
}
.girarFront {
transform: rotateY(-180deg);
}
.girarBack {
transform: rotateY(0deg);
}
.imgFront {
width: 100px;
height: 100px;
}
.imgBack {
width: 100px;
height: 100px;
}
.displaynone {
display: none;
}
@media (max-width: 600px) {
header {
font-size: 36px;
text-align: center;
margin: 40px 20px;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.carta {
margin-right: 0px;
}
}