-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
139 lines (124 loc) · 2.71 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
background: linear-gradient(135deg, #f4fb8f, #ff6b6b);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.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;
width: 80%;
max-width: 500px;
perspective: 1000px;
}
h1,
.result {
font-size: 2.5rem;
margin: 0 0 1rem;
background: linear-gradient(135deg, #f4fb8f, #ff6b6b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}
.coin {
width: 150px;
height: 150px;
border-radius: 50%;
background: linear-gradient(135deg, #f4fb8f, #ff6b6b);
box-shadow: 1px 5px 8px rgba(0, 0, 0, 0.5);
margin: 0 auto;
transition: transform 1s ease-in-out;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
color: white;
overflow: hidden;
}
.coin img {
max-width: 100%;
max-height: 100%;
}
button {
background-color: #4e6bff;
border: none;
padding: 10px 20px;
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);
}
.coin:hover {
transform: scale(1.1);
transition: 1s ease-in-out;
}
@keyframes spin {
0% {
transform: rotateY(0deg);
}
100% {
transform: rotateY(1800deg);
}
}
.coin.flip {
animation: spin 4s cubic-bezier(0.4, 2.5, 0.6, 0.5);
}
.modal {
display: none;
/* Hide the modal by default */
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
width: 80%;
}
.close-button {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close-button:hover {
color: black;
cursor: pointer;
}
.custom-button {
color: #fff;
border: none;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
width: 100%;
margin-top: 20px;
}
.custom-button:hover {
background-image: linear-gradient(45deg, #4e6bff, #ff6b6b);
transform: scale(1.05);
}