Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
joysa21 authored Oct 29, 2024
1 parent 185add3 commit 93a6751
Showing 1 changed file with 117 additions and 0 deletions.
117 changes: 117 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,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);
}

0 comments on commit 93a6751

Please sign in to comment.