* {
    box-sizing: border-box;
}

body {
    background-color: rgb(65, 99, 129);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 2em;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}


h1 {
    position: absolute;
    left: 7%;
    top: 50%;
    transform-origin: left;
    transform: rotate(270deg) translateX(-40%);
    color: rgba(255, 255, 255, 0.788);
    letter-spacing: 2px;
    font-size: 3em;
}

form {
    position: absolute;
    top: 50px;
    left: 23vw;
    width: 720px;
    border-radius: 10px 20px 10px 10px;
    border: 4px solid rgb(139, 188, 245);
}

.to-do-input {
    border: none;
    border-radius: 6px 15px 0 0;
    color: black;
    font-size: 1.4em;
    font-family: inherit;
    padding: 0.5em 1em;
    display: block;
    width: 100%;
}

.to-do-input::placeholder {
    color: grey;
}

.todo-list {
    background-color: rgb(196, 251, 255);
    padding: 0;
    margin: 0;
    width:100%;
    border-radius: 0 0 6px 6px;
    display: flex;
    flex-wrap: wrap;
    
}

.todo-list li {
    list-style-type: none;
    padding: 0.6em;
    border-top: 1px dashed grey;
    min-height: 2.5em;
    font-size: 1.5rem;
    display: block;
    width: 50%;
    position: relative;
}

.todo-list li:nth-child(even) {
    border-bottom: 1px dashed grey;
    border-top: none;
}

.todo-list li:last-child {
    border-bottom: none;
}

.todo-list li:nth-child(2) {
    border-top: 1px dashed grey;
    
    
}

.todo-list li:nth-child(odd) {
    border-right: 1px dashed grey;
    
}

@media (max-width: 800px) {
    form {
        left: 20vw;
        max-width: 400px;
        margin: 0 auto;
    }
    .todo-list {
        display: flex;
        flex-direction: column;
    }
    .todo-list li{
        width: 100%;
    }
    .todo-list li:nth-child(even) {
        border-bottom: none;
    }
    
    .todo-list li:nth-child(odd) {
        border-right: none;
    }
    .todo-list li:nth-child(2) {
        border-top: 1px dashed grey;
        
    }

}
.todo-list li.finished {
    font-weight: 100;
    background-color: rgb(15, 255, 255);
    
}

.todo-list li .todo.finished {
    text-decoration: line-through;
}
/* .todo-list li.finished::after {
    margin-left: 1em;
    content: "\2714";
    color: rgb(0, 151, 197);
} */

.todo-list .todo {
    min-width: 100px;
    max-width: 400px;
    margin-left: 1em;
    top: 10px;
}

.todo-list .erase {
    position: absolute;
    left: 10px;
    top: 20px;
    cursor: pointer;
    transform: rotate(180deg);
    user-select: none;
}

.todo-list .check {
    position: absolute;
    right: 10px;
    top: 20px;
    cursor: pointer;
    user-select: none;
}

.todo-list .erase:hover {
    font-variation-settings:
    'FILL' 100,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
    color: rgb(255, 68, 68);
}

.todo-list .erase:active {
    transform: translateX(10px) rotate(180deg);
    transition: 0.2s linear;
}

.todo-list .check:active {
    transform: scale(1.2);
}

.todo-list .check:hover, .todo-list li.finished .check {
    font-variation-settings:
    'FILL' 100,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48;
    color: rgb(0, 93, 136);
}

.toasts {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 10px;
    top: 10px;
    align-items: flex-start;
}

.toast {
    padding: 0.43em 1em;
    margin: 3px;
    border-radius: 4px 4px 4px 10px;
    font-size: 0.8em;
}