* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/*------------scroll bar----------*/
::-webkit-scrollbar {
  width: 7px;
  background-color: inherit;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(128, 128, 128, 0.527);
  border-radius: 30px;
}
/* Scrollbar Track */
/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.527) transparent;
}

/* For Firefox */
*::-webkit-scrollbar {
  width: 7px;
  background-color: inherit;
  border-radius: 10px;
}

/* Scrollbar Thumb */
/* For Firefox */
*::-webkit-scrollbar-thumb {
  background-color: rgba(128, 128, 128, 0.527);
  border-radius: 30px;
}

/* ::-moz-scrollbar {
  width: 10px;
  background-color: inherit;
}
::-moz-scrollbar-thumb {
  background-color: #ffffff7a;
  border-radius: 30px;
} */ /* ----------------------- */
/* html {
  
  overflow-y: auto;
  scrollbar-color: inherit #ffffff7a;
  scrollbar-width: 10px;
}


body::-webkit-scrollbar {
  width: 0.5em;
  background-color: #0d3b97;
}
body::-webkit-scrollbar-thumb {
  background-color: #008de4;
} */
/*------------scroll bar----------*/
.container {
  display: flex;
  flex-direction: column;
  gap: 55px;
  min-height: 100vh;
  background-color: #f8f3ef;
  color: #3d2c22;
  padding: 40px 70px 0;
}
@media (max-width: 450px) {
  .container {
    padding: 40px 20px 0;
  }
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.head h1 {
  letter-spacing: 2px;
  font-size: 35px;
  font-weight: 500;
}
.head .date {
  background-color: #ced4dea3;
  padding: 7px 10px;
  border-radius: 8px;
  margin-right: 5px;
}
.date span {
  color: rgba(128, 128, 128, 0.527);
  padding: 0 5px;
}
.add-list {
  position: relative;
}
.head .add-list span {
  background-color: #ced4dea3;
  padding: 7px 14px;
  border-radius: 50%;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 4;
}
.date,
.add-list {
  display: inline-block;
}
.add-list .add-form {
  position: absolute;
  background-color: rgb(221, 224, 228);
  z-index: 3;
  width: 42px;
  height: 42px;
  right: 0;
  top: -7px;
  color: black;
  cursor: auto;
  border-radius: 50%;
  transition: all 0.5s ease 0s;
  overflow: hidden;
}
.add-list .open {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 231px;
  height: 400px;
  border-radius: 20px;
  padding: 30px;
  box-shadow: -60px 30px 100px 100px #00000082;
}
@media (max-width: 626px) {
  .head {
    justify-content: center;
  }
  .add-list .open {
    box-shadow: 0px 0px 100px 100px #00000082;
  }
}
input[type="date"] {
  background-color: transparent;
  border: 0;
  width: 24px;
  height: 24px;
  font-size: 20px;
}
input[type="date"]:focus-visible,
input[type="text"]:focus-visible {
  outline: none;
}
.lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
  justify-content: space-around;
  column-gap: 20px;
  row-gap: 40px;
  margin-bottom: 165px;
  flex-grow: 2;
}
.lists form {
  margin: 20px 0 10px;
  /*   padding: 0 10px; */
  max-height: 200px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
h3 {
  text-align: center;
  font-weight: 500;
  font-size: 26px;
}
.lists > div {
  padding: 15px 20px;
  border-radius: 15px;
  height: fit-content;
}
input[type="checkbox"] {
  bottom: 10px;
  outline: none;
  position: absolute;
  z-index: 2;
  appearance: none;
  width: 13px;
  height: 12px;
  background-color: white;
  border-radius: 3px;
  left: 30px;
}
input[type="text"] {
  border: 0;
  background-color: transparent;
  border-bottom: 1px solid #3d2c2236;
  padding: 0 25px 5px;
  width: 100%;
  font-size: 17px;
  word-break: break-word;
}
input::placeholder {
  font-size: 16px;
  text-align: center;
}
.edit-task .bi-x {
  display: none;
}
.add-list form input {
  padding: 5px;
  margin: 5px 0 0 0;
}
.add-list table {
  padding-top: 20px;
}
.colors {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.colors p {
  margin-bottom: 10px;
  font-size: 16px;
}
.colors div {
  height: 20px;
  cursor: pointer;
  border: 2px solid white;
}
[data-color="pale-pink"] {
  background-color: #f0dede;
}
[data-color="almond"] {
  background-color: #e5d4ca;
}
[data-color="lavender"] {
  background-color: #ced5df;
}
[data-color="silver"] {
  background-color: #dacfd5;
}
.colors .active {
  border: 2px solid gray;
}
.add-list button {
  border: 0;
  width: 100%;
  padding: 8px 15px;
  border-radius: 13px;
  color: #474747;
  cursor: pointer;
  font-size: 15px;
  background-color: #a8b5c5a6;
}
label[for="name"] {
  position: relative;
}
.empty::after {
  content: "*";
  position: absolute;
  color: red;
  font-size: 24px;
  font-weight: bold;
  margin-left: 4px;
}
.add-task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 10px;
  color: gray;
  box-shadow: 0px 0px 10px 10px #ffffff61;
  cursor: pointer;
  flex-wrap: wrap;
}
.add-task span {
  font-weight: bold;
  font-size: 20px;
}
.exist-name {
  color: red;
}
.add-form form {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 80%;
}
.list-head i {
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}
.list-head > i {
  position: absolute;
  right: 0;
  top: 2px;
  color: gray;
}
.options {
  display: none;
  flex-direction: column;
  position: absolute;
  right: -3px;
  top: 31px;
  gap: 10px;
  background-color: #fff;
  border-radius: 50px;
  padding: 5px 3px;
  z-index: 2;
  align-items: center;
}
.list-head {
  position: relative;
  display: flex;
  justify-content: center;
}

.bi-arrow-down-up {
  left: 0;
  font-size: 14.5px;
}
.options i:hover {
  background-color: #dcdcdc96;
}
.list-head > i:hover + .options {
  display: flex;
}
.options:hover {
  display: flex;
}
.colors-section:hover + .options {
  display: flex; /* Display the options when hovering over .list-colors */
}
.list-name {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}
.list-head input {
  border: 0;
  font-size: 26px;
  font-weight: 500;
  color: #3d2c22;
  font-family: Georgia, Arial and Helvetica;
  text-align: center;
  background-color: inherit;
  outline: 0;
  max-width: 75%;
}
input:read-only {
  cursor: default;
}
@media (max-width: 350px) {
  .list-head input {
    font-size: 21px;
  }
}
.edit input {
  text-align: unset;
  border-bottom: 1px solid #808080b3;
  padding-bottom: 5px;
}
.list-name > i {
  display: none;
}
.edit > i {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid green;
  height: 25px;
  width: 25px;
  color: green;
}
.edit {
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: flex-end;
}
.edit + i {
  display: none;
}
.list-name:focus-visible {
  outline: 0;
  border: 0;
}
::placeholder {
  color: rgba(255, 0, 0, 0.486);
  font-size: 60%;
  text-align: left;
}
.task {
  display: flex;
  position: relative;
}
.task i {
  font-size: 24px;
  color: gray;
  cursor: pointer;
}
.edit span {
  color: red;
  padding: 5px 10px 0;
  width: 100%;
}
input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s;
}
.add-task input {
  border: 1px solid #3d2c2236;
  border-radius: 15px;
  margin: 10px 0;
  padding: 5px 15px;
  background-color: #ffffff7d;
}
.task .bi-check2 {
  display: none;
  border: 1px solid green;
  border-radius: 50%;
  padding: 2px 2px 0;
  color: green;
  font-size: 16px;
  height: 22px;
}
.done input[type="checkbox"] {
  background-color: #818181c4;
}
.done input[type="text"] {
  text-decoration: line-through;
  color: #818181;
}
.task.dragging {
  opacity: 0;
}
.draggable .task {
  cursor: move;
}
.lists .task:last-child:before {
  height: 33px;
}
.task.dragging :where(*) {
  opacity: 0;
}
.hide {
  display: none;
}
.colors-section:hover .list-colors {
  display: flex;
}
.colors-section {
  background-color: white;
  padding: 9px 0;
  border: 1px solid #80808054;
  border-radius: 50px;
  box-shadow: 0 0 7px 1px rgba(0, 0, 0, 0.1);
}
.colors-section:hover .color-palette {
  background-color: #dcdcdc96;
}
.list-colors {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  margin-top: 10px;
}
.list-colors span {
  width: 20px;
  height: 20px;
  border: 1px solid white;
  cursor: pointer;
}
.list-colors .active {
  border: 1px solid gray;
}
.lists .add-list-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}
.lists .add-list-text h1 {
  text-align: center;
  font-size: 50px;
  opacity: 50%;
}
.lists .add-list-text button {
  border: 0;
  width: 100px;
  height: 50px;
  font-size: large;
  font-weight: bold;
  color: gray;
  border-radius: 30px;
  background-color: #ced5df;
  cursor: pointer;
}
.sortable-chosen,
.sortable-ghost {
  background: #ffffff;
  border-radius: 10px;
}
.sortable-ghost {
  opacity: 0.5;
}
.sortable-drag {
  opacity: 0.5;
}
