body{
    font-family: 'Segoe UI', sans-serif;
    background-color: #1a1a2e;
    color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 50px;
    margin: 0;
}
h1{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.task-app {
    background-color: #2c2c54;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    
  }
.task-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
#taskText{
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
}

#taskText:focus {
    outline: 2px solid #5c7cfa;
    box-shadow: 0 0 5px #5c7cfa;
}

.quote-container {
    background-color: #2c2c54;
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid  #5c7cfa;
    margin-top: 2rem;
    font-style:italic;
    color: #dcdcff;
    text-align: center;
}

#addTaskBtn {
    padding: 0.5rem 1rem;
    background-color: #5c7cfa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  #addTaskBtn:hover {
    background-color: #4b6ef3;
  }

#addTaskBtn:focus {
    outline: 2px solid #4b6ef3;
    box-shadow: 0 0 5px #4b6ef3;
}
  
  ul#taskList {
    list-style: none;
    padding: 0;
  }
  
  ul#taskList li {
    background-color: #3e3e5e;
    margin: 0.5rem 0;
    padding: 0.6rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
  }

  ul#taskList li.completed {
    text-decoration: line-through;
    opacity: 0.6;
  }

  ul#taskList li:hover {
    background-color: #4b4b6e;
    cursor: pointer;
  }
  
  .xp-tracker {
    margin-top: 2rem;
    text-align: center;
  }
  
  progress {
    width: 100%;
    height: 20px;
    border-radius: 8px;
  }

progress::-webkit-progress-bar {
    background-color: #2c2c54;
    border-radius: 8px;
}

progress::-webkit-progress-value {
    background-color: #5c7cfa;
    border-radius: 8px;
}
.gif-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 2rem;
}
.gif-box img {
  max-width: 100%;
  border-radius: 12px;

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .task-app {
        width: 95%;
        padding: 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    #addTaskBtn {
        width: 100%;
        margin-top: 1rem;
        padding: 0.4rem 0.8rem;
    }
}
