Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
82 lines (69 loc) · 1.35 KB
/
Copy pathstyle.css
File metadata and controls
82 lines (69 loc) · 1.35 KB
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
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap');
body {
background: white;
font-family: 'Open Sans', sans-serif;;
margin: 50px;
user-select: none;
overflow: hidden;
}
#gameContainer {
width: 90vw;
height: 90vw;
max-width: 90vh;
max-height: 90vh;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
}
#itemsContainer {
display: grid;
grid-template-columns: 300px 300px;
gap: 20px;
justify-content: center;
width: fit-content;
height: fit-content;
transform-origin: top left;
}
.card {
position: relative;
width: 300px;
height: 300px;
perspective: 500px;
cursor: pointer;
}
.content {
position: absolute;
width: 100%;
height: 100%;
transition: transform 1s;
transform-style: preserve-3d;
}
.selected.card .content {
transform: rotateY( 180deg ) ;
transition: transform 0.5s;
}
.front,
.back {
position: absolute;
height: 100%;
width: 100%;
text-align: center;
font-size: 50px;
backface-visibility: hidden;
border-radius: 25px;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
display: flex;
justify-content: center;
align-items: center;
}
.front {
background-image: url(Pattern.svg);
background-color: lightsteelblue;
background-size: cover;
}
.back {
background: #03446A;
color: white;
transform: rotateY( 180deg );
}