@font-face {
    font-family: 'Ageo-Thin';
    src: url('https://cdn.glitch.global/5992cd3c-974e-4bde-965e-fc6cec2dcd36/Ageo-Thin.ttf?v=1686703029478') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

*{
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: 'Ageo-Thin', sans-serif;
}
body{
    background-image: linear-gradient(70deg, rgb(222, 67, 67), rgb(16, 52, 185));
    background-attachment: fixed;
    background-size: cover;
}
/* heading of the HTML Document */
#heading{
    font-size: 1.4rem;
    color:white;
    margin: 1rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* form of the HTML document */
form{
    width: 80%;
    margin: 1rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#task-title-input{
    background-color: rgb(230, 230, 230);
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    padding: 0.5rem;
    width: 100%;
    padding-left: 1.2rem;
    padding-right: 2.5rem;
}
#task-add-btn{
    position: absolute;
    right: 0;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 2rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}
#task-add-btn:hover{
    color: rgb(3, 104, 162);
}

/* Styling the task list item */
#task-list-container{
    width: 80%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 2rem;
}
#task-list{
    display: flex;
    flex-direction: column;
    list-style-type: none;
}
.task-list-item{
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: rgb(230, 230, 230);
    padding: 0.5rem;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.task-list-title{
    font-size: 1.2rem;
    line-height: 1.4rem;
    width: 100%;
    min-width: 0;
    word-wrap: break-word;
}

/* list button */
.list-btns{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 6rem;
    height: 1.4rem;
}
.list-btns button{
    background-color: rgba(0, 0, 0, 0);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    width: 1.6rem;
}
.list-btns .update-btn{
    display: none;
}
.list-btns button .fa{
    font-size: 1.2rem;
    pointer-events: none;
    text-align: center;
    transition: all 0.4s ease;
}
.fa-edit{
    color: rgb(3, 104, 162);
}
.fa-save{
    color: grey;
}
.fa-check{
    color: green;
}
.fa-trash{
    color: rgb(179, 35, 35);
}
.list-btns button:hover .fa{
    opacity: 0.4;
}
.done{
    text-decoration: line-through;
}
.done-assistance{
    background-color: rgb(230, 230, 230, 0.5);
}

/* notification alert for the document */
.notification{
    position: fixed;
    display: block;
    border-radius: 5px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.4s ease;
    top: 8%;
    right: 50%;
    transform: translate(50%,0);
    z-index: 5;
    opacity: 0;
    text-align: center;
}
#task-editing{
    background-color: rgb(248, 222, 108);
    border: solid 1px rgb(125, 109, 19);
}
#task-deleted{
    background-color: rgb(149, 62, 62);
    border: solid 1px rgb(103, 25, 25);
    color: white;
}
#task-saved{
    background-color: rgb(58, 239, 58);
    border: solid 1px rgb(5, 108, 5);
}
/* Add styles for the delete confirmation message */
#task-delete-confirmation {
    background-color: rgb(255, 165, 0); /* Orange background */
    border: solid 1px rgb(175, 96, 26);
}

/* Style for the orange trash icon */
.fa-trash-confirm {
    color: rgb(255, 165, 0); /* Orange color */
}

/* Existing styles for dragging */
.dragging {
    opacity: 0.5; /* Slightly transparent to indicate that it is being moved */
    border: dashed 2px #aaa; /* Dashed border to show it's the one being dragged */
    background-color: #f7f7f7; /* Lighten the background to differentiate from others */
}

/* Updated styles for the potential drop target */
.task-list-item.over {
    border-top: dashed 2px #666; /* Dashed border on top to indicate a drop zone */
    margin-top: 1.5rem; /* Add space on top to clearly show where the item will drop */
    background-color: #e8e8e8; /* Slightly darker background for the drop target */
    transition: margin-top 0.2s ease-in-out; /* Smooth transition for the margin-top */
}

/* Remove margin when not hovering to avoid unnecessary space at the bottom */
.task-list-item:not(.over) {
    margin-top: 2px; /* Minimal margin for separation */
    transition: margin-top 0.2s ease-in-out; /* Smooth transition for the margin-top */
}


/* Style adjustments for when dragging starts */
.task-list-item.dragging-start {
    border-color: rgb(16, 52, 185); /* Highlight color for the item being dragged */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow to lift the item visually */
}

/* Clear any styles related to over when dragging ends */
.task-list-item.dragging-end {
    border: none;
    box-shadow: none;
}






/* CSS for the undo message */
.undo-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #444;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}


/* Existing CSS styles */

/* Style for the theme selector */
#theme-selector {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
}
.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    margin-left: 5px;
    cursor: pointer;
}
.theme-btn[data-theme="theme1"] {
    background: linear-gradient(to right, rgb(222, 67, 67), rgb(16, 52, 185));
}
.theme-btn[data-theme="theme2"] {
    background: linear-gradient(to right, rgb(13, 60, 85), rgb(72, 202, 228));
}
.theme-btn[data-theme="theme3"] {
    background: linear-gradient(to right, rgb(239, 65, 54), rgb(251, 176, 64));
}
.theme-btn[data-theme="theme4"] {
    background: linear-gradient(to right, rgb(76, 11, 145), rgb(142, 68, 173));
}

/* Additional CSS corresponding to each theme */

/* Tooltip styling */
button[title] {
    position: relative;
}

button[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -100%;
    left: 70%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1;
}

