body{
    background-color:#397090;
    margin:0px;
    padding:0px;
    background-color: #397090;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%239C92AC' fill-opacity='0.13' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat;
    position: relative;
    overflow-x: hidden;
}

/* ----- BG overlay managing -----*/
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* allows clicking through */
    z-index: 1;
    height: 100vh;
    overflow:hidden;
}
  
.background-overlay img {
    width: 100%;
    height: auto;
    opacity: 0.2;
    margin-top: -155px;
}

/* Main content */
.content {
    position: relative;
    z-index: 2;
    color: white;
}
/* ------------------------------ */


.heading{
    text-align: center;
    font-size:200%;
    margin-top:2%;
    color:#ffffff;
}

.main{
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin:0% 10%;
    gap:10px;
    /* border: solid white 1px; */
}

/* ----------Task List---------- */
#List{
    background-color: #17425f;
    border: solid white 1px;
    width: 500px;
    height:60vh;
    display:flex;
    flex-direction: column;
    align-items:center;
    gap:2px;
    padding:10px;
    margin-top:10px;
    border-radius:10px;
    overflow-y: auto;    /* Enable vertical scroll */
    box-shadow: 0 0px 128px rgb(5, 153, 245);

}
/* ------------------------------ */


/* ----------Add Task---------- */
#CreateTask{
    width: fit-content;
    font-size:150%;
    border-radius: 20px;
    border:none;
    padding:10px 20px;
    outline: 5px solid #17425f;
    background-color:#397090;
    color: #ffffff;
    margin-bottom:10px;
}
/* ------------------------------ */

/* ----------Add Task Form---------- */
.taskForm{
    display:flex;
    flex-direction: column;
    /* gap:5%; */
    align-items: center;
}

.field{
    width: 100%;
    margin: 1%;
    /* padding:1%; */
    height:4vh;
    border:none;
    border-radius: 10px;
    background-color: #397090;
    outline:2px solid #17425f;
    color:#ffffff;
}

.field::placeholder{
    color:#ffffff;
}

.taskbtn{
    width:120px;
    height:6vh;
    font-size: 1rem;
    margin: 5%;
    border-radius: 20px;
    border:none;
    padding:10px 20px;
    outline: 3px solid #17425f;
    background-color:#397090;
    color: #ffffff;
    text-align: center;
}

.btn{
    display:flex;
    justify-content: end;
    gap:1%;
}

.Form{
    width:500px;
}
/* ------------------------------ */

/* ----------Task List item---------- */
.item{
    background-color:#397090;
    width:90%;
    padding:10px;
    padding-left:20px;
    border: solid white 1px;
    margin:10px;
    border-radius:10px;
}

.item h2{
    margin-top:0px;
    margin-bottom: 5px;
    color:#ffffff;
}

.item p{
    color:rgb(204, 205, 211);
}

.item button{
    outline: 1px solid #ffffff;
    border:none;
    margin-right:15px;
    border-radius:10px;
    width:100px;
    height:25px;
    background-color: #17425f;
    color:#ffffff;
}
/* ------------------------------ */

/* ----------Empty Task List msg---------- */
.text{
    color:#ffffff;
}
/* ---------------------------------------- */

/* ----------check box---------- */
.task-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-check {
    transform: scale(1.2);
}

.done {
    text-decoration: line-through;
    opacity: 0.6;
}
/* ------------------------------ */

.hide{
    display:none;
}

footer{
    text-align: center;
}

/* ----------delete confirm pop up */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3; /*for safeside take 1000 if you don't know the layers*/
}
  
.modal.hide {
    display: none;
}
  
.modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
  
.modal-buttons {
    margin-top: 20px;
}
  
.modal-buttons button {
    margin: 0 10px;
    padding: 8px 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}
  
#confirmDelete {
    background-color: #2791e1;
    color: white;
}
  
#cancelDelete {
    background-color: #ccc;
}
/* ------------------------------ */


@media (max-width: 600px){
    #List{
        width:99%;
    }
    
    .item h2{
        font-size:medium;
    }
    
    .item p{
        font-size: small;
    }
    
    .item button{
        margin-right:10px;
        border-radius:10px;
        width:60px;
        height:20px;
        background-color: #17425f;
        color:#ffffff;
    }

    #List h1{
        font-size:large;
    }

    .heading h1{
        font-size:30px;
    }

    #CreateTask{
        width: fit-content;
        font-size:80%;
    }

    .Form{
        width:98%;
    }

    .taskbtn{
        width:100px;
        height:4vh;
        font-size: 0.5rem;
        margin: 5%;
        border-radius: 20px;
        border:none;
        padding:10px 20px;
        outline: 2px solid #17425f;
        background-color:#397090;
        color: #ffffff;
        text-align: center;
    }
}