:root{
    --background: #101114;
    --primary-color: #1C1D20;
    --secondary-color: #4A4D57;
    --accent-color: #ffffff;
    --text-color: #F9F9F9;
}
*{
    margin: 0;
    padding: 0;
}

html{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16pt;
  color: var(--text-color);
}
body{
    height: calc(100vh - 20px);
    padding: 10px;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
}

body > button{
    background-color: var(--accent-color);
    border: 1px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    padding: 10px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    position: fixed;
    z-index: 1;
    top: 25px;
    right: 25px;
}
body > button:hover{
    background-color: #101114;
    border: 1px solid var(--accent-color);
}
body > button:hover svg{
    fill: var(--accent-color);
}

body::-webkit-scrollbar {
    display: none;
}

.restore-list{
    background: #101114;
    color: var(--accent-color);
    padding: 30px 40px 50px;
    height: calc(100vh - 90px);
    width: calc(100vw - 100px);
    position: absolute;
    display: none;
}

.restore-list h2{
    text-align: center;
    margin: 15px 0;
}

.show{
    display: block;  
}

h1{
    margin-top: 100px;
    margin-bottom: 20px;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-color);
}
.wrapper{
    width: 700px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#todo-input{
    box-sizing: border-box;
    padding: 12px 20px;
    width: 100%;
    background: none;
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font: inherit;
    color: var(--text-color);
    caret-color: var(--accent-color);
}
#todo-input:focus{
    outline: none;
}
form{
    position: relative;
}
#add-button{
    position: absolute;
    top: 0;
    right: 0;

    background-color: var(--accent-color);
    height: 100%;
    padding: 0 30px;
    border: none;
    border: 2px solid #4a4d57;
    border-radius: 0 50px 50px 0;
    font: inherit;
    font-weight: 600;
    color: var(--background);
    cursor: pointer;
}

#add-button:hover{
    background-color: black;
    color: var(--accent-color);
}


.todo{
    margin-bottom: 10px;
    background-color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}
.todo .todo-text{
    padding: 15px;
    padding-right: 0;
    flex-grow: 1;
    transition: 200ms ease;
    color: var(--text-color);
}
.delete-button,.restore-button{
    padding: 3px;
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.delete-button svg{
    transition: 200ms ease;
}
.delete-button:hover svg{
    fill: #ff0033;
}


.restore-button{
    margin-left: 20px;
}
.restore-button svg{
    transition: 200ms ease;
    scale:1.2;
    fill: var(--accent-color);
}

.custom-checkbox{
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    min-height: 20px;
    min-width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: 200ms ease;
    cursor: pointer;
}
input[type="checkbox"]:checked ~ .custom-checkbox{
    background-color: var(--accent-color);
}
input[type="checkbox"]:checked ~ .custom-checkbox svg{
    fill: var(--primary-color);
}
input[type="checkbox"]:checked ~ .todo-text{
    text-decoration: line-through;
    color: var(--secondary-color);
}
input[type="checkbox"]{
    display: none;
}

footer{
    color: #515151b5;
    margin: 50px 0;
}

@media(max-width: 767px){
    html{
        font-size: 12pt;
    }
    #add-button{
        border-radius: 50px;
        position: unset;
        width: 100%;
        margin-top: 10px;
        padding: 15px;
        height: auto;
    }
    h1{
        margin-top: 50px;
        font-size: 10vw;
    }
    .restore-list{
        padding: 30px 10px 50px;
        width: calc(100vw - 20px);
    }
    body > button{
        top:10px;
        right: 10px;
    }
    #todo-list{
        height: calc(100vh - 315px);
        overflow-y: scroll;
    }
    #todo-list::-webkit-scrollbar {
        display: none;
    }
    
    footer{
        position: absolute;
        bottom: 5px;
        z-index: -1;
        color: #515151b5;
        margin: 10px 0;
    }

}


