:root{
    --background: #0B0F1E;
    --primary-color: #1E2740;
    --secondary-color: #9CA3AF;
    --accent-color: #bb2ebb;
    --text-color: #F1F1F1;
    --shadow-color: rgba(0,0,0,0.4);
}

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

html{
    font-family: 'Poppins', sans-serif;
    font-size: 16pt;
    color: var(--text-color);
}

body{
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0B0F1E, #1C2236);
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1{
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 3rem;
    font-weight: 800;
    text-transform: capitalize;
    text-align: center;
    color: var(--accent-color);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.wrapper{
    width: 700px;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form{
    position: relative;
}

#todo-input{
    padding: 15px 22px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    font: inherit;
    color: var(--text-color);
    caret-color: var(--accent-color);
    transition: all 0.3s ease;
}

#todo-input:focus{
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

#add-button{
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(45deg, #b7a5c7, #c632eb);
    height: 100%;
    padding: 0 30px;
    border: none;
    border-radius: 30px;
    font: inherit;
    font-weight: 700;
    color: #0B0F1E;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-button:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,184,0,0.5);
}


.todo{
    padding: 12px 18px;
    background: linear-gradient(120deg, #1E2740, #262F55);
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 15px var(--shadow-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.todo:hover{
    transform: translateX(12px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

.todo .todo-text{
    flex-grow: 1;
    transition: 0.3s ease;
    margin-left: 12px;
    vertical-align: middle;
}

.delete-button{
    padding: 5px;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.delete-button svg{
    transition: 0.3s ease;
    fill: #9c4575;
}

.delete-button:hover svg{
    fill: #da268f;
    transform: scale(1.2);
}


.custom-checkbox{
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    min-height: 22px;
    min-width: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

input[type="checkbox"]:checked ~ .custom-checkbox{
    background-color: var(--accent-color);
}

input[type="checkbox"]:checked ~ .custom-checkbox svg{
    fill: #0B0F1E;
}

input[type="checkbox"]:checked ~ .todo-text{
    text-decoration: line-through;
    color: var(--secondary-color);
}

input[type="checkbox"]{
    display: none;
}


@media(max-width: 500px){
    html{
        font-size: 12pt;
    }

    #add-button{
        position: unset;
        width: 100%;
        margin-top: 12px;
        padding: 15px;
        height: auto;
    }

    h1{
        margin-top: 40px;
        font-size: 14vw;
    }
}
