#tasks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    transition: 0.3s ease-out background-color;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
}


body:not([_board="experience"]) #tasks { display: none; }
#tasks:not([_expansion="2"]) { background-color: rgba(0,0,0,0); }
#tasks[_expansion="2"] { height: 100%; backdrop-filter: blur(1rem); }

#tasks > .entries {
    position: relative;
}

#tasks > .entries:after {
    transition: 0.3s ease-out opacity;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.35);
}

#tasks:not([_expansion="2"]) > .entries:after { opacity: 0 }



#tasks .task {
    width: calc(100% - 2rem);
    margin: 1rem;
    /*border: 1px solid slategray;*/
    transition: 0.3s ease-out opacity, 0.3s ease-out top;
    position: absolute;
    top: 0;
    pointer-events: none;
}

#tasks .task .bg { padding: 1rem; border-radius: 0.5rem; position: relative; width: 100%; background-color: rgba(0,0,0,0.85);  transition: 0.3s ease-out background-color; transition-delay: 1s; }
#tasks .task.completed .bg { background-color: #446444 }

#tasks .task .progress { transition: 0.3s ease-out opacity; transition-delay: 1s; }
#tasks .task.completed .progress { opacity: 0; }

#tasks .task .done {
    position: absolute;
    top:1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    transition: 0.3s ease-out opacity;
    transition-delay: 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    border-radius: 50%;
    border: 1px solid white;
}
#tasks .task:not(.completed) .done { opacity: 0; }

#tasks .task .title { color: var(--quaternary-heading-color); }

#tasks .task .description { color: var(--primary-paragraph-color); }

#tasks .task .completed { color: var(--primary-paragraph-color); }

#tasks > .progress { top: 0; left: 3rem; width: calc(100% - 4rem); position: relative; transition: 0.3s ease-out top; display: flex; align-items: center; }
#tasks:not([_expansion="0"]) > .progress { top:-3rem; }

#tasks > .progress > .indicator {
    border-radius: 50%;
    border: 1px solid #505050;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    background: #3a3a3a;
}

    /*#tasks > .progress > [_lang] {
        color: #efefef;
        font-size: 0.9rem;
    }*/


#tasks .progress .slot {
    width: calc(100% - 2rem);
    height: 16px;
    border: 1px solid #505050;
    background: #3a3a3a;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 0 2px 6px inset rgba(0,0,0,0.1);
}

#tasks .progress .value {
    width: 0;
    height: 10px;
    background-color: #9ab173;
    border-radius: 4px;
    transition: 0.5s ease-out width;
    transition-delay: 0.3s;
}

#tasks:not([_expansion="2"]) .task { top:-5rem; opacity: 0; }
#tasks[_expansion="1"] .task.last { top:1rem !important; opacity: 1 !important; pointer-events: unset !important; }
#tasks[_expansion="2"] .task { position: relative !important; pointer-events: unset !important; }


/*@COMPLETED*/
body > .task.completed > .content {
    position: absolute;
    width: 100%;
    height: calc(100% - 20rem);
    left: 0;
    bottom: 0;
    padding: 2rem;
    background-image: url("../../../../../../media/static/background.jpg");
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    box-shadow: 0 -1rem 2rem rgba(0,0,0,0.35);
    z-index: 3;
}

body > .task.completed > .content h1 {
    color: #9ab173;
}

/*@ONBOARDING*/

#preface .tasks .task { padding: 1rem; border: 1px solid rgba(199, 198, 198, 0.2); border-radius: 0.5rem; }
#preface .tasks .task:not(:last-child) { margin-bottom: 1rem; }