* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Inter", sans-serif;
}
.container {
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(90deg, rgba(50,65,60,1) 0%, rgba(48,93,83,1) 100%);
    padding: 15px;
}
.to-do {
    width: 100%;
    max-width: 540px;
    margin: 100px auto 0;
    background-color: white;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    padding: 15px 20px 100px;
    transition: background-color 0.5s;
    -webkit-transition: background-color 0.5s;
    -moz-transition: background-color 0.5s;
    -ms-transition: background-color 0.5s;
    -o-transition: background-color 0.5s;
}
.to-do .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px;
}
.to-do .heading h2 {
    display: flex;
    align-items: center;
}
.to-do .heading h2 img {
    margin-left: 5px;
}
.to-do .btn {
    display: flex;
    align-items: center;
}
.change-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-image: linear-gradient(to right, #ff416c, #ff4b2b);
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    cursor: pointer;
}
.change-color:hover,
.change-color .colors li:hover {
    transform: scale(0.96);
    -webkit-transform: scale(0.96);
    -moz-transform: scale(0.96);
    -ms-transform: scale(0.96);
    -o-transform: scale(0.96);
}
.change-color:hover .colors {
    display: flex;
}
.change-color .colors {
    list-style: none;
    background: white;
    width: fit-content;
    height: 30px;
    position: absolute;
    top: 30px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    box-shadow: 4px -2px 15px #a19a9a;
    display: none;
    transition: 0.5s ease-in-out;
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -ms-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
}
.change-color .colors::after {
    right: 2px;
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-color: white;
    top: -14px;
}
.change-color .colors li {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    -webkit-transition: transform 0.5s ease-in-out;
    -moz-transition: transform 0.5s ease-in-out;
    -ms-transition: transform 0.5s ease-in-out;
    -o-transition: transform 0.5s ease-in-out;
}
.change-color .colors li:first-of-type {
    background-image: linear-gradient(to right, #a8ff78, #78ffd6);
}
.change-color .colors li:nth-child(2){
    background-image: linear-gradient(to right, #59c173, #a17fe0, #5d26c1);
}
.change-color .colors li:nth-child(3) {
    background-image: linear-gradient(to right, #fdc830, #f37335);
}
.change-color .colors li:nth-child(4) {
    background-image: linear-gradient(to right, #2980b9, #2c3e50);
}
.change-color .colors li:nth-child(5) {
    background-image: linear-gradient(to right, #6441a5, #2a0845);
}
.change-color .colors li:nth-child(6) {
    background-image: linear-gradient(to right, #ff416c, #ff4b2b);
}
.change-color .colors .active {
    border: 2px solid #a19a9a;
}
img {
    width: 25px;
}
.heading .theme {
    background-color: #a4d7fb;
    border-radius: 30px;
    padding: 8px 20px;
    position: relative;
}
.heading .theme i:first-of-type {
    border: 1px solid #ffb123;
    position: absolute;
    color: #ffb123;
    font-size: 16px;
    background-color: white;
    border-radius: 50%;
    padding: 3px;
    left: -1px;
    top: -4px;
    cursor: pointer;
    transition: 0.5s;
}
.heading .theme i:last-of-type {
    border: 1px solid black;
    position: absolute;
    color: white;
    font-size: 16px;
    background-color: black;
    border-radius: 50%;
    padding: 3px;
    right: -1px;
    top: -4px;
    cursor: pointer;
    display: none;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}
.dark-theme {
    background-color: #181818;
    color: white;
}
.to-do .add-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 25px;
    background-color: #edeef0;
    padding-left: 20px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}
.to-do .add-task input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
    font-weight: 400;
}

.to-do .add-task button {
    padding: 16px 20px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    border: none;
    outline: none;
    color: white;
    background-image: linear-gradient(to right, #ff416c, #ff4b2b);
    cursor: pointer;
    transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    -ms-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
}
@media (max-width: 391px) {
    .to-do .add-task button {
        padding: 10px 7px;
    }
}
@media (max-width: 359px) {
    .to-do .add-task button {
        padding: 2px 10px;
    }
}
.to-do #tasks-container {
    list-style: none;
    padding: 0 10px;
}
.to-do #tasks-container li {
    position: relative;
    padding: 10px 30px;
    font-size: 17px;
    cursor: pointer;
}
.to-do #tasks-container li i {
    color: #ff416c;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;

}
.to-do #tasks-container li button {
    position: absolute;
    right: 0;
    padding: 2px 7px;
    border-radius: 30px;
    border: none;
    outline: none;
    color: white;
    background-image: linear-gradient(to right, #ff416c, #ff4b2b);
    cursor: pointer;
    transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    -ms-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
}
button:hover {
    transform: scale(0.96);
    -webkit-transform: scale(0.96);
    -moz-transform: scale(0.96);
    -ms-transform: scale(0.96);
    -o-transform: scale(0.96);
}