-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
116 lines (102 loc) · 2.04 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
html {
max-height: 100vh;
overflow: hidden;
}
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 20px;
background: #F6D193;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
/* justify-content: center; */
}
h1 {
margin-bottom: 10px;
color: #AE5B07;
font-family: "Pacifico", cursive;
font-size: 60px;
font-style: normal;
}
.bubble-wrap {
display: grid;
grid-template-columns: repeat(10, 1fr);
gap: 10px;
justify-content: center;
margin: 20px auto;
max-width: 300px;
}
.score {
font-family: "Sour Gummy", sans-serif;
font-weight: 500;
font-size: 20px;
}
.bubble {
width: 40px;
height: 40px;
background: radial-gradient(circle at top left, #f9f8d4, #e0e6a8);
border-radius: 50%;
box-shadow: inset 0px -4px 6px #ac5a0776, 0px 4px 8px #ac5a07a7;
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}
.bubble::after {
content: "";
position: absolute;
top: 10%;
left: 10%;
width: 70%;
height: 70%;
background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
border-radius: 50%;
opacity: 0.5;
pointer-events: none;
}
.bubble:hover {
transform: scale(1.1);
}
.bubble.popped {
background: radial-gradient(circle, #e0e0e0, #b0b0b0);
transform: scale(0.7);
opacity: 0;
box-shadow: none;
transition: transform 0.1s ease, opacity 0.4s ease-out;
}
.bubble.popped::after {
display: none;
}
.bgsound {
background-color: #AE5B07;
color: #F6D193;
font-size: 20px;
font-family: "Sour Gummy", sans-serif;
border: 0;
padding: 10px;
border-radius: 10px;
cursor: pointer;
}
.bgsound:hover {
background-color: #944d06;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
text-align: center;
padding: 20px;
}
a {
color: #AE5B07;
text-decoration: none;
}
@media (max-width: 500px) {
.bubble-wrap {
width: 100px !important;
}
}