-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclicker.css
More file actions
120 lines (105 loc) · 2.1 KB
/
clicker.css
File metadata and controls
120 lines (105 loc) · 2.1 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
107
108
109
110
111
112
113
114
115
116
117
118
119
body {
font-family: 'Times New Roman', serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #faf8ef;
}
#game-container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 40px;
padding: 20px;
width: 80%;
}
#assets-section, #upgrades-section {
text-align: center;
height: 650px;
width: 300px;
outline-width: 10px;
outline-style: double;
background-color: #add8e6;
overflow-y: scroll;
position: relative;
overflow: visible;
}
#center-section {
text-align: center;
height: 650px;
width: 500px;
padding: 50px;
outline-width: 10px;
outline-style: double;
background-color: beige;
}
.buy-asset, .buy-upgrade{
display: flex;
text-align: left;
justify-content: flex-start;
gap: 10px;
width: 300px;
padding: 15px;
font-size: 20px;
cursor: pointer;
background-color: #add8e6;
color: white;
outline-width: 2px;
transition: background-color 0.3s, transform 0.1s;
position: relative;
}
.buy-asset.unaffordable, .buy-upgrade.unaffordable {
background-color: #4d7ea8;
}
.tooltip {
visibility: hidden;
width: 160px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 5px;
padding: 5px;
position: fixed;
z-index: 100;
bottom: 3%;
left: 130%;
margin-left: -80px;
opacity: 0;
transition: opacity 0.3s;
}
.buy-asset:hover .tooltip {
visibility: visible;
opacity: 1;
}
.buy-asset:hover, .buy-upgrade:hover {
background-color: #0056b3;
transform: scale(1.05);
}
.asset-image {
width: 40px;
height: 40px;
display: block;
}
h1 {
font-size: 36px;
margin-bottom: 20px;
}
#egg-counter, #passive-egg-rate, #click-egg-rate {
font-size: 24px;
margin: 10px 0;
}
#egg-button {
border: none;
background: none;
cursor: pointer;
}
#egg-image {
width: 300px;
height: 350px;
transition: transform 0.2s;
}
#egg-button:active #egg-image {
transform: scale(0.9);
}