:root{
    font-size: 16px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    height: 100vh;
    width: 100%;
}
body{
    width: 60%;
    /* min-height: 100vh; */
    margin: auto;
    position: relative;
    top: 8%;
    /* transform: translateY(25%); */
    background-color: rgba(224, 188, 201, 0.7) ; /* rgb(41,41,41)*/
    color: rgb(244, 248, 252);
    transition: background-color 0.7s ease-in-out;
    /* transition: height 1s, min-height 1s, max-height 1s; */
}

header{
    margin: 2rem 0rem;
}

h1{
    text-align: center;
    color: #c45d9f;
    /* margin: 2rem 0rem;   */
}
h2{
    color: #c45d9f;
    text-align: center;
}

#Root{
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    & #todo_ui, #todo_container{
        width: 85%;
        position: relative;
    };
    & #todo_ui{
        align-items: center;
        display: flex;
        margin-bottom: 1rem;
        & #todo_input{
            border: 1px solid;
            flex-grow: 1;
            margin-right: 4px;
            border-radius: 6px;
            padding: 3px;
            border-color: rgb(226, 224, 224)
        };
        & #todo_input:focus{
            /* You need to define outline style and color for firefox */
            outline-style: solid;
            outline-color: rgb(130, 186, 235) !important;
        }
        & #button_theme_swapper{
            margin-left: 3px;
        }
    }
}
.todo{
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    transition: transform 1s ease-in;
    animation: appear 1.2s;
    margin-bottom: 8px;
    border-radius: 5px;
    padding: 5px 10px;
    transition: all .5s ease-in-out;
    &:hover{
        transform: scale(105%);
    }
}

.light{
    color: rgba(61, 61, 61, 0.863);
    border: 1px dashed rgba(114, 113, 113, 0.801);
    &:hover{
        color: black;
        border-color: black;
    }
}

.dark{
    color: rgba(240, 248, 255, 0.863);
    border: 1px dashed rgba(209, 209, 209, 0.801);
    &:hover{
        color: white;
        border-color: white;
    }
}

@keyframes appear {
    0%{
        display: none;
        transform:translateY(-50px);
        opacity: 0;
    }
    60%{
        opacity: 0;
    }
    100%{
        transform:translateY(0px);
        opacity: 100%;
        display: block;
    }
}

/* For the redo of the code , disappearence is switched with appear
before the delete. The delete trigger after the animation. */
@keyframes disappear {
    0%{
        opacity: 90%;
    }
    60%{
        transform:translateX(-50px);
    }
    100%{
        display: none;
        opacity: 0;
    }
}