
body {
    margin: 15px;
}

* {
    font-family: system-ui;
}

header {
    margin-bottom: 15px;
}

h1 {
    display: inline-block;
    margin: 0;
    font-size: 3em;
}

#tasks {
    height: calc(100vh - 160px);
    overflow: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

#tasks span {
    display: block;
    font-size: 1.5em;
    margin: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 45px);
}

#new {
    margin-top: 15px;
    width: calc(100% - 30px);
    font-size: 1.5em;
    background: #e3e3e3;
    border: none;
    padding: 5px 15px;
    border-radius: 10px;
}

#new:focus {
    outline: none;
}

#none {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 1.5em;
    width: 100%;
    text-align: center;
    opacity: .5;
}

#dark {
    display: none;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    transform: translate(-15px,-15px);
}

#view {
    position: fixed;
    z-index: 2;
    background: rgba(255,255,255,.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(1.5);
    opacity: 0;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    font-size: 1.4em;
    width: fit-content;
    transition: all .3s;
    pointer-events: none;
    max-width: 80%;
}

#view.on {
    transform: translate(-50%,-50%);
    opacity: 1;
    pointer-events: auto;
}

#view span:nth-child(1) {
    display: block;
    font-weight: bold;
}

#view div {
    display: inline-block;
    width: 90px;
    padding-top: 15px;
    color: #007aff;
}

#done {
    font-weight: bold;
}