* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gilroy', sans-serif;
}

#content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;  /* पूरे व्यू को कवर करने के लिए */
    background-image: linear-gradient(135deg, #742245 10%, #5b2769 100%);
}

.to-do {
    width: 400px;
    max-width: 650px;
    background-color: #a3bef3;
    background-image: linear-gradient(66deg, #a3bef3 0%, #910982 100%);
    border-radius: 10px;
    padding: 15px;
    max-height: 500px; /* बॉक्स की अधिकतम ऊँचाई सेट करें */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.to-do h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(130, 40, 155, 0.5);
    font-size: 25px;
    font-weight: bold;
    padding-bottom: 10px;
    color: rgb(230, 24, 24);
}

 
@media (max-width:768px){
    .to-do {
        width: fit-content;
        display: flex;
    flex-direction: column; /* Makes content stack vertically */
    text-align: center;
  }
  
    .to-do img{
         overflow-x: hidden;
         transform: translate(40%);
         width: 42px;
  height: auto;
    }
    .to-do h2{
         color: white;
         display: flex;
         flex-direction: row;
         align-self: flex-start;
    }

    .addbox{
        display: flex;
        gap: 20px;
        height: 100px;
        align-self: flex-start;
        flex-direction: column;
    }

   .addbox #add{
    width: 100%;
   }

}

.addbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.addbox input {
    outline: none;
    border: none;
    background-color: #dddbdb;
    border-radius: 20px;
    height: 40px;
    flex: 1;
    padding-left: 15px;
    font-size: 16px;
}

#add {
    cursor: pointer;
    outline: none;
    border: none;
    background-color: #c40404;
    border-radius: 20px;
    height: 40px;
    width: 80px;
    margin-left: 10px;
    font-weight: bolder;
    color: #fff;
    transition: background-color 0.3s ease;
}

#add:active {
    background-color: #a12424;
}

/* Scrollable List */
ul {
    flex-grow: 1;
    max-height: 300px; /* लिस्ट की ऊँचाई निर्धारित करें */
    overflow-y: auto; /* Scroll को enable करें */
    padding: 0;
    margin: 0;
}

ul::-webkit-scrollbar {
    width: 5px;
}

ul::-webkit-scrollbar-thumb {
    background: rgba(158, 0, 0, 0.5);
    border-radius: 10px;
}

ul li {
    list-style: none;
    font-size: 15px;
    padding: 12px 15px 12px 40px;
    user-select: none;
    cursor: pointer;
    position: relative;
    background: rgba(148, 91, 91, 0.1);
    margin: 5px 0;
    border-radius: 5px;
    color: #ff0202;
}

/* Checkbox-like effect */
ul li::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-image: url(images/unchecked.png);
    background-size: cover;
    background-position: center;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

ul li.checked {
    color: #125003;
    text-decoration: line-through;
}

ul li.checked::before {
    background-image: url(images/checked.png);
}

/* Delete button */
ul li span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

ul li span:hover {
    background-color: rgba(255, 255, 255, 0.856);
}
