body{
	padding: 0;
	margin: 0;
	background: #242424;
}
* {
  box-sizing: border-box;
}
.finalContainer{  /* Contains both .mainContainer as well as .inputContainer */
	display: flex;
	flex-direction: column;
	gap : 6rem;
}
.mainContainer{
	display: flex; 
  	width: 90vw;               /* responsive width */
  	max-width: 500px; 
  	margin: 0 auto;
  	flex-direction: column;
  	gap: 10px;
  	text-align: center;
}
#mainHeading{
	overflow-wrap: break-word;
	color: white;
  font-size: clamp(1.8rem, 3vw + 1rem, 5rem);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#taskContainer{
	display: flex;
	flex-direction: column;
	list-style: none;
  	padding: 0;
  	margin: 0;
  	width: 100%;        
  	min-height: 20vh
  	max-height: 70vh;    
  	overflow-y: auto;   
  	gap : 0.5rem;
  	align-items: center;
  	font-size: clamp(1rem, 2rem, 3rem);
  	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	  color: #a38080;
}
.taskItem{
	display: flex;
	gap:1rem;
	padding: 0.75rem 1rem; 
	flex-wrap: wrap;
	width: 100%;
	color: #ffffff;
}
.task-checkbox{
	transform: scale(1.7);
    margin-top: 1.1rem;
    accent-color: #ff0c4b; 
    cursor: pointer
}
.task-text{
  	flex-basis: 90%;
  	font-weight: 600;
}
.task-desc{
  	flex-basis: 100%;
  	border-radius: 10px;
  	border: 2px solid #fff6f8;    
    background: #d1cbc3;            
    color: #000000;
	font-weight: bold;
  	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  	outline: none;
    resize: vertical;             
    transition: 
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.task-desc:focus {
    border-color: #d12c58;          
    box-shadow: 0 0 10px rgba(164, 25, 61, 0.4);
    transform: scale(1.01);         
}
.task-remove{
	border: 2px solid #ff0042;
	border-radius: 5px;
	font-weight: bold;
    background-color: red;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000; 

    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.task-remove:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5); 
}

.task-remove:active {
    transform: scale(0.95);
}

.completed .task-text,
.completed .task-desc {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #A4193D;
    opacity: 0.7;
}


.inputContainer{
	display: flex;
	width: 90vw;               /* responsive width */
  	max-width: 500px; 
  	margin: 0 auto;
  	gap:2.5rem;
  	justify-content: center;
}
#inputField{
	transform: scale(1.2);
    border-radius: 5px;
    width: 13rem;
    height: 2rem;
    border: 2px solid #fff6f8;      
    background: #b1adad;            
    color: #000000;
    font-weight: bold;
  	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#addButton{
	transform: scale(1.2);
    border: 1px solid #fff6f8;
    background-color: #54ad37;
    color: white;
    font-weight: bold;
    border-radius: 0.3rem;
    width: 4rem;
    text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000; /* Shadows in all four directions */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
#addButton:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5); 
}

#addButton:active {
    transform: scale(0.95);
}

#clearAllButton{
	border: 2px solid #ff0042;
	border-radius: 5px;
	font-weight: bold;
    background-color: red;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transform: scale(1.2);
    text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000; /* Shadows in all four directions */

    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: fixed;
   	top: 4rem;
    right: 3.5rem;
}
#clearAllButton:hover {
  transform: scale(1.4);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5); 
}
#clearAllButton:active {
    transform: scale(0.95);

}
#notificationBanner{
  border: 2px solid #433e3e;
    position: fixed;
    top: 8rem;
    right: 2rem;
    background-color: lawngreen;
    border-radius: 8px;
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    padding: 0rem 1rem;
    height: 3rem;
    opacity: 0; /*for hidding*/
    transition: transform 0.5s ease, opacity 0.5s ease; /
}
#notificationBanner.show{
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
}
.hidden {
  visibility: hidden;
}
#notificationBanner p{
  margin: 0rem;
  padding: 0.7rem 0rem;

}
.progress-bar {
  height: 4px;
  background-color: orange;
  width: 100%;
  animation: progressAnimation 3s linear forwards;
  border-radius: 0 0 8px 8px;
}
@keyframes progressAnimation {
  from { width: 100%; }
  to { width: 0%; }
}