*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, Helvetica, sans-serif;
  
}

body{
  height:100vh;
  width:100vw;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction: column;
  background:linear-gradient(135deg,#667eea,#764ba2);
}

/* Main Todo Container */
.todo-container{
  width:60vw;
  min-width:300px;
  max-width:700px;
  height:70vh;
  background:#ffffff;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.3);
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
}

/* Title */
.todo-title{
  text-align:center;
  font-size:4vh;
  margin-bottom:2vh;
  color:#333;
}

/* Input Area */
.todo-input-area{
  display:flex;
  gap:1vw;
  margin-bottom:3vh;
  height: 5vh;
    max-height: 10vh;
}

.todo-input-area div{
  flex:1;
  padding:1.5vh 1vw;
  font-size:2.2vh;
  border-radius:10px;
  border:2px solid #ccc;
  outline:none;
  max-height: 15vh;
  overflow: hidden;
}

.todo-input-area button{
  padding:1.5vh 2vw;
  font-size:2.2vh;
  border:none;
  border-radius:10px;
  background:#667eea;
  color:white;
  cursor:pointer;
  transition:0.3s;
}

.todo-input-area button:hover{
  background:#5643cc;
}

/* Todo List */
.todo-list{
  flex:1;
  overflow-y:auto;
  padding-right:1vw;
}

/* Single Todo Item */
.todo-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:2vh 1vw;
  margin-bottom:1.5vh;
  background:#f3f3f3;
  border-radius:12px;
  font-size:2.2vh;
  max-height: 20vh;
  overflow:hidden ;
}

.todo-item span{
  font-size: 1rem;
  font-weight: 900;
  flex:1;
  max-height: 10vh;
  overflow-y: scroll;
   white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  
}


.edit-container{
  width:25vw;
  height:50vh;
  background:#2a2a2a;
  border-radius:15px;
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
  position: fixed;
  bottom: 190px;
  right: -2px;
  
}

.edit-box{
  width:100%;
  height:75%;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:1.5vh 1.5vw;
  font-size:1.2rem;
  outline:none;
  overflow-y:auto;
}

/* Placeholder effect */
.edit-box:empty:before{
  content:"Edit your todo here...";
  color:#777;
}

.done-btn{
  align-self:flex-end;
  width:12vw;
  min-width:100px;
  height:6vh;
  border:none;
  border-radius:8px;
  background:#00ff9c;
  color:#000;
  font-size: 1rem;
  font-weight: 900;
  cursor:pointer;
  transition:0.2s ease;
  margin: auto;
}
.remove-btn{
  align-self:flex-end;
  width:12vw;
  min-width:100px;
  height:6vh;
  border:none;
  border-radius:8px;
  background:#f44336;
  color:#000;
  font-size: 1rem;
  font-weight: 900;
  cursor:pointer;
  transition:0.2s ease;
  margin: auto;
}

.done-btn:hover{
  transform:scale(1.05);
  background:#00e68a;
}
.remove-btn:hover{
  transform:scale(1.05);
  background:#f44336;
}

.done-btn:active{
  transform:scale(0.95);
}
.remove-btn:active{
  transform:scale(0.95);
}

/* Buttons */
.todo-actions{
  display:flex;
  gap:1vw;
}

.todo-actions button{
  padding:1vh 1.5vw;
  font-size:2vh;
  border:none;
  border-radius:8px;
  cursor:pointer;
  color:white;
}

.edit-btn{
  background:#4caf50;
}

.delete-btn{
  background:#f44336;
}

.todo-item{
  display:flex;
  align-items:center;
  gap:1vw;
}

.drag-btn{
  cursor: grab;
  background:#999;
  color:white;
  border:none;
  border-radius:6px;
  padding:1vh 1vw;
  font-size:2vh;
}

.drag-btn:active{
  cursor: grabbing;
}
.memory{
  position: fixed;
  bottom: 7vh;
  right: 45vw;
  z-index: 10;
 
}

/* Reset button */
.reset-btn{
  padding: 1.5vh 3vw;
  font-size: 2.2vh;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg,#ff4d4d,#ff0000);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  letter-spacing: 1px;
}

/* Hover effects */
.reset-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg,#ff6b6b,#e60000);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.reset-btn:active{
  transform: scale(0.95);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}


.reset-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg,#ff6b6b,#e60000);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.reset-btn:active{
  transform: scale(0.95);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}


/* Responsive */
@media (max-width:1395px){
  body{
  height:180vh;
  width:100vw;
  display:flex;
  justify-content:center;
  /* align-items:center; */
  flex-direction: column;
  background:linear-gradient(135deg,#667eea,#764ba2);
}
.todo-container{
  width:100%;
  /* min-width:300px; */
  
  height:70vh;
  background:#ffffff;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.3);
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
  position: relative;
  bottom: 300px;
}

/* Title */
.todo-title{
  text-align:center;
  font-size:1.7rem;
  margin-bottom:1vh;
  color:#333;
}

/* Input Area */
.todo-input-area{
  display:flex;
  gap:1vw;
  margin-bottom:3vh;
  height: 5vh;
    max-height: 10vh;
}

.todo-input-area div{
  flex:1;
  padding:1.5vh 1vw;
  font-size:2.2vh;
  border-radius:10px;
  border:2px solid #ccc;
  outline:none;
  max-height: 15vh;
  overflow: hidden;
}

.todo-input-area button{
  padding:1.5vh 2vw;
  font-size:2.2vh;
  border:none;
  border-radius:10px;
  background:#667eea;
  color:white;
  cursor:pointer;
  transition:0.3s;
}

.todo-input-area button:hover{
  background:#5643cc;
}

/* Todo List */
.todo-list{
  flex:1;
  overflow-y:auto;
  padding-right:1vw;
}

/* Single Todo Item */
.todo-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:2vh 1vw;
  margin-bottom:1.5vh;
  background:#f3f3f3;
  border-radius:12px;
  font-size:2.2vh;
   max-height: 10vh;
 
  overflow:scroll ;
}

.todo-item span{
  font-size: 0.8rem;
  font-weight: 900;
  flex:1;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: scroll;
 
}


.edit-container{
  width:650px;
  height:50vh;
  background:#2a2a2a;
  border-radius:15px;
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
  position: absolute;
  top: 600px;
  right: 50px;
  
  
}

.edit-box{
  width:100%;
  height:75%;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:1.5vh 1.5vw;
  font-size:1.2rem;
  outline:none;
  overflow-y:auto;
}

/* Placeholder effect */
.edit-box:empty:before{
  content:"Edit your todo here...";
  color:#777;
}

.done-btn{
  align-self:flex-end;
  width:12vw;
  min-width:100px;
  height:6vh;
  border:none;
  border-radius:8px;
  background:#00ff9c;
  color:#000;
  font-size: 1rem;
  font-weight: 900;
  cursor:pointer;
  transition:0.2s ease;
  margin: auto;
}
.remove-btn{
  align-self:flex-end;
  width:12vw;
  min-width:100px;
  height:6vh;
  border:none;
  border-radius:8px;
  background:#f44336;
  color:#000;
  font-size: 1rem;
  font-weight: 900;
  cursor:pointer;
  transition:0.2s ease;
  margin: auto;
}

.done-btn:hover{
  transform:scale(1.05);
  background:#00e68a;
}
.remove-btn:hover{
  transform:scale(1.05);
  background:#f44336;
}

.done-btn:active{
  transform:scale(0.95);
}
.remove-btn:active{
  transform:scale(0.95);
}

/* Buttons */
.todo-actions{
  display:flex;
  gap:1vw;
}

.todo-actions button{
  padding:1vh 1.5vw;
  font-size:2vh;
  border:none;
  border-radius:8px;
  cursor:pointer;
  color:white;
}

.edit-btn{
  background:#4caf50;
}

.delete-btn{
  background:#f44336;
}

.todo-item{
  display:flex;
  align-items:center;
  gap:1vw;
}

.drag-btn{
  cursor: grab;
  background:#999;
  color:white;
  border:none;
  border-radius:6px;
  padding:1vh 1vw;
  font-size:2vh;
}

.drag-btn:active{
  cursor: grabbing;
}
.memory{
  position: absolute;
  bottom: 160h;
  right: 40vw;
  
  z-index: 10;
  background-color: transparent;
}

/* Reset button */
.reset-btn{
  width: 300px;
  height: 70px;
  padding: 1.5vh 3vw;
  font-size: 2.2vh;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg,#ff4d4d,#ff0000);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  letter-spacing: 1px;
}

/* Hover effects */
.reset-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg,#ff6b6b,#e60000);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.reset-btn:active{
  transform: scale(0.95);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}


.reset-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg,#ff6b6b,#e60000);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.reset-btn:active{
  transform: scale(0.95);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
}


@media (max-width:700px){
  body{
  height:180vh;
  width:100vw;
  display:flex;
  justify-content:center;
  /* align-items:center; */
  flex-direction: column;
  background:linear-gradient(135deg,#667eea,#764ba2);
}
.todo-container{
  width:100%;
  /* min-width:300px; */
  
  height:70vh;
  background:#ffffff;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,0.3);
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
  position: relative;
  bottom: 300px;
}

/* Title */
.todo-title{
  text-align:center;
  font-size:1.7rem;
  margin-bottom:1vh;
  color:#333;
}

/* Input Area */
.todo-input-area{
  display:flex;
  gap:1vw;
  margin-bottom:3vh;
  height: 5vh;
    max-height: 10vh;
}

.todo-input-area div{
  flex:1;
  padding:1.5vh 1vw;
  font-size:2.2vh;
  border-radius:10px;
  border:2px solid #ccc;
  outline:none;
  max-height: 15vh;
  overflow: hidden;
}

.todo-input-area button{
  padding:1.5vh 2vw;
  font-size:2.2vh;
  border:none;
  border-radius:10px;
  background:#667eea;
  color:white;
  cursor:pointer;
  transition:0.3s;
}

.todo-input-area button:hover{
  background:#5643cc;
}

/* Todo List */
.todo-list{
  flex:1;
  overflow-y:auto;
  padding-right:1vw;
}

/* Single Todo Item */
.todo-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:2vh 1vw;
  margin-bottom:1.5vh;
  background:#f3f3f3;
  border-radius:12px;
  font-size:2.2vh;
  
  height: 9vh;
  max-height: 12vh;
  
  overflow:hidden;
}

.todo-item span{
  font-size: 0.6rem;
  font-weight: 900;
  flex:1;
  overflow: scroll;
   white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;

  

}


.edit-container{
  width:80vw;
  height:50vh;
  background:#2a2a2a;
  border-radius:15px;
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
  position: absolute;
  top: 600px;
  right: 50px;
  
}

.edit-box{
  width:100%;
  height:75%;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:1.5vh 1.5vw;
  font-size:1.2rem;
  outline:none;
  overflow-y:auto;
}

/* Placeholder effect */
.edit-box:empty:before{
  content:"Edit your todo here...";
  color:#777;
}

.done-btn{
  align-self:flex-end;
  width:12vw;
  min-width:100px;
  height:6vh;
  border:none;
  border-radius:8px;
  background:#00ff9c;
  color:#000;
   font-size: 1rem;
  font-weight: 900;
  cursor:pointer;
  transition:0.2s ease;
  margin: auto;
}
.remove-btn{
  align-self:flex-end;
  width:12vw;
  min-width:100px;
  height:6vh;
  border:none;
  border-radius:8px;
  background:#f44336;
  color:#000;
  font-size: 1rem;
  font-weight: 900;
  cursor:pointer;
  transition:0.2s ease;
  margin: auto;
}

.done-btn:hover{
  transform:scale(1.05);
  background:#00e68a;
}
.remove-btn:hover{
  transform:scale(1.05);
  background:#f44336;
}

.done-btn:active{
  transform:scale(0.95);
}
.remove-btn:active{
  transform:scale(0.95);
}

/* Buttons */
.todo-actions{
  display:flex;
  gap:1vw;
}

.todo-actions button{
  padding:1vh 1.5vw;
  font-size:2vh;
  border:none;
  border-radius:8px;
  cursor:pointer;
  color:white;
}

.edit-btn{
  background:#4caf50;
}

.delete-btn{
  background:#f44336;
}

.todo-item{
  display:flex;
  align-items:center;
  gap:1vw;
}

.drag-btn{
  cursor: grab;
  background:#999;
  color:white;
  border:none;
  border-radius:6px;
  padding:1vh 1vw;
  font-size:2vh;
}

.drag-btn:active{
  cursor: grabbing;
}
.memory{
  position: absolute;
  bottom: 10vh;
  right: 30vw;
  z-index: 10;
  background-color: transparent;
}

/* Reset button */
.reset-btn{
  width: 30x;
  height: 50px;
  padding: 1.5vh 3vw;
  font-size: 2.2vh;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg,#ff4d4d,#ff0000);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  letter-spacing: 1px;
}

/* Hover effects */
.reset-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg,#ff6b6b,#e60000);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.reset-btn:active{
  transform: scale(0.95);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}


.reset-btn:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg,#ff6b6b,#e60000);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.reset-btn:active{
  transform: scale(0.95);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
}

@media (max-width:450px) {
  .memory{
  position: absolute;
  bottom: 10vh;
  right: 15vw;
  z-index: 10;
  background-color: transparent;
}
}
@media (max-width:391px) {
  .memory{
  position: absolute;
  bottom: 1vh;
  /* left: 2vw; */
  z-index: 10;
  background-color: transparent;
  
}
.edit-container{
  width:80vw;
  height:50vh;
  background:#2a2a2a;
  border-radius:15px;
  padding:2vh 2vw;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
  position: absolute;
  top: 700px;
  right: 50px;
  
}
}