-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
143 lines (129 loc) Β· 2.18 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Arial", sans-serif;
background: linear-gradient(
135deg,
#f4fb8f,
#ff6b6b
);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.coin-container {
background-color: rgba(
255,
255,
255,
0.9
);
border-radius: 20px;
box-shadow: 0 10px 20px
rgba(0, 0, 0, 0.3);
padding: 2rem;
text-align: center;
animation: fadeIn 1s ease;
width: 80%;
max-width: 500px;
perspective: 1000px;
}
h1 {
color: black;
font-size: 2.5rem;
margin: 0 0 1rem;
text-shadow: 2px 2px 4px
rgba(0, 0, 0, 0.2);
}
.coin {
width: 150px;
height: 150px;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 8px 20px
rgba(0, 0, 0, 0.2);
transition: transform 0.5s
ease-in-out;
margin: 0 auto;
backface-visibility: hidden;
}
button {
background-color: #4e6bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 10px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s
ease-in-out,
transform 0.2s ease-in-out;
width: 100%;
margin-top: 20px;
}
button:hover {
background-image: linear-gradient(
45deg,
#4e6bff,
#ff6b6b
);
transform: scale(1.05);
}
.result {
margin-top: 20px;
font-size: 24px;
color: #333;
transition: opacity 0.5s ease-in-out;
opacity: 0;
text-transform: uppercase;
font-weight: bold;
text-shadow: 1px 1px 2px
rgba(0, 0, 0, 0.4);
letter-spacing: 2px;
}
.coin:hover {
transform: scale(1.1);
transition: transform 0.3s
ease-in-out;
}
@keyframes spin {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(360deg);
}
}
.coin.flip {
animation: spin 1s
cubic-bezier(0.4, 2.5, 0.6, 0.5);
}
.coin img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transform: rotateY(0deg);
}
.coin-container {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px
rgba(0, 0, 0, 0.2);
transition: transform 0.5s
ease-in-out;
}
.coin-container:hover {
transform: scale(1.02);
}
h2 {
color: #333;
font-size: 24px;
margin: 10px 0;
}