@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

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

ol,
ul {
    padding: 0 20px;
}

/*-----------Main menu--------------*/
.topnav {
    background-color: #f80;
    border-radius: 0.5rem;
}

.topnav a {
    color: #f2f2f2;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav .icon {
    display: none;
}

.dropbtn {
    background-color: inherit;
    padding: 16px;
    color: #f2f2f2;
    font-size: 17px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    list-style-type: none;
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

@media (max-width: 1000px) {
    .topnav {
        overflow: hidden;
    }

    .topnav a {
        float: left;
        display: block;
    }

    .topnav a:not(:first-child),
    .dropdown .dropbtn {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        color: #fff;
    }

    .topnav.responsive .dropdown {
        float: none;
    }

    .topnav.responsive .dropdown-content {
        position: relative;
        min-width: 496px;
        border-radius: 0.5rem;
        background-color: inherit;
    }

    .dropdown-content li {
        max-width: 473px;
        border-bottom: 1px solid #fafafa;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
}

/*-----------to do list--------------*/
.container {
    width: 100%;
    padding: 0 24px;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.wraper {
    width: 90%;
    height: auto;
    margin: 0 auto;
}

#particles-js {
    width: 100%;
    position: relative;
}

.todo {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100em;
}

.text {
    color: coral;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font-size: 30px;
    letter-spacing: 5px;
}

.resultList {
    color: #fff;
    text-shadow: 0px 0px 10px rgb(255, 0, 187), 0px 0px 20px rgb(255, 0, 187), 0px 0px 40px rgb(255, 0, 187), 0px 0px 80px rgb(255, 0, 187);
    letter-spacing: 5px;
}

.editor{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}


.buttonAdd,
.buttonCancle {
    width: 100%;
    outline: none;
    padding: 12px 0;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 20px 0;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    transition: all 200ms ease-out;
    font-size: 15px;
}

.buttonAdd:hover,
.buttonCancle:hover {
    box-shadow: 0 0 6px rgba(35, 173, 278, 1);
}

/* -------------------table to do------------------- */
#todoTable {
    border-collapse: collapse;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

#todoTable td,
#todoTable th {
    border: 2px solid #ddd;
    padding: 8px;
    text-align: center;
}

#todoTable tr {
    background-color: #f2f2f2;
}

#todoTable th {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #f80;
    color: #fff;
}

input[type='checkbox'] {
    transform: scale(1.5);
}

/* .exportFile {
    width: 70%;
    margin: 10px auto;
    display: flex;
    justify-content: flex-end;
}

.exportFile>button {
    border: none;
    color: #fff;
    background-color: green;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
} */

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.popup>.deleteItem {
    position: relative;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 22%);
    background-color: #fff;
    padding: 10px;
}

.close {
    display: flex;
    justify-content: flex-end;
    font-size: 30px;
    cursor: pointer;
}

.confirmButtons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.cancelbtn,
.escbtn {
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #e7e7e7;
    color: black;
}

.cancelbtn:hover,
.escbtn:hover {
    background: #ddd;
}

.palette {
    position: fixed;
    bottom: 5rem;
    right: 0;
}

.palette>.colors {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.color-s {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.color-s:hover {
    transform: scale(1.1);

}

/* ----------Pagination---------- */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pagination{
    display: flex;
    gap: 10px;
}

.pagination a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    background-color: #ddd;
}

@media (min-width: 1300px) {
    .popup {
        width: 50%;
    }
}

@media (max-width: 1300px) {
    .palette>.colors {
        padding: 10px;
    }

    .color-s {
        width: 25px;
        height: 25px;
    }

    .editor {
        width: 100%;
    }

    #todoTable {
        width: 100%;
        font-size: 14px;
    }

    #todoTable tr {
        display: flex;
        flex-wrap: wrap;
    }

    #todoTable td {
        width: 50%;
    }

    input[type='checkbox'] {
        transform: scale(1);
    }

    .inputText {
        width: 100%;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .buttonAdd {
        width: 100%;
    }

    .exportFile>button {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .popup {
        width: 60%;
    }

    #particles-js {
        height: 820px;
    }
}