@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(126, 64, 246, 1),
    rgba(80, 139, 252, 1)
  );
}
body.light-mode {
  background: linear-gradient(
    to right,
    rgba(126, 64, 246, 1),
    rgba(80, 139, 252, 1)
  );
}
/* Dark mode styles */
body.dark-mode {
  background: #232323;
  color: #fff;
}
body.dark-mode .list-group-item {
  background: #131313;
  color: #fff;
}
body.dark-mode .list-group-item {
    background: #131313;
    color: #fff;
}
.container-xl {
  position: relative;
  width: 100%;
  height: 100%;
}
 .text {
    width: 100%;
    font-size: 50px;
    color: rgb(255, 255, 255);
    letter-spacing: 10px;
    border-right: 5px solid black;
    white-space: nowrap;
    animation: typing 3s steps(10), cursor .4s step-end infinite alternate;
    overflow: hidden;
    animation-fill-mode: forwards;
  }
  
  @keyframes cursor {
    50% {
      border-color: transparent;
    }
  }
  
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 30%;
    }
    
  }
.text-center{
    margin-left:  auto;
    margin-right: auto ;
}

.main {
  position: relative;
  width: 48rem;
  height: 100%;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2em;
  backdrop-filter: blur(25px);
  border: 10px solid rgba(255, 255, 255, 0.05);
  background-clip: padding-box;
  box-shadow: 10px 10px 10px rgba(46, 54, 68, 0.03);
}

.main_form {
  position: relative;
  width: 100%;
  align-items: center;
  background: #fff;
  border-radius: 5rem;
  display: flex;
  height: 4.2rem;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.list-group-item {
  font-size: 1.3rem;
  margin-top: 0.4rem;
  text-align: left;
  margin-right: 20px;
  border-radius: 5rem !important;
}

.list-group-item button {
  margin: 0 0.2rem;
  padding: 0.4rem 1rem;
  border-radius: 5rem;
}

.main_form #item {
  font-size: 1.3rem;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
}

.main_form .form_btn {
  color: #fff;
  letter-spacing: 0.11rem;
  border: none;
  background: linear-gradient(
    to right,
    rgba(126, 64, 246, 1),
    rgba(80, 139, 252, 1)
  );
  padding: 0.6rem 2rem;
  border-radius: 5rem;
  cursor: pointer;
}

.form_btn:hover {
  opacity: 0.8;
  outline: auto;
  border: 3px solid rebeccapurple;
}

.opacity {
  opacity: 0.8;
  outline: auto;
}

.main_form #item::placeholder {
  color: #232323;
  letter-spacing: 0.11rem;
  font-size: 1.2rem;
}

.main h2,
h3 {
  width: 12rem;
  margin: auto;
  border-bottom: 2px solid #ffffff;
}

@media screen and (max-width: 415px) {
  .main_form .form_btn {
    color: #fff;
    letter-spacing: 0.05rem;
    border: none;
    background: linear-gradient(
      to right,
      rgba(126, 64, 246, 1),
      rgba(80, 139, 252, 1)
    );
    padding: 0.8rem;
    border-radius: 5rem;
    cursor: pointer;
  }
  .main {
    width: 100%;
    height: 380px;
    padding: 1rem;
  }
  .main_form #item {
    font-size: 1rem;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
  }
}

@media (max-width: 960px) {
  .main {
    width: 100%;
    height: 100%;
    padding: 1rem;
  }
}

.completed {
  text-decoration: line-through;
}

.form-check-input {
  position: relative;
  margin-left: 10px;
  margin-right: 5px;
}

#dueDate {
  border-radius: 50px;
  text-align: center;
  width: 140px;
  height: 40px;
}

#dueDate{
    border-radius: 50px;
    text-align: center;
    width: 140px;
    height: 40px;
} 

.hidden {
  display: none;
}
input[type="checkbox"]:not(.task-completed) {
  position: relative;
  width: 80px;
  height: 40px;
  -webkit-appearance: none;
  appearance: none;
  background: #000;
  outline: none;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow: inset 0 0 5px rgba(114, 80, 121, 0.5);
}

input[type="checkbox"]:not(.task-completed)::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
}

input[type="checkbox"]:not(.task-completed):checked::before {
  transform: translateX(100%);
  background: #fff;
}

input[type="checkbox"]:not(.task-completed):checked {
    background: linear-gradient(
        to right,
        rgba(126, 64, 246, 1),
        rgba(80, 139, 252, 1)
      );
}

@media screen and (max-width: 768px) {
  .mode-toggle {
      margin-left: 20px; 
  }
}
@media screen and (max-width: 768px) {
  .form_btn {
      font-size: 1rem; 
      padding: 0.8rem 2rem; 
  }
}
@media screen and (max-width: 768px) {
  .main_form {
      flex-direction: column; 
  }
  
  .main_form input[type="text"] {
      width: 100%; 
      margin-bottom: 10px; 
  }
  
  .form_btn {
      font-size: 1rem; 
      padding: 0.5rem 1rem; 
      width: auto; 
  }
}
@media screen and (max-width: 768px) {
  .main_form {
      flex-direction: column; /* Stack form elements vertically */
  }
  
  .main_form input[type="text"] {
      width: 100%; /* Full width for text inputs */
      margin-bottom: 10px; /* Add spacing between inputs */
  }
  
  .form_btn {
      font-size: 1rem;
      padding: 0.5rem 1rem; 
      width: auto; 
  }
}

