* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #270353;
    position: absolute;
    height: 100vh;
    width: 100vw;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: top;
    transition: .3s ease;
}

body.light{
    background: white;
}

.app {
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: top;
    align-items: center;
    flex-direction: column;
    padding-block: 20px;
    /* gap: 10px; */

}

.app .theme-mode-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 30px;
    border-radius: 20px;
    background: #40028b;
    box-shadow: 0 0 4px 0px rgb(37, 37, 37),
        inset 0 0 9px 1px #270255;
    ;
    padding-block: 3px;
    padding-inline: 6px;
    cursor: pointer;
    transition: all .2s ease;
    border: 2px solid white;
}

.app .theme-mode-btn.light{
    background: white;
    border-color: #40028b;
    box-shadow: none;
}

.theme-mode-btn:hover {
    box-shadow: 0 0 9px 0px rgb(37, 37, 37),
        inset 0 0 9px 1px #270255;
    ;
}



.theme-mode-btn .theme-mode-ball {
    position: relative;
    top: 0;
    left: -2px;
    width: 60%;
    height: 100%;
    background: white;
    border-radius: 20px;
    transition: all .3s cubic-bezier(0.25, 0.1, 0, 1.4);
}

.theme-mode-btn .theme-mode-ball.light {
    position: relative;
    top: 0;
    left: 50%;
    width: 60%;
    height: 100%;
    background: #40028b;
    border-radius: 20px;
}

.settings-container{
    position: absolute;
    top: 10px;
    left: 10px;
    width: fit-content;
    height: fit-content;
    min-width: fit-content;
    min-height: fit-content;
    /* display: flex; */
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
}

.settings-container button{
    width: 100%;
    border-radius: 8px;
    padding-inline: 10px;
    padding-block: 10px;
    background: #5103b0;
    color: white;
}


.settings-container .settings-dropdown{
    background: #5103b0;
    color: white;
}

.settings-dropdown button{
    border-radius: 0;
}

.app .app-header{
    height: fit-content;
    min-height: 60px;
}

.app .app-header h1 {
    font-size: 25px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
    transition: all .3s ease;
}

.app .app-header h1.light{
    color: #270255;
}

.app form.input-form {
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

form.input-form input,
form button {
    height: 50px;
    padding-inline: 8px;
    padding-block: 4px;
    border: none;
    font-size: 18px;
    outline: none;
}

form.input-form input {
    width: 55%;
    min-width: 45%;
    background: #2b035b;
    color: white;
    font-size: 18px;
    border: 1px solid grey;
    transition: all .23s ease;
    text-indent: 15px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

form.input-form input:focus {
    border-color: white;
}

form.input-form button {
    font-weight: bolder;
    font-size: 14px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    padding-inline: 15px;
}

form.input-form button:disabled{
    background: #5103b0;
    color: lightgrey;
    cursor:default;
}

.app .todos-container {
    width: 100%;
    height: 80%;
    min-height: 80%;
    padding-top: 10px;
}

.todos-container ul {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: top;
    align-items: center;
    overflow-y: auto;
}

.todos-container ul li {
    width: 65%;
    height: fit-content;
    word-wrap: break-word;
    min-height: 60px;
    line-height: 20px;
    color: #d2d0d0;
    font-size: 18px;
    padding-block: 12px;
    padding-inline: 15px;
    background: #360275;
    border-radius: 4px;
    display: flex;
    text-transform:capitalize;	
    opacity: 0;
    justify-content: left;
    align-items: center;
    transform: translateY(0px);
    animation: todo-anim 0.3s cubic-bezier(0.23, 0.1, 0.1, 1.63) 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
    cursor: pointer;
    transition: all .2s ease;

}

.todos-container ul li:hover {
    box-shadow: 0 0 11px 0px #191919;
    color: lightgrey;
}











/* all the animation code goes here */

@keyframes todo-anim {
    0% {
        transform: translateY(200px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}
















/* media queries for mobile */

@media screen and (max-width:850px) {
    .app form input {
        width: 70%;
    }

    .todos-container ul li {
        width: 90%;
    }
}