* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: 'Gabarito', sans-serif;
}

body {
    position: relative;
    margin-top: 85px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 10px 40px;
    box-shadow: 0 0 20px 7px rgba(0,0,0,.1);
    z-index: 1000;
    background-color: white;
}

header img {
    height: 60px;
}

header button {
    padding: 6px 20px;
    background-color: transparent;
    border: 2px solid;
    border-image: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    border-image-slice: 1;
    overflow: hidden;
    background: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 1s;
    cursor: pointer;
}

header button:hover {
    background: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    background-clip: none;
    -webkit-background-clip: none;
    -webkit-text-fill-color: white;
}

.main-section {
    position: relative;
}

.menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: white;
    width: 300px;
    top: 84px;
    left: 0;
    padding: 15px 20px;
    /* border-right: 2px solid black; */
    height: 92vh;
    color: #999;
    fill: #999;
    box-shadow: 5px 0px 15px -4px rgba(0,0,0,0.1);
    transition: 1s;
}

.menu .menu-icon {
    height: 20px;
}

.menu .menu-icons {
    height: 16px;
}

.menu-top div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-top p {
    font-size: 20px;
    color: #616161;
    display: flex;
    gap: 10px;
    fill: #616161;
}

.hamurger-layer{
    background: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    border-radius: 70px;
    padding: 6px;
    display: flex;
    cursor: pointer;
  }

.hamburger{
    display: block;
    width: 30px;
    fill: white;
}

.search-container {
    position: relative;
    display: inline-block;
}
  
.search-icon {
    position: absolute;
    top: 38px;
    height: 20px;
    left: 10px;
    transform: translateY(-50%);
    fill: #999;
}
  
.search-input {
    margin-top: 20px;
    padding: 15px 35px 17px;
    width: 200px;
    height: 30px;
    border: 2px solid #999;
    border-radius: 20px;
}

.menu-middle {
    flex: 1;
}

.side-menu {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.menu-middle p,
.menu-bottom p {
    display: flex;
    gap: 10px;
}

.menu-middle .selected-menu {
    color: #616161;
    fill: #616161;
}

.addButton {
    padding: 10px 20px;
    margin: 20px 20px;
    background: none;
    border: none;
    color: rgb(0, 110, 0);
    border-radius: 50px;
    transition: 1s;
    cursor: pointer;
}

.addButton:hover {
    background-color: rgb(0, 110, 0);
    color: white;
    transform: scale(1.2);
}

.project-input {
    padding: 15px 15px 17px;
    width: 200px;
    height: 30px;
    border: 2px solid #999;
    border-radius: 20px;
}

.menu-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-canvas {
  margin: 100px 0 0 320px;
  transition: 1s;
  position: relative;
  overflow-y: hidden;
}

.todo-top {
    display: flex;
    justify-content: space-between;
}

.todo-header {
    font-size: 30px;
    color: #616161;
    fill: #616161;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px 0 10px 50px;
    font-weight: bold;
}

.todo-header svg {
    height: 30px;
}

.todo-lists {
}

.todo-list {
    display: flex;
    gap: 20px;
    padding: 20px 0 20px;
    align-items: flex-start;
    border-bottom: 1px solid #99999969;

}

.todo-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #999;
    width: 400px;
}

.todo-title {
    font-size: 18px;
    color: #616161;
}

.todo-content div {
    display: flex;
    font-size: 13px;
    /* gap: 50px; */
}

.todo-description {
    width: 200px;
}

.todo-date {
    width: 150px;
}

input[type="checkbox"] {
    display: none;
}

/* Create a custom checkbox container */
.custom-checkbox {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid red; /* Green border */
    cursor: pointer;
}

/* Add a checkmark icon (the green thick sign) */
.custom-checkbox::before {
    content: '\2713'; /* Checkmark Unicode character */
    font-size: 25px;
    color: #27ae60; /* Green color */
    position: absolute;
    top: -5px;
    left: -2px;
    display: none;
}

/* Show the checkmark when the checkbox is checked */
input[type="checkbox"]:checked + .custom-checkbox::before {
    display: block;
}

input[type="checkbox"]:checked + .custom-checkbox {
    border: 2px solid #27ae60; /* Green border */
}


/* add todo-form */

.overlay,
.confirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  /* display: flex; */
  /* justify-content: end; */
  transition: 1s;
  padding-top: 84px;
  display: grid;
  place-items: center;
}

.form-hide {
    display: none;
}

.form {
    position: fixed;
    top: 84px;
    right: -350px;
    /* left: 0; */
    bottom: 0;
    width: 350px;
    background-color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    z-index: 999;
    transition: 1s;
}

form svg {
    width: 50px;
    position: absolute;
    top: 0px;
    right: 370px;
    fill: white;
    cursor: pointer;
}
  
  /* form h3, */
  form input,
  form input::placeholder,
  form button {
    font-size: 1.1rem;
    color: #999;
  }
  
  form h3 {
    padding-bottom: 1rem;
    font-weight: black;
    color: #616161;
  }
  
  form input[type='text'],
  form input[type='number'] {
    width: 100%;
    margin-bottom: 1rem;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid #999;
    outline: none;
  }
  
  form button {
    display: block;
    width: 100%;
    padding: 13px 10px 16px 10px;
    background: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    border: 2px solid;
    border-image: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    border-image-slice: 1;
    color: white;
    outline: none;
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: bold;
    transition: 1s;
  }
  
  form button:hover {
    filter: contrast(90%);
    background-color: white;
    background: linear-gradient(45.34deg, #0DD3FF 20%, #1149D8 40%, #8B00AE 65%, #EA0EFD 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

.selected-folder{
    color: #616161;
    fill: #616161;
    position: relative;
}

.selected-folder::before {
    content: '\2713'; /* Checkmark Unicode character */
    font-size: 25px;
    color: #27ae60; /* Green color */
    position: absolute;
    top: 0px;
    left: 100px;
}

.project-folders {
    width: 150px;
    display: flex;
    align-items: center;
}

.project-folders span{
    width: 100%;
}

.project-folders:hover {
    color: #616161;
    cursor: pointer;
}

.warning {
    font-size: 12px;
    color: red; /* Green color */
}

.todo-content > div:first-child {
    display: flex;
    justify-content: space-between;
}

.todo-content > div + div > p + p + p  {
    text-align: end;
    width: 50px;
}

.todo-content svg{
    transform: scale(0.8);
    fill: #999;
    cursor: pointer;
    transition: 1s;
}

.todo-content svg:hover{
    transform: scale(1);
    fill: #616161;
}

.svg-delete {
    height: 25px;
}

.delete-book {
  background-color: white;
  width: 300px;
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 10px;
}

.delete-book div {
  display: flex;
  justify-content: space-around;
  padding-top: 1.5rem;
}

.delete-book div button {
  padding: 3px 10px 5px 10px;
  background-color: rgb(102, 212, 102);
  color: white;
  border: 2px solid rgb(102, 212, 102);
  border-radius: 5px;
  cursor: pointer;
  transition: 1s;
}

.delete-book div button + button {
  border: 2px solid rgb(207, 86, 86);
  background-color: rgb(207, 86, 86);
}

.delete-book div button:hover {
  background-color: white;
  color: rgb(102, 212, 102);
}

.delete-book div button + button:hover {
  background-color: white;
  color: rgb(207, 86, 86);
}

@media only screen and (max-width: 990px) {
    .todo-header {
        font-size: 25px;
        gap: 10px;
        padding: 5px 0 10px 0px;
    }

    .addButton {
        margin: 10px 20px;
    }

    header {
        padding: 10px 20px;
    }
}

@media only screen and (max-width: 800px) {
    .todo-header {
        font-size: 15px;
        gap: 10px;
    }

    .addButton {
        padding: 10px 15px;
    }

    .addButton:hover {
        transform: none;
    }

    header {
        padding: 10px 20px;
    }

    .todo-header svg {
        height: 25px;
    }

    .menu {
        padding: 15px 15px;
    }

    .hamburger {
        width: 25px;
    }
}

@media only screen and (max-width: 560px) {
    .todo-list {
        padding: 20px 0px 20px 3px;
        margin-right: 20px;
    }

    .todo-description {
        width: 150px;
    }

    .todo-date {
        width: 80px;
    }

    .todo-content > div:first-child {
        width: 285px;
    }
    
    .todo-header {
        gap: 7px;
    }

    .addButton {
        margin: 10px 10px 15px;
        font-size: 15px;
    }

    header img {
        height: 40px;
    }

    body {
        margin-top: 0px;
    }

    .menu {
        top: 64px;
        padding: 15px 15px;
    }




    form svg {
        right: 355px;
        top: 8px;
    }

    .form {
        top: 64px;
    }

}

@media only screen and (max-width: 420px) {
    .custom-checkbox::before {
        font-size: 22px;
        top: -5px;
        left: 0px;
    }

    .menu .menu-icon {
        height: 22px;
    }

    .menu input {
        font-size: 16px;
        max-height: 100px; /* or any other desired value */
        -webkit-text-size-adjust: none;
    }

    .selected-folder::before {
        font-size: 22px;
    }

    .todo-title {
        font-size: 15px;
        color: #616161;
    }

    .todo-description {
        width: 130px;
    }

    .todo-content div {
        font-size: 10px;
    }

    .todo-date {
        width: 55px;
    }

    .todo-content > div:first-child {
        width: 240px;
    }

    .todo-list {
        gap: 10px;
    }
}