/* Make body full height and center its content */
#mainbody {
    background-color: rgb(195, 195, 39);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    padding: 1rem;
}

/* Container for input and button */
#inputitem {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Row of input and button */
#inputStream {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Wrap on small screens */
    gap: 10px;
    margin-bottom: 1rem;
}

/* Input styling */
#inputbutton {
    width: 60vw;
    max-width: 400px;
    height: 40px;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
}

/* Button styling */
#addlist {
    width: 30vw;
    max-width: 120px;
    padding: 0.5rem;
    border: none;
    font-size: 1rem;
}

/* List container */
#listone {
    display: flex;
    flex-direction: column;   /* One item per row */
    width: 60vw;
    max-width: 400px;
    padding: 1rem;
    border-radius: 5px;
    margin: 0 auto;
}

/* Container for each task row */
.list-wrapper {
    display: flex;
    align-items: start;
    justify-content: space-between;
    background-color: #fdfdfd;
    padding: 0.6rem 1rem;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Task text */
.listitems {
    flex: 1;
    list-style: none;
    font-size: 1rem;
    margin-right: 10px;
}

/* Buttons */
.deletebutton, .recyclebutton {
    border: none;
    background-color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.deletebutton:hover {
    color: red;
}
.recyclebutton:hover {
    color: green;
}

