-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
117 lines (105 loc) · 2.2 KB
/
styles.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
/* General layout */
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
background-color: #f4f8fb;
margin: 0;
padding: 20px;
text-align: center;
}
h1 {
font-size: 2rem;
color: #2e7d32;
margin-bottom: 5px;
}
p {
font-size: 1.1rem;
color: #555;
margin-bottom: 20px;
}
.container {
display: flex;
gap: 30px;
justify-content: center;
margin-top: 30px;
}
.result {
font-size: 1.2rem;
margin-top: 20px;
padding: 10px 20px;
border-radius: 8px;
font-weight: bold;
text-align: center;
background-color: #ffffff;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
/* Styling for waste bins */
.waste-bin {
position: relative;
width: 130px;
height: 180px;
background-size: cover;
background-position: center;
display: flex;
align-items: flex-end;
justify-content: center;
padding-bottom: 20px;
border-radius: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.2s ease-in-out;
}
.waste-bin:hover {
transform: scale(1.05);
cursor: pointer;
}
.bin-label {
position: absolute;
top: 5px;
width: 100%;
text-align: center;
font-weight: bold;
color: white;
background-color: rgba(0, 0, 0, 0.6);
padding: 5px 0;
font-size: 1rem;
border-radius: 5px;
}
.counter {
position: absolute;
bottom: 10px;
left: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 5px 10px;
border-radius: 12px;
font-size: 0.9rem;
}
/* Waste items styling */
.waste-items {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-top: 20px;
max-width: 800px;
justify-content: center;
}
.waste-item {
width: 60px;
height: 60px;
background-color: #ffa07a;
border: 2px solid #ff6347;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #fff;
box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
cursor: grab;
transition: transform 0.2s;
}
.waste-item:hover {
transform: scale(1.1);
}