From 93a67513eafd830e226eece523989a8fb6dcbfad Mon Sep 17 00:00:00 2001 From: joysa21 <138362034+joysa21@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:13:09 +0530 Subject: [PATCH] Add files via upload --- styles.css | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 styles.css diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..1dc828f --- /dev/null +++ b/styles.css @@ -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); + } + \ No newline at end of file