@import url('https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://cdn-uicons.flaticon.com/uicons-bold-rounded/css/uicons-bold-rounded.css');
@import url('https://cdn-uicons.flaticon.com/2.3.0/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/uicons-regular-straight/css/uicons-regular-straight.css');
@import url('https://cdn-uicons.flaticon.com/2.3.0/uicons-solid-straight/css/uicons-solid-straight.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --main_color : #081e87;
}

* {
    box-sizing: border-box;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

html {
    scroll-behavior: smooth;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
}

input:focus {
    outline: none;
}

body {
    position: relative;
    background: linear-gradient(to bottom, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 20%, rgba(0, 212, 255, 1) 100%);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body::before{
    position: absolute;
    content: "";
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: black;
    opacity: .8;
    pointer-events: auto;
    transition: opacity 0.2s;
    z-index: 98;
}

body.hide-overlay::before {
    opacity: 0;
    pointer-events: none;
}

.new-task{
    position: absolute;
    width: 500px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background: white;
    z-index: 99;
    padding: 15px 20px;
    overflow: hidden;
    opacity: 0;
    display: none;
    border-radius: 7px;
    transition: .2s;
}

@media (max-width: 768px){
    .new-task{
        width: 350px;
    }
}

.new-task header{
    display: flex;
    justify-content: space-between;
}

.new-task header i, .new-task .done-btn{
    cursor: pointer;
}

.new-task header .title, .new-task .done-btn{
    font-weight: 600;
}
.new-task header i{
    font-size: 20px;
    translate: 5px 0;
    color: var(--main_color);
}

.new-task textarea.new-task-input{
    width: 100%;
    height: 150px;
    padding: 10px;
    background: #ccc; 
    border: none;
    margin: 20px 0;
    resize: none;
    outline: none;
    caret-color: var(--main_color);
    border: 2px solid transparent;
    border-radius: 6px;
    transition: .3s;
}

.new-task textarea.new-task-input::placeholder{
    font-size: 12px;
}

.new-task .done-btn{
    text-align: center;
    background: var(--main_color);
    color: white;
    padding: 10px;
    border-radius: 6px;
}

.container {
    position: relative;
    width: 300px;
    height: 450px;
    overflow: hidden;
    background-color: white;
    border-radius: 7px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    font-weight: bold;
}

@media (max-height: 550px){
    .container{
        height: 380px;
    }
}

.container header {
    text-align: center;
    padding: 15px;
    padding-top: 25px;
    background: var(--main_color);
    background-size: cover;
    border-radius: 7px;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
    color: white;
}

.container header .tasks-num {
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.container .no-task {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    display: none;
    transition: .2s;
}

.container .no-task img {
    width: 180px;
    translate: 20px;
    margin: 60px 0 30px;
}

.container .no-task p {
    font-size: 18px;
    font-weight: 900;
}

.container .list {
    padding: 10px 15px 0;
    height: 310px;
    overflow-y: scroll;
}

@media (max-height: 550px) {
    .container .list{
        height: 250px;
    }
}

.container .list::-webkit-scrollbar {
    display: none;
}

.container .list .task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    font-weight: 500;
    font-size: 15px;
    color: #777;
    transition: .15s;
}

.container .list .task .content{
    transition: .2s;
}

.container .list .task .actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.container .list .task .actions .trash {
    color: red;
    font-size: 24px;
    translate: 0 3px;
    cursor: pointer;
}

.container .list .task .actions .checkbox {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--main_color);
    rotate: -30deg;
    cursor: pointer;
    z-index: 97;
}

.container .list .task .actions .checkbox i {
    display: inline-block;
    opacity: 0;
    rotate: 30deg;
    font-size: 19px;
    color: #07d664;
    translate: 2px -1px;
    transition: .1s;
}

.container .list .task .checkbox[data-checked="true"] {
    border-color: #07d664;
    border-right-color: white;
    transition: .15s;
}

.container .list .task .actions .checkbox[data-checked="true"] i {
    opacity: 100%;
}

.container .new-task-btn {
    position: absolute;
    top: 93%;
    left: 50%;
    translate: -50% -50%;
    font-size: 40px;
    color: var(--main_color);
    cursor: pointer;
}