
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

html{
    font-size: 62.5%;
    font-family: "Poppins", sans-serif;
}
:root{
    --background:#037baa;
    --secondaryBackgrond:#171c48;
    --text:#fff;
    --purple:#828dff;
    --blue:  #272e70;
}
body {
    background: linear-gradient(to  right , #4ab8f8, #a577a7);
    max-width:  100%;
    min-height: 70vh;
    color: var(--text);
    overflow-x: hidden;
}
.wrap-container {
    width: 100%;
    width: 500px;
    background-color: white;
    box-shadow: 2px 10px 25px rgba(0, 0, 0, 0.5);
    margin: 100px auto 20px;
    padding: 30px 30px 70px;
    border-radius: 10px;
}
.container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 500px;
}
.todo-container {
    padding: 20px 20px 30px 20px;
    border-radius: 10px;
    border: 2px solid var(--background);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}
.details {
    width: 70%;
}
.details h1 {
    font-size: 3rem;
    margin-bottom: 2px;
    color: var(--blue);
}
.details p {
    font-size: 1.7rem;
    color: var(--blue);
}
#progress-bar {
    width: 100%;
    height: 10px;
    background: var(--background); 
    border-radius: 5px;
    margin-top: 20px;
}
#progress {
    width: 0;
    height: 10px;
    background-color:var(--blue);
    border-radius: 5px;
    transition: all 0.3s ease;
}
#number {
    width: 50px;
    height: 50px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

form {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: #272e70;
    border-radius: 15px;
}

input {
    padding: 16px;
    flex: 1;
    background-color: #272e70;
    border: 1px solid var(--background);
    border-radius: 10px;
    outline: none;
    border: none;
    color: #fff;
    border-radius: 15px;
}
::placeholder {
    font-size: 1.5rem;
}
button {
    padding: 16px 20px;
    background-color: #037baa;
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: bold;
}
ul {
    margin-top: 20px;  
}
ul li {
    list-style: none;
    font-size: 1.5rem;
    background-color: white;
    box-shadow: 8px 8px 25px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    padding: 10px 0 10px 45px;
    border-radius: 10px;
    user-select: none;
    cursor: pointer;
    position: relative;
    display: block;
    color: #272e70;  
    font-weight: bold;
}
ul li::before {
    content: "";
    position: absolute;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #4ab8f8;
    top: 14px;
    left: 17px;
    z-index: 1;
}
span{
   position: absolute;
   top: 10px;
   right: 20px;
   color: var(--secondaryBackgrond);
}
span:hover{
    color:red;
}

ul li.checked {
    color:red;
    text-decoration: line-through;
}

ul li.checked::before {
    background-image: url(images/todo-checked.png);
    background-size: cover;
    background-position: center;

}
@media (max-width: 834px) {
    .wrap-container {
        width: 100%;
        width: 600px;
    }
    .container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        max-width: 600px;
    }
}

@media (max-width: 550px) {
    .wrap-container {
        width: 100%;
        width: 360px;
    }
    
}
@media (max-width: 320px) {
    .wrap-container {
        width: 100%;
        margin: 30px auto 20px;
        width: 330px;
    } 
}
