@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@100..800&display=swap');

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

.wrapper{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    background: linear-gradient(45deg, #a4e9f9, #c5aef2, #8578ea);
    background-size: 400%;
    animation: live_background 7s ease infinite;
}

.container{
    width: 30%;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 20px;
    padding: 2% 3%;
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
}

.container h1{
    font-size: 2rem;
    text-align: center;
}

.list{
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.todo{
    text-align: center;
    padding: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.todo_value{
    width: 98%;
    height: 2em;
    border: 2px solid white;
    border-radius: 20px;
    padding: 1rem;
    background-color: white;
    font-family: "Playpen Sans", cursive;
    outline: none;
    font-size: 1em;
}

.todo_checkbox{
    transform: scale(1.7);
    border: 1px solid white;
    border-radius: 20px;
    outline: none;
    
}

.todo:has(.todo_checkbox:checked) {
	color: rgb(10, 10, 10);
	text-decoration: line-through;
	order: 1;
}


@keyframes live_background{
    0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
}


@media screen and (max-width:1000px){
    .container{
        width: 50%;
        padding: 2% 7%;
    }
    
    .todo_value{
        padding:  1rem;
    }
}

@media screen and (max-width:800px){
    .container{
        width: 70%;
    }
}

@media screen and (max-width: 550px){

    .container{
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 6% 16%;
    }

    .todo_checkbox{
        transform: scale(1.5);
    }
}