-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (91 loc) · 1.83 KB
/
style.css
File metadata and controls
106 lines (91 loc) · 1.83 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Rubik', sans-serif;
}
body{
height: 100%;
background: linear-gradient(to right, #575ce5 50%, #f9fbfc 50%) fixed;
}
.container{
background: #fff;
width: 400px;
padding: 50px;
position: absolute;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
box-shadow: 15px 30px 35px rgba(0, 0, 0, 0.1);
border-radius: 10px;
-webkit-perspective: 300px;
perspective: 300px;
}
.stats{
text-align: right;
color: #101020;
font-weight: 500;
line-height: 25px;
}
.coin{
height: 150px;
width: 150px;
position: relative;
margin: 50px auto;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.tails{
transform: rotateX(180deg);
}
.buttons{
display: flex;
justify-content: space-between;
}
.coin img{
width: 145px;
}
.heads, .tails{
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
button{
width: 120px;
padding: 10px 0;
border: 2.5px solid #424ae0;
border-radius: 5px;
cursor: pointer;
}
#flip-button{
background: #424ae0;
color: #fff;
}
#flip-button:disabled{
background-color: #e1e0ee;
color: #101020;
border-color: #e1e0ee;
}
#reset-button{
background: #fff;
color: #424ae0;
}
@keyframes spin-tails{
0%{
transform: rotateX(0);
}
100%{
transform: rotateX(1980deg);
}
}
@keyframes spin-heads{
0%{
transform: rotateX(0);
}
100%{
transform: rotateX(2160deg);
}
}