-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
110 lines (97 loc) · 1.59 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
body {
font-family: 'Courier New', Courier, monospace;
color: #444c5c;
}
.modal-overlay {
position: fixed;
right: 0;
left: 0;
top: 0;
bottom: 0;
background-color: gainsboro;
justify-content: center;
display: flex;
align-items: center;
opacity: .9;
visibility: visible;
}
.modal {
background-color: mintcream;
position: absolute;
height: 60vh;
width: 60vw;
left: auto;
right: auto;
bottom: auto;
top: auto;
align-content: stretch;
text-align: center;
box-shadow: 0px 0px 30px 3px rosybrown;
padding: 2%;
overflow: auto;
opacity: 1;
}
.modal-overlay--invisible {
visibility: hidden;
}
.modal--invisible {
display: none;
}
.game_field {
background-color: #e1b16a;
position: fixed;
right: 0;
left: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
text-align: center;
}
.card {
background-color: lemonchiffon;
font-size: xx-large;
text-align: center;
}
#desk {
align-self: center;
height: 80vh;
width: 80vh;
}
.scene {
height: 10%;
margin: 40px 0;
perspective: 600px;
}
.card {
position: relative;
width: 100%;
height: 100%;
cursor: pointer;
transform-style: preserve-3d;
transform-origin: center right;
transition: transform 1s;
}
.card.is-flipped {
transform: translateX(-100%) rotateY(-180deg);
}
.card__face {
position: absolute;
width: 100%;
height: 100%;
line-height: 260px;
text-align: center;
font-weight: bold;
font-size: 40px;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
}
.card__face--front {
background: #78a5a3;
}
.card__face--back {
background: #ce5a57;
transform: rotateY(180deg);
}